mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Moved lint to run after unit tests
- postest only runs after exactly yarn test… not after any of the other commands - but if you’re using yarn test xxx it’s probably to quickly debug something and is when you least want to wait for linting - Meanwhile, if you’re coding and running unit or acceptance tests before pushing, you’re not seeing lint output - But you also don't need it twice... - So for now, running lint just after yarn test:unit - it should be better than the current method
This commit is contained in:
parent
4da7e7f0cb
commit
5bd031ac51
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
"lint:test": "eslint -c test/.eslintrc.js --ignore-path test/.eslintignore 'test/**/*.js'",
|
||||
"lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend",
|
||||
"lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test",
|
||||
"posttest": "yarn lint",
|
||||
"posttest:unit": "yarn lint",
|
||||
"fix:client": "yarn cache clean && cd core/client && rm -rf node_modules tmp dist && yarn && cd ../../",
|
||||
"fix:server": "yarn cache clean && rm -rf node_modules && yarn",
|
||||
"fix": "yarn fix:client && yarn fix:server"
|
||||
|
|
Loading…
Add table
Reference in a new issue