add package.json for conveniently installing tools
This commit is contained in:
parent
ea9fbadd4c
commit
cf3cc9e6cd
2617
package-lock.json
generated
Normal file
2617
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
9
package.json
Normal file
9
package.json
Normal 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"
|
||||
}
|
||||
}
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user