Tool for verifying format of HTML/JS/CSS assets for use in WebAssign questions
You need to have Node.js and grunt-cli installed to run asset-verify.
-
Install Node.js by following the link
-
Install grunt-cli:
npm install grunt-cli --global
-
Clone asset-verify repository or download as a .zip file and extract
-
Navigate to asset-verify root directory and install package dependencies:
npm install
-
All done! Try running
grunt all:popup --target examples/astro
target [path]
specify a path to the target project to test: --target [path_to_asset]
jshint
perform JS lint checking only
csslint
perform CSS lint checking only
namespace
perform JS namespace checking only
imagecheck
perform screenshot image checking only
all:environment
perform all checks for that environment
popup
asset will be run in a popup window. Checks are more lenient about global variables and namespaceembed
asset will be run embedded in the question. Checks are more stringent.
- add all config options to config file
- finish embed configuration