Permalink
Browse files

Run Coffee and Compass concurrently

  • Loading branch information...
1 parent b3e4340 commit ec308112310361c78e1ba981deb208f0f688ffe6 @sindresorhus sindresorhus committed Apr 7, 2013
Showing with 9 additions and 6 deletions.
  1. +8 −6 app/templates/Gruntfile.js
  2. +1 −0 app/templates/_package.json
View
@@ -279,6 +279,11 @@ module.exports = function (grunt) {
]
}]
}
+ },
+ concurrent: {
+ server: ['coffee:dist', 'compass:server'],
+ test: ['coffee', 'compass'],
+ dist: ['coffee', 'compass:dist']
}<% if (includeRequireJS) { %>,
bower: {
options: {
@@ -299,8 +304,7 @@ module.exports = function (grunt) {
grunt.task.run([
'clean:server',
- 'coffee:dist',
- 'compass:server',
+ 'concurrent:server',
'livereload-start',
'connect:livereload',
'open',
@@ -310,16 +314,14 @@ module.exports = function (grunt) {
grunt.registerTask('test', [
'clean:server',
- 'coffee',
- 'compass',
+ 'concurrent:test',
'connect:test',
'mocha'
]);
grunt.registerTask('build', [
'clean:dist',
- 'coffee',
- 'compass:dist',
+ 'concurrent:dist',
'useminPrepare',<% if (includeRequireJS) { %>
'requirejs',<% } %>
'imagemin',
@@ -24,6 +24,7 @@
"grunt-mocha": "~0.3.0",
"grunt-open": "~0.2.0",
"grunt-svgmin": "~0.1.0",
+ "grunt-concurrent": "~0.1.0",
"matchdep": "~0.1.1"
},
"engines": {

0 comments on commit ec30811

Please sign in to comment.