mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
6a778e8c17
close #155, see reasons there This is a huge commit, so let me know if it will cause any trouble, I might consider reverting it if it's the case.
40 lines
804 B
JavaScript
40 lines
804 B
JavaScript
module.exports = function(grunt) {
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readYAML('package.yaml'),
|
|
browserify: {
|
|
dist: {
|
|
files: {
|
|
'lib/static/main.js': [ 'lib/GUI/js/main.js' ]
|
|
},
|
|
options: {
|
|
debug: true,
|
|
transform: [ 'browserify-handlebars' ]
|
|
}
|
|
}
|
|
},
|
|
less: {
|
|
dist: {
|
|
files: {
|
|
'lib/static/main.css': [ 'lib/GUI/css/main.less' ]
|
|
},
|
|
options: {
|
|
sourceMap: true
|
|
}
|
|
}
|
|
},
|
|
watch: {
|
|
files: [ 'lib/GUI/**/*' ],
|
|
tasks: [ 'default' ]
|
|
}
|
|
})
|
|
|
|
grunt.loadNpmTasks('grunt-browserify')
|
|
grunt.loadNpmTasks('grunt-contrib-watch')
|
|
grunt.loadNpmTasks('grunt-contrib-less')
|
|
|
|
grunt.registerTask('default', [
|
|
'browserify',
|
|
'less'
|
|
])
|
|
}
|