mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
chore: adjust scripts (#3475)
This commit is contained in:
parent
fdc2bef0c1
commit
39009034f1
2
.github/workflows/master-deploy.yml
vendored
2
.github/workflows/master-deploy.yml
vendored
@ -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}}
|
||||||
|
|
||||||
|
2
.github/workflows/staging-preview.yml
vendored
2
.github/workflows/staging-preview.yml
vendored
@ -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}}
|
||||||
|
|
||||||
|
@ -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": {
|
||||||
|
Loading…
Reference in New Issue
Block a user