From 037a0ae8072217f7821549bbdfe030e73289330d Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Tue, 10 Dec 2013 00:47:36 -0500 Subject: dither stuff --- Gruntfile.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Gruntfile.js (limited to 'Gruntfile.js') 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']); +}; -- cgit v1.2.3-70-g09d2