mirror of https://github.com/halo-dev/halo
chore: use pnpm package manager (halo-dev/console#361)
* chore: use pnpm package manager. * chore: remove node 10.x in github actions check job. * doc: update README.mdpull/3445/head
parent
0da493fae8
commit
6228e4a6f2
|
@ -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)
|
||||
|
|
|
@ -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 文件夹之后就可以单独部署了。
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue