Last active
August 29, 2015 14:11
-
-
Save aceakash/e1db1201b1a2dbbc7ef3 to your computer and use it in GitHub Desktop.
Gulp config for jasmine and coffeescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var jasmine = require('gulp-jasmine'); | |
require('coffee-script/register'); | |
gulp.task('test', function () { | |
return gulp.src('*.spec.coffee') | |
.pipe(jasmine()); | |
}); | |
gulp.task('default', ['test']); | |
gulp.watch('*.coffee', ['test']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.version = '1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = require './index' | |
describe 'tests', -> | |
it 'work', -> | |
expect(main.version).toBe('1.0') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "jasmine-and-coffee", | |
"version": "1.0.0", | |
"description": "", | |
"main": "gulpfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Akash Kurdekar <npm@kurdekar.com> (http://untilfalse.com/)", | |
"license": "ISC", | |
"devDependencies": { | |
"gulp": "^3.8.10", | |
"gulp-jasmine": "^1.0.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment