Created
August 18, 2014 22:20
-
-
Save somat/584bee6b0b91030925bf to your computer and use it in GitHub Desktop.
Gruntfile for AngularJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
jshint: { | |
all: ['public/src/js/**/*.js'] | |
}, | |
uglify: { | |
build: { | |
files: { | |
'public/js/app.min.js': ['public/src/js/**/*.js', 'public/src/js/*.js'] | |
} | |
}, | |
options: { | |
report: 'min', | |
mangle: false | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.registerTask('default', ['jshint', 'uglify']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment