Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
remove coffeescript in default scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara authored and revathskumar committed Jan 30, 2014
1 parent c9385e4 commit d5ac3da
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ module.exports = function (grunt) {
options: {
nospawn: true,
livereload: true
},
},<% if (options.coffee) { %>
coffee: {
files: ['<%%= yeoman.app %>/scripts/{,*/}*.coffee'],
tasks: ['coffee:dist']
},
coffeeTest: {
files: ['test/spec/{,*/}*.coffee'],
tasks: ['coffee:test']
},<% if (compassBootstrap) { %>
},<% } %><% if (compassBootstrap) { %>
compass: {
files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass']
Expand Down Expand Up @@ -166,7 +166,7 @@ module.exports = function (grunt) {
]
}
}
}<% } %>,
}<% } %>,<% if (options.coffee) { %>
coffee: {
dist: {
files: [{
Expand All @@ -188,7 +188,7 @@ module.exports = function (grunt) {
ext: '.js'
}]
}
},<% if (compassBootstrap) { %>
},<% } %><% if (compassBootstrap) { %>
compass: {
options: {
sassDir: '<%%= yeoman.app %>/styles',
Expand Down Expand Up @@ -366,9 +366,9 @@ module.exports = function (grunt) {
grunt.file.write('.tmp/scripts/templates.js', 'this.JST = this.JST || {};');
});

grunt.registerTask('server', function () {
grunt.registerTask('server', function (target) {
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
grunt.task.run(['serve:' + target]);
grunt.task.run(['serve' + (target ? ':' + target : '')]);
});

grunt.registerTask('serve', function (target) {
Expand All @@ -378,8 +378,8 @@ module.exports = function (grunt) {

if (target === 'test') {
return grunt.task.run([
'clean:server',
'coffee',
'clean:server',<% if (options.coffee) { %>
'coffee',<% } %>
'createDefaultTemplate',<% if (templateFramework === 'mustache' ) { %>
'mustache',<% } else if (templateFramework === 'handlebars') { %>
'handlebars',<% } else { %>
Expand All @@ -392,24 +392,24 @@ module.exports = function (grunt) {
}

grunt.task.run([
'clean:server',
'coffee:dist',
'clean:server',<% if (options.coffee) { %>
'coffee:dist',<% } %>
'createDefaultTemplate',<% if (templateFramework === 'mustache') { %>
'mustache',<% } else if (templateFramework === 'handlebars') { %>
'handlebars',<% } else { %>
'jst',<% } %><% if (compassBootstrap) { %>
'compass:server',<% } %>
'connect:livereload',
'open:server',
'watch'
'focus:server'
]);
});

grunt.registerTask('test', function (isConnected) {
isConnected = Boolean(isConnected);
var testTasks = [
'clean:server',
'coffee',
'clean:server',<% if (options.coffee) { %>
'coffee',<% } %>
'createDefaultTemplate',<% if (templateFramework === 'mustache' ) { %>
'mustache',<% } else if (templateFramework === 'handlebars') { %>
'handlebars',<% } else { %>
Expand All @@ -431,8 +431,8 @@ module.exports = function (grunt) {
});

grunt.registerTask('build', [
'clean:dist',
'coffee',
'clean:dist',<% if (options.coffee) { %>
'coffee',<% } %>
'createDefaultTemplate',<% if (templateFramework === 'mustache' ) { %>
'mustache',<% } else if (templateFramework === 'handlebars') { %>
'handlebars',<% } else { %>
Expand Down
6 changes: 3 additions & 3 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-coffee": "~0.7.0",<% if (templateFramework === 'mustache') { %>
"grunt-contrib-concat": "~0.3.0",<% if (options.coffee) { %>
"grunt-contrib-coffee": "~0.7.0",<% } %><% if (templateFramework === 'mustache') { %>
"grunt-mustache": "~0.1.4",<% } else if (templateFramework === 'handlebars') { %>
"grunt-contrib-handlebars": "~0.5.8",<% } else { %>
"grunt-contrib-jst": "~0.5.0",<% } %>
Expand Down Expand Up @@ -34,4 +34,4 @@
"engines": {
"node": ">=0.8.0"
}
}
}

0 comments on commit d5ac3da

Please sign in to comment.