From 1ce2e8b37c931bcc4ac1381f17bc05018282a677 Mon Sep 17 00:00:00 2001 From: Austin Burdine Date: Sat, 6 Aug 2016 03:26:24 -0600 Subject: [PATCH] move csscomb watch task from server repo (#177) refs TryGhost/Ghost#6977 --- Gruntfile.js | 15 ++++++++------- package.json | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index c4557e7f3..e6b31459b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -87,13 +87,14 @@ module.exports = function(grunt) { bgShell: { ember: { cmd: 'npm run build -- --watch', - bg: true, - stdout: function (out) { - grunt.log.writeln(chalk.cyan('Ember-cli::') + out); - }, - stderror: function (error) { - grunt.log.error(chalk.red('Ember-cli::' + error)); - } + bg: true + } + }, + + watch: { + csscomb: { + files: ['app/styles/**/*.css'], + tasks: ['shell:csscombfix'] } }, diff --git a/package.json b/package.json index 0978831a5..eebf73c46 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,7 @@ "grunt-bg-shell": "2.3.3", "grunt-contrib-clean": "1.0.0", "grunt-contrib-jshint": "1.0.0", + "grunt-contrib-watch": "1.0.0", "grunt-jscs": "3.0.1", "grunt-shell": "1.3.0", "jquery-deparam": "0.5.2",