Created
June 19, 2013 16:05
-
-
Save matt-bailey/5815536 to your computer and use it in GitHub Desktop.
The 'watch' task in Gruntfile.js (as scaffolded by yo webapp)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grunt.initConfig({ | |
| yeoman: yeomanConfig, | |
| watch: { | |
| coffee: { | |
| files: ['<%= yeoman.app %>/scripts/{,*/}*.coffee'], | |
| tasks: ['coffee:dist'] | |
| }, | |
| coffeeTest: { | |
| files: ['test/spec/{,*/}*.coffee'], | |
| tasks: ['coffee:test'] | |
| }, | |
| compass: { | |
| files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], | |
| tasks: ['compass:server'] | |
| }, | |
| livereload: { | |
| files: [ | |
| '<%= yeoman.app %>/*.html', | |
| '{.tmp,<%= yeoman.app %>}/styles/{,*/}*.css', | |
| '{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js', | |
| '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}' | |
| ], | |
| tasks: ['livereload'] | |
| } | |
| }, |
willforsyth
commented
Jun 19, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment