diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-11-15 13:55:29 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-11-15 13:55:29 -0500 |
| commit | 468c23aae285e8845a16e4df527d37db9fef420b (patch) | |
| tree | 6ce4de04f98624a03176bae2ac3aa3f75fa97d68 /Gruntfile.js | |
| parent | a4ce7bf7a9e8d472b0523e74510a4ff4c394fa3f (diff) | |
gruntfile
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..e7af2e3 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,66 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + concat: { + index: { + options: { + separator: "\n;\n" + }, + src: [ + "public/assets/js/vendor/dataUriToBlob.js", + "public/assets/js/vendor/fastclick.js", + "public/assets/js/vendor/history.min.js", + "public/assets/js/vendor/loader.js", + "public/assets/js/vendor/lodash.min.js", + "public/assets/js/vendor/oktween.js", + "public/assets/js/vendor/util.js", + "public/assets/js/vendor/view/View.js", + "public/assets/js/vendor/view/Router.js", + "public/assets/js/lib/_router.js", + "public/assets/js/lib/views/HomeView.js", + "public/assets/js/lib/views/LinksView.js", + "public/assets/js/lib/views/UploadView.js", + "public/assets/js/app.js", + ], + dest: 'public/assets/app.concat.js', + }, + css: { + options: { + separator: "\n" + }, + src: [ + "public/assets/css/css.css", + ], + dest: 'public/assets/app.css', + }, + }, + + uglify: { + options: { + banner: '/* panda ~/~ bamboo */\n' + }, + index: { + src: 'public/assets/app.concat.js', + dest: 'public/assets/app.min.js' + } + }, + + clean: { + release: [ + "public/assets/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'); + + // Default task(s). + grunt.registerTask('default', ['concat', 'uglify', 'clean']); +}; |
