UNPKG

bespoke

Version:

DIY Presentation Micro-Framework

63 lines (62 loc) 4.12 kB
{ "name": "grunt-contrib-nodeunit", "description": "Run Nodeunit unit tests.", "version": "0.1.2", "homepage": "https://github.com/gruntjs/grunt-contrib-nodeunit", "author": { "name": "Grunt Team", "url": "http://gruntjs.com/" }, "repository": { "type": "git", "url": "git://github.com/gruntjs/grunt-contrib-nodeunit.git" }, "bugs": { "url": "https://github.com/gruntjs/grunt-contrib-nodeunit/issues" }, "licenses": [ { "type": "MIT", "url": "https://github.com/gruntjs/grunt-contrib-nodeunit/blob/master/LICENSE-MIT" } ], "main": "Gruntfile.js", "engines": { "node": ">= 0.8.0" }, "scripts": { "test": "grunt test" }, "dependencies": { "nodeunit": "~0.7.4" }, "devDependencies": { "grunt-contrib-jshint": "~0.1.1", "grunt-contrib-internal": "~0.4.2", "grunt": "~0.4.0" }, "peerDependencies": { "grunt": "~0.4.0" }, "keywords": [ "gruntplugin" ], "contributors": [ { "name": "\"Cowboy\" Ben Alman", "url": "http://benalman.com" }, { "name": "Tyler Kellen", "url": "http://goingslowly.com" } ], "readme": "# grunt-contrib-nodeunit [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-contrib-nodeunit.png?branch=master)](http://travis-ci.org/gruntjs/grunt-contrib-nodeunit)\n\n> Run Nodeunit unit tests.\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-nodeunit --save-dev\n```\n\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-nodeunit');\n```\n\n\n\n\n## Nodeunit task\n_Run this task with the `grunt nodeunit` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n\nThis plugin provides server-side JavaScript unit testing via [nodeunit](https://github.com/caolan/nodeunit/). If you're looking to test JavaScript that uses `window` or the DOM, please use the [grunt-contrib-qunit plugin](https://github.com/gruntjs/grunt-contrib-qunit)`qunit` task.\n\n\n### Usage examples\n\n#### Wildcards\n\nIn this example, `grunt nodeunit:all` (or `grunt nodeunit` because `nodeunit` is a [multi task][]) will test all files ending with `_test.js` in the `test` directory.\n\n```js\n// Project configuration.\ngrunt.initConfig({\n nodeunit: {\n all: ['test/*_test.js']\n }\n});\n```\n\nWith a slight modification, `grunt nodeunit:all` will test files matching the same pattern in the `test` directory _and all subdirectories_.\n\n```js\n// Project configuration.\ngrunt.initConfig({\n nodeunit: {\n all: ['test/**/*_test.js']\n }\n});\n```\n\n## Release History\n\n * 2013-02-14   v0.1.2   First official release for Grunt 0.4.0.\n * 2013-01-17   v0.1.2rc6   Updating grunt/gruntplugin dependencies to rc6. Changing in-development grunt/gruntplugin dependency versions from tilde version ranges to specific versions.\n * 2013-01-08   v0.1.2rc5   Updating to work with grunt v0.4.0rc5. Switching to this.filesSrc api.\n * 2012-11-12   v0.1.1   Switch to this.file api internally.\n * 2012-11-03   v0.1.0   Work in progress, not yet officially released.\n\n---\n\nTask submitted by [\"Cowboy\" Ben Alman](http://benalman.com)\n\n*This file was generated on Mon Feb 18 2013 08:58:34.*\n", "readmeFilename": "README.md", "_id": "grunt-contrib-nodeunit@0.1.2", "dist": { "shasum": "29e12f705799cd8f5ad9f507ebb6c6618580930e" }, "_from": "grunt-contrib-nodeunit@~0.1.2", "_resolved": "https://registry.npmjs.org/grunt-contrib-nodeunit/-/grunt-contrib-nodeunit-0.1.2.tgz" }