mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Added missing eslint --cache
flag
- this dramatically speeds up linting by only linting what has changed
This commit is contained in:
parent
860048a89d
commit
880f8c2802
@ -21,7 +21,7 @@
|
||||
"build:prod": "yarn build --environment=production --silent",
|
||||
"test:unit": "true",
|
||||
"test": "ember exam --split 2 --parallel",
|
||||
"lint:js": "eslint .",
|
||||
"lint:js": "eslint . --cache",
|
||||
"lint:hbs": "ember-template-lint .",
|
||||
"lint": "yarn lint:js && yarn lint:hbs"
|
||||
},
|
||||
|
@ -44,10 +44,10 @@
|
||||
"test:int:slow": "yarn test:integration --reporter=mocha-slow-test-reporter",
|
||||
"test:e2e:slow": "yarn test:e2e --reporter=mocha-slow-test-reporter",
|
||||
"test:reg:slow": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000 --reporter=mocha-slow-test-reporter",
|
||||
"lint:server": "eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js'",
|
||||
"lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js'",
|
||||
"lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js'",
|
||||
"lint:test": "eslint -c test/.eslintrc.js --ignore-path test/.eslintignore 'test/**/*.js'",
|
||||
"lint:server": "eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js' --cache",
|
||||
"lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js' --cache",
|
||||
"lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js' --cache",
|
||||
"lint:test": "eslint -c test/.eslintrc.js --ignore-path test/.eslintignore 'test/**/*.js' --cache",
|
||||
"lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend",
|
||||
"lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test",
|
||||
"build:css": "postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css",
|
||||
|
Loading…
Reference in New Issue
Block a user