Skip to content

Commit

Permalink
Getting grunt server to watch and compile the main css file
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhley committed Nov 4, 2015
1 parent a4760e6 commit 60353aa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ module.exports = function (grunt) {
files: ['<%= conf.src %>/**/*.js', '<%= conf.web %>/stock.js'],
tasks: ['docs']
},
styles: {
files: ['<%= conf.pkg.name %>.css'],
tasks: ['cssmin:main', 'copy:dc-to-gh']
},
jasmineRunner: {
files: ['<%= conf.spec %>/**/*.js'],
tasks: ['jasmine:specs:build']
Expand All @@ -101,7 +105,7 @@ module.exports = function (grunt) {
},
reload: {
files: ['<%= conf.pkg.name %>.js',
'<%= conf.pkg.name %>css',
'<%= conf.pkg.name %>.css',
'<%= conf.web %>/js/<%= conf.pkg.name %>.js',
'<%= conf.web %>/css/<%= conf.pkg.name %>.css',
'<%= conf.pkg.name %>.min.js'],
Expand Down Expand Up @@ -356,7 +360,8 @@ module.exports = function (grunt) {
interrupt: true
},
runner: grunt.config('watch').jasmineRunner,
scripts: grunt.config('watch').scripts
scripts: grunt.config('watch').scripts,
styles: grunt.config('watch').styles,
});
grunt.task.run('watch');
});
Expand Down

0 comments on commit 60353aa

Please sign in to comment.