grunt-contrib-jasmine-node
jasmine-node is a command to execute jasmine on node.js.
I wrote a small plugin, which supports only --coffee
option, for GRUNT.
https://github.com/tmtk75/grunt-contrib-jasmine-node
If you want to specify a environtment var like NODE_PATH=lib/js
and set --coffee
option,
and spec files are in spec
directory, you can define the initConfig of grunt.
grunt.initConfig({
"jasmine-node": {
options: {
coffee: true
},
run: {
spec: "spec"
},
env: {
NODE_PATH: "lib/js"
}
}
})
Then you run like:
$ grunt jsamine-node
It's similar to:
$ NODE_PATH=lib/js jasmine-node --coffee spec
The current version 0.0.1 does support only an option --coffee
.
I'll improve, or could you conribute? :)