mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-09-26 22:49:14 +08:00
Fix pnpm commands
This commit is contained in:
parent
c555c937c4
commit
d57816bcfc
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
- name: Build features
|
||||
run: |
|
||||
cd registry
|
||||
pnpm run
|
||||
pnpm install
|
||||
cd ../
|
||||
pnpm run build-features
|
||||
|
||||
|
6
.github/workflows/pull-request-check.yml
vendored
6
.github/workflows/pull-request-check.yml
vendored
@ -32,7 +32,11 @@ jobs:
|
||||
run: pnpm run build-core
|
||||
|
||||
- name: Build features
|
||||
run: pnpm run build-features
|
||||
run: |
|
||||
cd registry
|
||||
pnpm install
|
||||
cd ../
|
||||
pnpm run build-features
|
||||
|
||||
- name: Log
|
||||
run: echo Check complete.
|
||||
|
32
.vscode/tasks.json
vendored
32
.vscode/tasks.json
vendored
@ -5,112 +5,112 @@
|
||||
"tasks": [
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run ts-node ./dev-tools/dev-server/index.ts",
|
||||
"command": "pnpm ts-node ./dev-tools/dev-server/index.ts",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "启动开发服务 dev-server"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --config ./webpack/webpack.dev.ts --progress",
|
||||
"command": "pnpm webpack --config ./webpack/webpack.dev.ts --progress",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "本体:编译开发版本 dev:build-core"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --watch --config ./webpack/webpack.dev.ts --progress",
|
||||
"command": "pnpm webpack --watch --config ./webpack/webpack.dev.ts --progress",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "本体:监视开发版本 dev:watch-core"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run serve dist -p ${input:serverPort}",
|
||||
"command": "pnpm serve dist -p ${input:serverPort}",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "本体:启动服务器 dev:serve-core"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run serve registry/dist -p ${input:serverPort}",
|
||||
"command": "pnpm serve registry/dist -p ${input:serverPort}",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "功能:启动服务器 dev:serve-features"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --watch --config ./registry/webpack/components.ts --progress --mode=development",
|
||||
"command": "pnpm webpack --watch --config ./registry/webpack/components.ts --progress --mode=development",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "功能:监视组件 dev:watch-components"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --watch --config ./registry/webpack/plugins.ts --progress --mode=development",
|
||||
"command": "pnpm webpack --watch --config ./registry/webpack/plugins.ts --progress --mode=development",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "功能:监视插件 dev:watch-plugins"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run tsc -p tsconfig.type-check.json --noEmit",
|
||||
"command": "pnpm tsc -p tsconfig.type-check.json --noEmit",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "生产:类型检查 prod:type"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run --silent webpack --config ./webpack/webpack.prod.ts --profile --json > dist/profile.json && pnpm run webpack-bundle-analyzer dist/profile.json",
|
||||
"command": "pnpm --silent webpack --config ./webpack/webpack.prod.ts --profile --json > dist/profile.json && pnpm webpack-bundle-analyzer dist/profile.json",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "本体:打包分析 prod:analyze"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run eslint --cache --cache-location node_modules/.cache/eslint/ './**/*.@(js|ts|vue)'",
|
||||
"command": "pnpm eslint --cache --cache-location node_modules/.cache/eslint/ './**/*.@(js|ts|vue)'",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "生产:代码检查 prod:lint"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run eslint --cache --cache-location node_modules/.cache/eslint/ --fix './**/*.@(js|ts|vue)'",
|
||||
"command": "pnpm eslint --cache --cache-location node_modules/.cache/eslint/ --fix './**/*.@(js|ts|vue)'",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "生产:代码修复 prod:lint-fix"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --config ./webpack/webpack.prod.ts --progress",
|
||||
"command": "pnpm webpack --config ./webpack/webpack.prod.ts --progress",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "本体:编译生产版本 prod:build-core"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --config ./registry/webpack/components.ts --progress",
|
||||
"command": "pnpm webpack --config ./registry/webpack/components.ts --progress",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "功能:编译组件 prod:build-components"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --config ./registry/webpack/plugins.ts --progress",
|
||||
"command": "pnpm webpack --config ./registry/webpack/plugins.ts --progress",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "功能:编译插件 prod:build-plugins"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --config ./registry/webpack/all.ts",
|
||||
"command": "pnpm webpack --config ./registry/webpack/all.ts",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "功能:编译所有 prod:build-features"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"command": "pnpm run webpack --config ./registry/webpack/docs.ts --progress",
|
||||
"command": "pnpm webpack --config ./registry/webpack/docs.ts --progress",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "功能:编译功能文档 prod:build-docs"
|
||||
|
@ -33,7 +33,7 @@ CDN 配置位于 `webpack/cdn/`, 可在目录下新建一个文件, 导出一个
|
||||
|
||||
## 编译
|
||||
|
||||
运行 `本体:编译生产版本` 任务 (`pnpm run webpack --config ./webpack/webpack.prod.ts --progress`).
|
||||
运行 `本体:编译生产版本` 任务 (`pnpm webpack --config ./webpack/webpack.prod.ts --progress`).
|
||||
|
||||
会得到:
|
||||
- 正式版: `dist\bilibili-evolved.user.js`
|
||||
|
Loading…
Reference in New Issue
Block a user