UNPKG

fabricate

Version:

Combines mincer and uglify-js to build dependent files and a source map

35 lines (29 loc) 717 B
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-nodeunit'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc', }, all: [ 'Gruntfile.js', 'index.js', 'lib/**/*.js' ] }, nodeunit: { tests: ['test/**/*_test.js'], }, watch: { test: { files: ['index.js', 'lib/**/*.js', 'test/**/*.js'], tasks: ['test'] } } }); grunt.registerTask('test', ['jshint', 'nodeunit']); grunt.registerTask('autotest', ['test', 'watch:test']); grunt.registerTask('default', ['autotest']); };