mirror of
https://github.com/wallabag/wallabag.git
synced 2024-09-25 13:00:12 +00:00
Add grunt watch
task
This commit is contained in:
parent
7005b425e0
commit
e9490a3443
2 changed files with 8 additions and 2 deletions
|
@ -189,8 +189,11 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
stylelint: {
|
stylelint: {
|
||||||
target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css']
|
target: ['<%= appDir %>/themes/material/css/*.css', '<%= appDir %>/themes/baggy/css/*.css']
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
files: ['<%= appDir %>/**/*.css', '<%= appDir %>/**/*.js'],
|
||||||
|
tasks: ['css', 'js']
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask(
|
grunt.registerTask(
|
||||||
|
@ -221,5 +224,7 @@ module.exports = function (grunt) {
|
||||||
'tests',
|
'tests',
|
||||||
'Test css and js style conformity',
|
'Test css and js style conformity',
|
||||||
['eslint', 'stylelint', 'default']
|
['eslint', 'stylelint', 'default']
|
||||||
)
|
),
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
};
|
};
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
"grunt-contrib-copy": "^1.0.0",
|
"grunt-contrib-copy": "^1.0.0",
|
||||||
"grunt-contrib-symlink": "^1.0.0",
|
"grunt-contrib-symlink": "^1.0.0",
|
||||||
"grunt-contrib-uglify": "^1.0.0",
|
"grunt-contrib-uglify": "^1.0.0",
|
||||||
|
"grunt-contrib-watch": "^1.0.0",
|
||||||
"grunt-eslint": "^19.0.0",
|
"grunt-eslint": "^19.0.0",
|
||||||
"grunt-postcss": "^0.8.0",
|
"grunt-postcss": "^0.8.0",
|
||||||
"grunt-stylelint": "^0.6.0",
|
"grunt-stylelint": "^0.6.0",
|
||||||
|
|
Loading…
Reference in a new issue