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

39 lines
809 B
JavaScript

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