diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-04-05 17:57:05 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-04-05 17:58:21 -0400 |
| commit | c88541abc8a4ec6558a7de7d8c33babe732564d6 (patch) | |
| tree | 9c7ddeb9f96d9a7ec0f98d1bcef35fb3407c2b54 /Gruntfile.js | |
| parent | 983d884971880912c015feadfd51c397277d48ad (diff) | |
gruntfile
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..d6a4504 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,61 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + concat: { + index: { + options: { + separator: "\n;\n" + }, + src: [ + "public/js/vendor/fastclick.js", + "public/js/vendor/flickity.pkfg.js", + "public/js/vendor/iscroll.js", + "public/js/vendor/loader.js", + "public/js/vendor/lodash.min.js", + "public/js/vendor/util.js", + + "public/js/vendor/View.js", + "public/js/vendor/Router.js", + + "public/js/lib/SiteRouter.js", + "public/js/lib/HeaderView.js", + "public/js/lib/NavView.js", + "public/js/lib/ProjectView.js", + "public/js/lib/Scroller.js", + + "public/js/app.js", + ], + dest: 'public/app.concat.js', + }, + }, + + uglify: { + options: { + banner: '/* okfoc.us 2o16 */\n' + }, + index: { + src: 'public/app.concat.js', + dest: 'public/app.min.js' + } + }, + + clean: { + release: [ + "public/app.concat.js", + "tmp/" + ], + } + }); + + // Load tasks that we'll be using + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-copy'); + grunt.loadNpmTasks('grunt-dentist'); + + // Default task(s). + grunt.registerTask('default', ['concat', 'uglify', 'clean']); +}; |
