Skip to content

Commit e020da8

Browse files
XhmikosRTrott
authored andcommitted
Update npm scripts
* enable caching for eslint and stylelint * double quote globs
1 parent c51dc7b commit e020da8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ npm-debug.log
1212

1313
# Netlify
1414
.netlify
15+
16+
.cache/

Diff for: package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"build": "node build.js",
88
"build:deploy": "node build.js --preserveLocale",
99
"serve": "cross-env NODE_ENV=development node server.js",
10-
"external:survey": "rsync -avz --exclude 'node_modules*' --exclude 'package*' external/survey-2018/ build/en/user-survey-report",
10+
"external:survey": "rsync -avz --exclude \"node_modules*\" --exclude \"package*\" external/survey-2018/ build/en/user-survey-report",
1111
"deploy": "npm-run-all load-schedule build:deploy external:survey",
1212
"load-versions": "node scripts/load-versions.js",
1313
"load-schedule": "curl -sS https://raw.githubusercontent.com/nodejs/Release/master/schedule.json -o source/schedule.json",
1414
"start": "npm run serve",
1515
"test": "npm-run-all test:lint test:unit",
1616
"test:lint": "npm-run-all --parallel --aggregate-output --continue-on-error test:lint:*",
17-
"test:lint:js": "eslint .",
17+
"test:lint:js": "eslint . --cache --cache-location .cache/.eslintcache",
1818
"test:lint:md": "remark -qf .",
19-
"test:lint:stylelint": "stylelint \"layouts/css/**/*.{css,scss}\" --report-needless-disables",
19+
"test:lint:stylelint": "stylelint \"layouts/css/**/*.{css,scss}\" --cache --cache-location .cache/.stylelintcache --report-needless-disables",
2020
"test:lint:lockfile": "lockfile-lint --allowed-hosts npm github.com --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
2121
"test:html": "node scripts/vnu-jar.js",
22-
"test:unit": "tape tests/**/*.test.js"
22+
"test:unit": "tape \"tests/**/*.test.js\""
2323
},
2424
"repository": "nodejs/nodejs.org",
2525
"author": "Node.js Website Working Group",

0 commit comments

Comments
 (0)