diff options
| author | Julie Lala <jules@okfoc.us> | 2013-12-10 00:47:36 -0500 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2013-12-10 00:47:36 -0500 |
| commit | 037a0ae8072217f7821549bbdfe030e73289330d (patch) | |
| tree | b2e20cff097a44e08cd8e6609e7d5a00b732d88c /Gruntfile.js | |
dither stuff
Diffstat (limited to 'Gruntfile.js')
| -rw-r--r-- | Gruntfile.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..814a1c8 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,48 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + concat: { + dist: { + src: [ + 'js/vendor/jquery/jquery.js', + 'js/vendor/loader.js', + 'js/vendor/okhover.js', + 'js/vendor/tweenjs/Tween.js', + 'js/vendor/nodoubletapzoom/jquery.nodoubletapzoom.js', + 'js/vendor/tweenjs/src/Tween.js', + 'js/vendor/spin.js/spin.js', + 'js/mx/mx.js', + 'js/mx/mx.*.js', + 'js/spinner.js', + 'js/pano.js' + + ], + dest: 'js/live.concat.js', + } + }, + uglify: { + options: { + banner: '/* okfocus 2013 internet legends ~ https://github.com/okfocus/okfocus.github.io */\n' + }, + build: { + src: 'js/live.concat.js', + dest: 'js/live.min.js' + } + }, + watch: { + files: ['js/!(live.min|live.concat).js','js/vendor/*'], + tasks: ['default'] + } + }); + + // Load tasks that we'll be using + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-watch'); + + + // Default task(s). + grunt.registerTask('default', ['concat', 'uglify']); +}; |
