Skip to content

Commit

Permalink
chore: run lint detection before building
Browse files Browse the repository at this point in the history
  • Loading branch information
hq001 committed Nov 11, 2020
1 parent 28706f7 commit 7444003
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ jobs:
with:
node-version: 12
- run: yarn
- run: yarn lint
- run: yarn build
- run: ./script/deploy.sh
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"private": false,
"scripts": {
"test:unit": "vue-cli-service test:unit",
"lint": "vue-cli-service lint",
"lint": "vue-cli-service lint && stylelint \"**/*.{css,less}\"",
"lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,json,tsx,css,less}\"",
"lint:style": "stylelint --fix \"**/*.{less,css}\" --cache --cache-location node_modules/.cache/stylelint/",
"build": "vue-cli-service build --mode browser --modern",
"lint:style": "stylelint --fix \"**/*.{css,less}\" --cache --cache-location node_modules/.cache/stylelint/",
"build": "yarn lint && vue-cli-service build --mode browser --modern",
"build-storybook": "build-storybook",
"build:electron": "vue-cli-service electron:build --mode electron.build --win nsis",
"build:electron": "yarn lint && vue-cli-service electron:build --mode electron.build --win nsis",
"build:api": "concurrently -r \"yarn dev:api\" \"node script/server-local.js\"",
"dev": "concurrently -r \"yarn dev:api\" \"yarn generate:theme\" \"vue-cli-service serve --mode browser\"",
"dev:api": "node NeteaseCloudMusicApi/app.js",
Expand Down Expand Up @@ -111,7 +111,7 @@
"git add"
],
"*.{css,less}": [
"stylelint --fix",
"stylelint \"**/*.{css,less}\"",
"git add"
]
}
Expand Down

0 comments on commit 7444003

Please sign in to comment.