Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Enable caching for Stylelint and ESLint.
Browse files Browse the repository at this point in the history
Also, make Stylelint's glob stricter by looking only in the "public" folder.
  • Loading branch information
XhmikosR committed Apr 16, 2019
1 parent 4255eb7 commit d30294b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.cache/
/.nyc_output/
/coverage/
/node_modules/
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"copyright": "node build/copyright.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"dev": "npm run watch",
"eslint": "eslint .",
"stylelint": "stylelint \"**/*.css\"",
"eslint": "eslint . --cache --cache-location .cache/.eslintcache",
"stylelint": "stylelint \"public/**/*.css\" --cache --cache-location .cache/.stylelintcache",
"lint": "npm run stylelint && npm run eslint",
"mocha": "mocha",
"server": "node ./index.js",
Expand Down

0 comments on commit d30294b

Please sign in to comment.