Skip to content

Commit

Permalink
Update npm scripts
Browse files Browse the repository at this point in the history
* enable caching for eslint and stylelint
* double quote globs
  • Loading branch information
XhmikosR authored and Trott committed Dec 21, 2021
1 parent c51dc7b commit e020da8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ npm-debug.log

# Netlify
.netlify

.cache/
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"build": "node build.js",
"build:deploy": "node build.js --preserveLocale",
"serve": "cross-env NODE_ENV=development node server.js",
"external:survey": "rsync -avz --exclude 'node_modules*' --exclude 'package*' external/survey-2018/ build/en/user-survey-report",
"external:survey": "rsync -avz --exclude \"node_modules*\" --exclude \"package*\" external/survey-2018/ build/en/user-survey-report",
"deploy": "npm-run-all load-schedule build:deploy external:survey",
"load-versions": "node scripts/load-versions.js",
"load-schedule": "curl -sS https://raw.githubusercontent.com/nodejs/Release/master/schedule.json -o source/schedule.json",
"start": "npm run serve",
"test": "npm-run-all test:lint test:unit",
"test:lint": "npm-run-all --parallel --aggregate-output --continue-on-error test:lint:*",
"test:lint:js": "eslint .",
"test:lint:js": "eslint . --cache --cache-location .cache/.eslintcache",
"test:lint:md": "remark -qf .",
"test:lint:stylelint": "stylelint \"layouts/css/**/*.{css,scss}\" --report-needless-disables",
"test:lint:stylelint": "stylelint \"layouts/css/**/*.{css,scss}\" --cache --cache-location .cache/.stylelintcache --report-needless-disables",
"test:lint:lockfile": "lockfile-lint --allowed-hosts npm github.com --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
"test:html": "node scripts/vnu-jar.js",
"test:unit": "tape tests/**/*.test.js"
"test:unit": "tape \"tests/**/*.test.js\""
},
"repository": "nodejs/nodejs.org",
"author": "Node.js Website Working Group",
Expand Down

0 comments on commit e020da8

Please sign in to comment.