Utility to easily run webapp validation tests
In the development directory, create .webapp
containing the path to each file
html=("index.html" "about.html")
css=("style.css")
js=("js/app.js" "server.js")
json=("db.json")
list="jshint jsonlint csslint tidy whitespace stylish"
- csslint --- CSS validator
- jshint --- Javascript validator
- jsonlint --- JSON validator
- tidy --- HTML validator
- whitespace (
built-in
) --- white-space validator - stylish (
built-in
) --- programming style validator
- Add to
package.json
"scripts": {
"test": "/path/to/validate.sh"
},
- $
npm test
Copyright © 2016 mittman
validate.sh is dual licensed under the MIT (aka X11) and GPLv2 licenses.