mirror of
https://github.com/pure-css/pure.git
synced 2024-11-07 21:34:24 +00:00
Add grunt watch
task
This commit is contained in:
parent
30bd2b8947
commit
cc528c5d61
14
Gruntfile.js
14
Gruntfile.js
@ -227,6 +227,19 @@ grunt.initConfig({
|
||||
banner: '/* <%= BUILD_COMMENT %> */\n'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// -- Watch Config ---------------------------------------------------------
|
||||
|
||||
watch: {
|
||||
src: {
|
||||
files: 'src/**/css/*.css',
|
||||
tasks: ['test', 'default'],
|
||||
|
||||
options: {
|
||||
interrupt: true
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -238,6 +251,7 @@ grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-csslint');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
grunt.registerTask('default', [
|
||||
'clean:build',
|
||||
|
@ -12,6 +12,7 @@
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-compress": "~0.5.0",
|
||||
"bower": "~0.9.2",
|
||||
"grunt-contrib-csslint": "~0.1.2"
|
||||
"grunt-contrib-csslint": "~0.1.2",
|
||||
"grunt-contrib-watch": "~0.4.4"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user