Skip to content

Instantly share code, notes, and snippets.

@somat
Created August 18, 2014 22:20
Show Gist options
  • Save somat/584bee6b0b91030925bf to your computer and use it in GitHub Desktop.
Save somat/584bee6b0b91030925bf to your computer and use it in GitHub Desktop.
Gruntfile for AngularJS
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