1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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']);
};
|