blob: 51f9ebc2d2efd2cb82b67add32501c6aaf66230c [file]
/**
* Eclipse Downloads Grunt File
*
* Copyright (c) 2017 Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eric Poirier (Eclipse Foundation) - initial API and implementation
*/
module.exports = function(grunt) {
// Initializing the configuration object
grunt.initConfig({
less: {
development: {
options: {
compress: true,
// minifying the result
},
files: {
// compiling styles.less into styles.css
"./public/stylesheets/artwork.min.css": "./bower_components/solstice-assets/stylesheets/eclipse_org/artwork/artwork.less",
}
}
},
watch: {
less: {
files: ['./src/stylesheets/**/*.less',
'./bower_components/solstice-assets/less/*.less',
'./bower_components/solstice-assets/**/*.less',
],
tasks: ['less'],
options: {
livereload: true
// reloads the browser
}
},
}
});
// Plugin loading
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
// Task definition
grunt.registerTask('default', ['watch']);
};