Commit 2e4964d6 authored by Pavel Reznikov's avatar Pavel Reznikov
Browse files

grunt watch

parent 15192f33
......@@ -6,6 +6,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-doctoc');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.initConfig({
sass: {
......@@ -73,6 +74,27 @@ module.exports = function(grunt) {
jscs: {
all: ['*.js', 'src/*.js', ],
},
watch: {
scripts: {
files: ['src/*.js'],
tasks: ['uglify', 'jshint', 'jscs'],
options: {
},
},
styles: {
files: ['src/*.scss'],
tasks: ['sass', 'cssmin'],
options: {
},
},
docs: {
files: ['README.md', 'doc/README.md'],
tasks: ['doctoc'],
options: {
},
},
},
});
grunt.registerTask('default', ['sass', 'cssmin', 'copy', 'uglify', 'doctoc', 'jshint', 'jscs']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment