Rule-based, cross-browser, client side HTML form validation library written in JavaScript
Git
- for version control (I recommend using the SourceTree program by Atlassian, as it rules)NodeJS
- required for development and release builds (v6.3 or higher)yarn
- a better package manager than npmGrunt
- to run tests and create builds.After installing NodeJS (and its package manager yarn), run yarn install
to install dependencies.
This project uses the Github Flow. We will accept pull requests from branches (other than master) on your own repository. All pull requests will be code reviewed. New features must include, at minimum, unit test cases. Unit tests must also be updated for any changes to existing features.
Formation
repository to your GitHub accountmaster
branch in your fork and pull the latest changes from upstream master
yarn install
to add all dependenciesgrunt test
grunt build
to create distribution filesmaster
branchGrunt tasks:
dev
- JSHint and non-minified buildunitTests
- run all tests with code coverageunitTests:mocha
- run all tests without code coveragetest
- JSHint, non-minified build, run all tests with code coveragebuild
- JSHint, non-minified build, run all tests with code coverage, minified buildThe below tools will be installed as dependencies:
JSHint/JSLint
- used for ensuring JS files are syntactically correctMocha
- testing frameworkChai
- provides assert
, expect
, should
functionality for MochaIstanbul
- works with Mocha to provides code coverage for testing resultsSinon
- used for spies, stubs, mocks, etc.Webpack
- for building static assets in builds