0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/Gruntfile.js

40 lines
812 B
JavaScript
Raw Normal View History

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