grunt-doh

0.1.0 • Public • Published

grunt-doh

Run D.O.H.: Dojo Objective Harness inside a Grunt task.

Getting Started

Install the module with:

npm install grunt-doh --save-dev

Then add this line to your Gruntfile.js:

grunt.loadNpmTasks('grunt-doh');

Run this task with the grunt doh command.

Documentation

The task take two options: dojo (the path to dojo.js) and tests (an array of tests script):

grunt.initConfig({
    doh: {
        dist: {
            options: {
                // Set your dojo source
                dojo: "src/dojo/dojo.js",
                // Add the D.O.H. scripts to run
                tests: ["src/myapp/tests/module.js", "src/myapp/tests/other.js"]  
            }
        }
    }
});

As for the example above, grunt will run:

node src/dojo/dojo.js test=src/myapp/tests/module.js test=src/myapp/tests/other.js

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Lint your code using Grunt.

License

Copyright (c) 2013 Giampaolo Bellavite
Licensed under the MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i grunt-doh

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • bugbot