1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00
verdaccio/node_modules/transition-complete/Gruntfile.js

69 lines
1.7 KiB
JavaScript
Raw Normal View History

2014-09-14 16:28:17 +02:00
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
browserify: {
dist: {
files: {
'dist/lib.js': ['transition-complete.js']
},
options: {
//standalone: '',
transform: ['grunt-less-browserify']
}
},
test: {
files: {
'test/build.js': ['test/test.js']
},
options: {
debug: true
}
}
},
watch: {
tasks: [ 'browserify:dist' ]
},
jshint: {
options: {
curly: true,
eqeqeq: true,
eqnull: true,
browser: true
},
uses_defaults: ['transition-complete.js']
},
uglify: {
dist: {
files: {
'dist/lib.min.js': ['dist/lib.js']
},
options: {
sourceMap: true
}
}
},
qunit: {
files: ['test/index.html']
}
});
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', [
'browserify:test',
'qunit',
'jshint'
]);
grunt.registerTask('build', [
'test',
'browserify:dist',
'uglify'
]);
};