chore: adjust scripts (#3475)

This commit is contained in:
三咲智子 2021-09-18 13:46:40 +08:00 committed by GitHub
parent fdc2bef0c1
commit 39009034f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -24,7 +24,7 @@ jobs:
run: cd docs && yarn run: cd docs && yarn
- name: Fetch Crowdin token for pulling languages - name: Fetch Crowdin token for pulling languages
run: yarn init:crowdin run: yarn docs:crowdin
env: env:
CROWDIN_TOKEN: ${{secrets.CROWDIN_TOKEN}} CROWDIN_TOKEN: ${{secrets.CROWDIN_TOKEN}}

View File

@ -29,7 +29,7 @@ jobs:
run: cd docs && yarn run: cd docs && yarn
- name: Init Crowdin token - name: Init Crowdin token
run: yarn init:crowdin run: yarn docs:crowdin
env: env:
CROWDIN_TOKEN: ${{secrets.CROWDIN_TOKEN}} CROWDIN_TOKEN: ${{secrets.CROWDIN_TOKEN}}

View File

@ -10,7 +10,7 @@
"gen": "bash ./scripts/gc.sh", "gen": "bash ./scripts/gc.sh",
"gen:version": "esno build/gen-version.ts", "gen:version": "esno build/gen-version.ts",
"update:version": "esno build/update-version.ts", "update:version": "esno build/update-version.ts",
"bootstrap": "yarn --frozen-lockfile && npx lerna bootstrap && yarn gen:version && cd docs && yarn", "bootstrap": "yarn --frozen-lockfile && npx lerna bootstrap && cd docs && yarn",
"clean:lib": "rimraf lib && rimraf es && rimraf dist", "clean:lib": "rimraf lib && rimraf es && rimraf dist",
"build": "sh scripts/build.sh", "build": "sh scripts/build.sh",
"build:helper": "esno build/build-helper.ts", "build:helper": "esno build/build-helper.ts",
@ -28,12 +28,13 @@
"format": "prettier --write .", "format": "prettier --write .",
"lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx && prettier --check .", "lint": "eslint . --ext .vue,.js,.ts,.jsx,.tsx && prettier --check .",
"lint:fix": "eslint --fix . --ext .vue,.js,.ts,.jsx,.tsx && prettier --write .", "lint:fix": "eslint --fix . --ext .vue,.js,.ts,.jsx,.tsx && prettier --write .",
"prepare": "husky install",
"docs:dev": "if [ ! -d \"dist/element-plus\" ]; then sh scripts/build.sh; fi && yarn docs:gen-locale && cd docs && yarn dev", "docs:dev": "if [ ! -d \"dist/element-plus\" ]; then sh scripts/build.sh; fi && yarn docs:gen-locale && cd docs && yarn dev",
"docs:build": "cd docs && yarn build", "docs:build": "cd docs && yarn build",
"docs:serve": "cd docs && yarn serve", "docs:serve": "cd docs && yarn serve",
"init:crowdin": "esno build/crowdin-credentials.ts", "docs:gen-locale": "rimraf docs/.vitepress/i18n && esno build/crowdin-generate.ts",
"docs:gen-locale": "rimraf docs/.vitepress/i18n && esno build/crowdin-generate.ts" "docs:crowdin": "esno build/crowdin-credentials.ts",
"prepare": "husky install",
"postinstall": "yarn gen:version"
}, },
"config": { "config": {
"commitizen": { "commitizen": {