/validate.sh

Utility to easily run webapp validation tests

Primary LanguageShellMIT LicenseMIT

validate.sh

Utility to easily run webapp validation tests

Getting Started

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"

Tests

  • csslint --- CSS validator
  • jshint --- Javascript validator
  • jsonlint --- JSON validator
  • tidy --- HTML validator
  • whitespace (built-in) --- white-space validator
  • stylish (built-in) --- programming style validator

NodeJS

  • Add to package.json
  "scripts": {
    "test": "/path/to/validate.sh"
  },
  • $ npm test

Copyright and License

Copyright © 2016 mittman

validate.sh is dual licensed under the MIT (aka X11) and GPLv2 licenses.