Skip to content

Commit

Permalink
TEST: Enable caches for faster pre-commit runs
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtspile committed Dec 10, 2020
1 parent 29f4c65 commit 7a0d1c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ test-results.json
lint-results.json
.nyc_output
__diff_output__
.cache
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,14 @@
"test:unit:ci": "yarn test:unit --ci --silent --outputFile test-results.json --json --coverage --coverageReporters='json-summary'",
"test:e2e": "jest --config e2e/jest.e2e.config.js",
"test:code": "jest",
"lint": "eslint --ext .jsx,.js,.ts,.tsx src/",
"lint:ci": "yarn lint -o lint-results.json -f json",
"test:static": "concurrently 'tsc --noEmit' 'yarn lint' 'stylelint \"./src/**/*.css\"'",
"test:static:ci": "concurrently 'tsc --noEmit' 'yarn lint:ci' 'stylelint \"./src/**/*.css\"'",

"lint:es": "eslint --ext .jsx,.js,.ts,.tsx src/ --cache --cache-location .cache/.eslintcache",
"lint:es:ci": "yarn lint:es -o lint-results.json -f json",
"lint:style": "stylelint \"./src/**/*.css\" --cache --cache-location .cache/.stylelintcache",
"typecheck": "tsc --incremental --emitDeclarationOnly --declaration --tsBuildInfoFile .cache/.tsbuildinfo --outDir .cache/ts",
"test:static": "concurrently 'yarn typecheck' 'yarn lint:es' 'yarn lint:style'",
"test:static:ci": "concurrently 'yarn typecheck' 'yarn lint:es:ci' 'yarn lint:style'",

"test": "concurrently 'yarn test:unit' 'yarn test:static'",
"test:quick": "concurrently 'yarn test:unit:quick' 'yarn test:static'",
"test:ci": "concurrently 'yarn test:unit:ci' 'yarn test:static:ci'",
Expand Down

0 comments on commit 7a0d1c0

Please sign in to comment.