Skip to content

Commit

Permalink
枠組み。
Browse files Browse the repository at this point in the history
  • Loading branch information
nobii committed May 9, 2013
1 parent 91e5981 commit 2165b95
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules
23 changes: 23 additions & 0 deletions package.json
@@ -0,0 +1,23 @@
{
"name": "grunt-mocha-html",
"version": "0.0.0",
"description": "generate html for mocha browser test.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/fnobi/grunt-mocha-html.git"
},
"keywords": [
"gruntplugin"
],
"author": "Fujisawa Shin",
"license": "BSD",
"readmeFilename": "README.md",
"gitHead": "91e598183f4be65191eba0edd8dbee00f3e573a0",
"dependencies": {
"ejs": "~0.8.4"
}
}
13 changes: 13 additions & 0 deletions tasks/mocha_html.js
@@ -0,0 +1,13 @@
module.exports = function (grunt) {
grunt.registerMultiTask(
'mocha_html',
'generate html for mocha browser test.',
function () {
var target = this.target;
var done = this.async();

var koko = new Koko(process.cwd(), grunt.config('koko')[target]);
koko.start();
}
);
};

0 comments on commit 2165b95

Please sign in to comment.