build: Add eslint cache

This commit is contained in:
Joachim Van Herwegen 2020-10-01 13:50:10 +02:00
parent d8e6c08859
commit 7a41108931
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -6,6 +6,8 @@ coverage
*.js.map *.js.map
*.d.ts *.d.ts
.eslintcache
!.eslintrc.js !.eslintrc.js
!test/eslintrc.js !test/eslintrc.js
!jest.config.js !jest.config.js

View File

@ -38,7 +38,7 @@
"build:ts": "tsc", "build:ts": "tsc",
"build:components": "componentsjs-generator -s src", "build:components": "componentsjs-generator -s src",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls", "coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"lint": "eslint . --ext .ts", "lint": "eslint . --ext .ts --cache",
"prepare": "npm run build", "prepare": "npm run build",
"start": "node ./bin/server.js -p 3000", "start": "node ./bin/server.js -p 3000",
"test": "jest", "test": "jest",