0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/Gruntfile.js

40 lines
1,003 B
JavaScript
Raw Normal View History

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