Browse Source

chore: use pnpm package manager (#361)

* chore: use pnpm package manager.

* chore: remove node 10.x in github actions check job.

* doc: update README.md
pull/364/head
Ryan Wang 3 years ago committed by GitHub
parent
commit
3b300799fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      .github/workflows/main.yml
  2. 6
      README.md
  3. 19609
      package-lock.json
  4. 8
      package.json
  5. 11853
      pnpm-lock.yaml
  6. 1
      src/views/system/developer/DeveloperOptions.vue
  7. 11687
      yarn.lock

13
.github/workflows/main.yml

@ -21,15 +21,16 @@ jobs:
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
node-version: [12.x, 14.x, 15.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm lint
github-release:
runs-on: ubuntu-latest
@ -41,9 +42,11 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
- name: Install pnpm package manager
run: npm install -g pnpm
- run: pnpm install
- name: Build for release
run: npm run build
run: pnpm build
- name: Compress dist directory
run: |
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)

6
README.md

@ -41,9 +41,11 @@ git checkout v1.4.12
3、打包构建:
```bash
npm i
npm install -g pnpm
npm run build
pnpm install
pnpm build
```
最后,得到 dist 文件夹之后就可以单独部署了。

19609
package-lock.json generated

File diff suppressed because it is too large Load Diff

8
package.json

@ -22,10 +22,10 @@
},
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/lang-html": "^0.19.1",
"@codemirror/lang-html": "^0.19.3",
"@codemirror/lang-java": "^0.19.1",
"ant-design-vue": "^1.7.8",
"axios": "^0.21.2",
"axios": "^0.21.4",
"dayjs": "^1.10.7",
"enquire.js": "^2.1.6",
"filepond": "^4.29.1",
@ -38,7 +38,7 @@
"tiny-pinyin": "^1.3.2",
"verte": "^0.0.12",
"vue": "^2.6.14",
"vue-clipboard2": "^0.3.2",
"vue-clipboard2": "^0.3.3",
"vue-contextmenujs": "^1.3.13",
"vue-count-to": "^1.0.13",
"vue-dplayer": "0.0.10",
@ -62,7 +62,7 @@
"babel-jest": "^26.6.3",
"babel-plugin-import": "^1.13.3",
"eslint": "^6.8.0",
"eslint-plugin-html": "^6.1.2",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-vue": "^6.2.2",
"husky": "^6.0.0",

11853
pnpm-lock.yaml

File diff suppressed because it is too large Load Diff

1
src/views/system/developer/DeveloperOptions.vue

@ -71,7 +71,6 @@ export default {
...mapGetters(['options'])
},
beforeRouteEnter(to, from, next) {
// Get post id from query
const activeKey = to.query.activeKey
next(vm => {
if (activeKey) {

11687
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save