Local development
Prerequesites
Build
Building your clone of the repository is easy:
- run
npm install. -
run
npx grunt build(seeGruntfile.js). This command:- Cleans the repo.
- Checks code quality (JSHint and ESLint).
- Runs tests.
- Creates the distributable and minified files in the
distfolder.
Test
A suite of tests is available which require Node.js. Once Node is installed, run the following command from the project root to install the dependencies:
npm install
Once installed, run tests from the project root:
npm test
You can easily add new tests:
- Create a markdown file (ending in
.md) that contains the markdown to test. - Create a
.htmlfile with the same name as the markdown one from the previous step. Thishtmlfile will automatically be tested when the tests are executed withmocha.