add package.json for conveniently installing tools

This commit is contained in:
Daniel Micay 2020-04-07 21:53:44 -04:00
parent ea9fbadd4c
commit cf3cc9e6cd
4 changed files with 2630 additions and 0 deletions

2617
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

9
package.json Normal file
View File

@ -0,0 +1,9 @@
{
"dependencies": {
"csso-cli": "^3.0.0",
"html-minifier": "^4.0.0",
"jshint": "^2.11.0",
"stylelint": "^13.3.0",
"terser": "^4.6.10"
}
}

View File

@ -2,6 +2,8 @@
set -o errexit -o nounset -o pipefail
export PATH="$PWD/node_modules/.bin:$PATH"
rm -rf static_tmp
cp -a static static_tmp
json_reformat -m < static_tmp/manifest.webmanifest | sponge static_tmp/manifest.webmanifest

View File

@ -3,6 +3,8 @@
set -o errexit -o nounset -o pipefail
shopt -s globstar
export PATH="$PWD/node_modules/.bin:$PATH"
jshint --verbose static/**/*.js
stylelint static/**/*.css
validatornu --Werror --skip-non-html static