2014-05-07 18:27:51 +02:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
2014-07-26 19:27:10 +02:00
|
|
|
pkg: grunt.file.readYAML('package.yaml'),
|
2014-05-07 18:27:51 +02:00
|
|
|
browserify: {
|
|
|
|
dist: {
|
|
|
|
files: {
|
2014-05-07 18:29:04 +02:00
|
|
|
'lib/static/main.js': ['lib/GUI/js/main.js']
|
2014-05-07 18:27:51 +02:00
|
|
|
},
|
|
|
|
options: {
|
2014-05-07 20:08:29 +02:00
|
|
|
debug: true,
|
|
|
|
transform: ['browserify-handlebars']
|
2014-05-07 18:27:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
less: {
|
|
|
|
dist: {
|
|
|
|
files: {
|
2014-05-07 18:29:04 +02:00
|
|
|
'lib/static/main.css': ['lib/GUI/css/main.less']
|
2014-05-07 18:27:51 +02:00
|
|
|
},
|
|
|
|
options: {
|
|
|
|
sourceMap: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
2014-05-07 20:08:29 +02:00
|
|
|
files: [ "lib/GUI/**/*"],
|
2014-05-07 18:27:51 +02:00
|
|
|
tasks: [ 'default' ]
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
grunt.loadNpmTasks('grunt-browserify');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-less');
|
|
|
|
|
|
|
|
grunt.registerTask('default', [
|
|
|
|
'browserify',
|
|
|
|
'less'
|
|
|
|
]);
|
2014-07-26 19:27:10 +02:00
|
|
|
};
|