Grunt task for running jasmine-node with coffeescript support. Based off of grunt-jasmine-node by Omar Gonzalez (s9tpepper).
npm install grunt-jasmine-node-coffeenpm install grunt-jasmine-node
Gruntfile.js grunt file:
javascript
grunt.initConfig({
jasmine_node: {
forceExit: true
// Default is already spec so not necessary
specNameMatcher: 'spec',
projectRoot: 'scripts/folder',
// This tells jasmine-node to add .coffee files
extensions: 'coffee'
}
});
grunt.loadNpmTasks('grunt-jasmine-node-coffee');
grunt.registerTask('default', 'jasmine_node');
``