diff options
| author | Julie Lala <jules@okfoc.us> | 2014-05-08 16:34:43 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-05-08 16:34:43 -0400 |
| commit | 3caac3e80e3a0eef2c481698de777a308d275d54 (patch) | |
| tree | 42d6a60c9bce54a57648d8538407b89913596a0a /Gruntfile.js | |
| parent | 4df42cb4c3243ba2320d48ea45a08b3239df92dd (diff) | |
grunt stuffffff
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..1618caa --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,67 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + dentist: { + options: { + include_js: "app.min.js", + include_css: "app.css", + clean_scripts: true, + }, + build: { + src: 'falling/index.html', + dest_js: 'app.init.js', + dest_css: 'app.css', + dest_html: 'index.html' + } + }, + concat: { + options: { + separator: ";" + }, + build: { + src: [ + "js/vendor/jquery-1.10.2.min.js", + "js/vendor/jquery-nodoubletapzoom.js", + "js/vendor/mx.min.js", + "js/vendor/mx.gyroControl.js", + "js/vendor/mx.rotationControl.js", + "js/vendor/mx.scene.js", + "js/util.js", + "js/image.js", + "app.init.js", + ], + dest: 'app.concat.js', + } + }, + uglify: { + options: { + banner: '/* asdf.us/trees */\n' + }, + build: { + src: 'app.concat.js', + dest: 'app.min.js' + } + }, + clean: { + release: ["app.concat.js","app.init.js"], + }, + watch: { + files: ['!(app.min|app.concat).js'], + tasks: ['default'] + } + }); + + // Load tasks that we'll be using + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-copy'); + grunt.loadNpmTasks('grunt-dentist'); + + // Default task(s). + grunt.registerTask('build', ['dentist:build', 'concat:build', 'uglify:build']); + grunt.registerTask('default', ['build', 'clean:release']); +}; |
