summaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js48
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']);
+};