From 7a0d1c0498a734e1999e9f9415f2b48468341d5d Mon Sep 17 00:00:00 2001 From: Vladimir Klepov Date: Wed, 2 Dec 2020 14:11:46 +0300 Subject: [PATCH] TEST: Enable caches for faster pre-commit runs --- .gitignore | 1 + package.json | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 1a386735f19..fccbf0c2fd5 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ test-results.json lint-results.json .nyc_output __diff_output__ +.cache diff --git a/package.json b/package.json index 21fe6a1740b..99610961368 100644 --- a/package.json +++ b/package.json @@ -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'",