Sanity check of template HTML.
!NPM versionnpm-imagenpm-url !NPM downloadsnpm-downloadsnpm-url !Travis Statustravis-imagetravis-url !Breaks-onbreaks-imagenpm-url !Stabilitystability-imagenpm-url !Gittergitter-imagegitter-url
InfoThis project was the result of wondering why aurelia applications had missing content when you used self-closing tags. In the end it turns out if your template html is ill formed, the browser parser will not complain and you will simply have missing content and/or an ill formed DOM element tree.
- StackOverflow: aurelia-self-closing-require-element-does-not-work
- StackOverflow: aurelia-sanity-check-template-html
The intended goal of this work is to sanity check your template html during the development cycle to highlight potential problems.
This project serves as the basis for checking html and can be extended upon for different template flavors.
RulesThere are currently four rules bundled with this package:
UsageFor use with gulp, there is a gulp plugin available
CompilingClone the repository. In the project root run
npm install npm test
VS-CodeOnce installed, you can use make use of VS-Code launcher (
ctrl + f5). Also allows you to place breakpoints on ts spec files (currently only for those files in