Skip to content

Commit

Permalink
Adds grunt support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Morris committed Feb 20, 2017
1 parent 0dc9b4e commit aeb407d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */'
},

// Minifies JS files
uglify: {
options: {
preserveComments: /^!|@preserve|@license|@cc_on/i
},
dist: {
files: [{
expand: true,
cwd: 'src',
src: ['*.js','!*.min.js'],
dest: 'dist',
ext: '.min.js',
extDot: 'last'
}]
}
},
});

// Load tasks
grunt.loadNpmTasks('grunt-contrib-uglify');

// Default task.
grunt.registerTask('default', [ 'uglify' ]);
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
}
},
"devDependencies": {
"grunt": "~1",
"grunt-contrib-uglify": "~2",

"gulp": "~3",
"gulp-util": "~3",
"gulp-uglify": "~2",
Expand Down

0 comments on commit aeb407d

Please sign in to comment.