Two-player cribbage discard analysis tool.
npm install
to download project operational and development dependencies.node_modules/.bin/gulp startServer &
.index.html
in an ECMAScript 5 Array.prototype
supporting (IE9+, Safari 5+, any recent Chrome or
Firefox, etc.) web browser. :)To execute the standard code quality checks of the project, bundle all JavaScript, make the webapp deployable and generate code documentation via JSHint, Jasmine, JSCS, gulp-coverage), JSDoc, webpack and Nightwatch:
node_modules/chromedriver/lib/chromedriver
to your PATH
environment variable in order to
make ChromeDriver findable,node_modules/.bin/gulp startServer
in the background, thennode_modules/.bin/gulp
.To instead test with Firefox add node_modules/geckodriver
to PATH
, set nightwatch.conf.js
"browserName"
to "firefox"
. To instead test with headless Firefox set the MOZ_HEADLESS
environment variable to 1
before starting gulp
.
To test with Microsoft Edge on Windows 10 (real or
testing virtual machine) add
node_modules/edgedriver/lib/edgedriver
to PATH
and set nightwatch.conf.js
"browserName"
to
MicrosoftEdge
.
To have the above project build steps always run and be verified to have run successfully before Git accepts a git commit
:
.git/hooks/pre-commit.sample
to .git/hooks/pre-commit
, then.git/hooks/pre-commit
which reads node_modules/.bin/gulp
.