Skip to content

Commit

Permalink
Close yeomanGH-522: Replaced coffescript task with grunt-coffee. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear authored and sindresorhus committed Sep 24, 2012
1 parent 663d8ff commit 00d39a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 33 deletions.
3 changes: 2 additions & 1 deletion cli/package.json
Expand Up @@ -56,7 +56,8 @@
"prompt": "~0.1.12",
"colors": "~0.6.0",
"grunt-mocha": "~0.1.3",
"es6-collections": ">=0.2.0"
"es6-collections": ">=0.2.0",
"grunt-contrib-coffee": "~0.3.0"
},
"devDependencies": {
"mocha": "~1.4.0",
Expand Down
30 changes: 0 additions & 30 deletions cli/tasks/coffee.js

This file was deleted.

1 change: 1 addition & 0 deletions cli/tasks/yeoman.js
Expand Up @@ -21,6 +21,7 @@ module.exports = function(grunt) {
//
grunt.loadTasks(join(__dirname, '../node_modules/grunt-jasmine-task/tasks'));
grunt.loadTasks(join(__dirname, '../node_modules/grunt-mocha/tasks'));
grunt.loadTasks(join(__dirname, '../node_modules/grunt-contrib-coffee/tasks'));

// build targets: these are equivalent to grunt alias except that we defined
// a single task and use arguments to trigger the appropriate target
Expand Down
3 changes: 1 addition & 2 deletions cli/test/test-build.js
Expand Up @@ -104,8 +104,7 @@ describe('yeoman init && yeoman build', function() {
it('should go through coffee:dist', function() {
// handled version file, get back filename via grunt globbing
var foo = grunt.file.expandFiles('temp/scripts/*.foo.js')[0];
assert.equal(grunt.file.read(foo), 'var foo;\n\nfoo = "yeo";\n');
assert.equal(grunt.file.read(foo), 'var foo;\n\nfoo = "yeo";\n');
assert.equal(grunt.file.read(foo), '(function() {\n var foo;\n\n foo = "yeo";\n\n}).call(this);\n');
});
});

Expand Down

0 comments on commit 00d39a2

Please sign in to comment.