Skip to content

webassign/asset-verify

Repository files navigation

asset-verify

Tool for verifying format of HTML/JS/CSS assets for use in WebAssign questions

Getting started

You need to have Node.js and grunt-cli installed to run asset-verify.

Installing asset-verify

  1. Install Node.js by following the link

  2. Install grunt-cli: npm install grunt-cli --global

  3. Clone asset-verify repository or download as a .zip file and extract

  4. Navigate to asset-verify root directory and install package dependencies: npm install

  5. All done! Try running grunt all:popup --target examples/astro

Options

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

Environments

  • popup asset will be run in a popup window. Checks are more lenient about global variables and namespace
  • embed asset will be run embedded in the question. Checks are more stringent.

Todo

  • add all config options to config file
  • finish embed configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published