Browse Source

ci: eslint and html-validate from node_modules

per https://docs.npmjs.com/cli/v7/commands/npm-exec#compatibility-with-older-npx-versions
using --no / --no-install to avoid installing latest versions

making sure ci_install handles that instead, since the specific version in set via the package.json
(hopefully, npm docs actually mean that this will work)
pull/2471/head
Maxim Prokhorov 2 years ago
parent
commit
433f399d9c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ci_script.sh

+ 2
- 2
ci_script.sh View File

@ -14,8 +14,8 @@ case "$1" in
;;
("webui")
# TODO: both can only parse one file at a time
npx eslint html/custom.js
npx html-validate html/index.html
npm exec --no eslint html/custom.js
npm exec --no html-validate html/index.html
# checks whether the webui can be built
./build.sh -f environments
git --no-pager diff --stat


Loading…
Cancel
Save