cartodb-4.42/lib/assets/javascripts/cdb/grunt/tasks/watch.js
2024-04-06 05:25:13 +00:00

35 lines
772 B
JavaScript

/**
* 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']
}
}
}
}