cartodb-4.42/lib/assets/javascripts/cdb/grunt/tasks/watch.js

35 lines
772 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
/**
* Watch grunt task for CartoDB.js
*
*/
module.exports = {
task: function() {
return {
compass: {
files: ['<%= config.app %>/_scss/**/*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer:server']
},
autoprefixer: {
files: ['<%= config.app %>/css/**/*.css'],
tasks: ['copy:stageCss', 'autoprefixer:server']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= config.app %>/**/*.html',
'.tmp/css/**/*.css',
'{.tmp,<%= config.app %>}/js/**/*.js',
'<%= config.app %>/img/**/*.{gif,jpg,jpeg,png,svg,webp}'
],
tasks: ['copy:stageStatic']
}
}
}
}