Skip to content

Instantly share code, notes, and snippets.

@aceakash
Last active August 29, 2015 14:11
Show Gist options
  • Save aceakash/e1db1201b1a2dbbc7ef3 to your computer and use it in GitHub Desktop.
Save aceakash/e1db1201b1a2dbbc7ef3 to your computer and use it in GitHub Desktop.
Gulp config for jasmine and coffeescript
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']);
exports.version = '1.0'
main = require './index'
describe 'tests', ->
it 'work', ->
expect(main.version).toBe('1.0')
{
"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