| OLD | NEW |
| 1 module.exports = function(grunt) { | 1 module.exports = function(grunt) { |
| 2 // Project configuration. | 2 // Project configuration. |
| 3 grunt.initConfig({ | 3 grunt.initConfig({ |
| 4 pkg: grunt.file.readJSON('package.json'), | 4 pkg: grunt.file.readJSON('package.json'), |
| 5 // Install all the packages listed in the bower.json file. | 5 // Install all the packages listed in the bower.json file. |
| 6 shell: { | 6 shell: { |
| 7 bower_install: { | 7 bower_install: { |
| 8 command: './node_modules/.bin/bower install' | 8 command: './node_modules/.bin/bower install' |
| 9 } | 9 } |
| 10 }, | 10 }, |
| 11 bower: { | 11 bower: { |
| 12 dev: { | 12 dev: { |
| 13 dest: './third_party/out' | 13 dest: './third_party/out' |
| 14 } | 14 } |
| 15 }, | 15 }, |
| 16 // Concatenate all the third_party files we use into a single file. | 16 // Concatenate all the third_party files we use into a single file. |
| 17 concat: { | 17 concat: { |
| 18 dist: { | 18 dist: { |
| 19 src: [ | 19 src: [ |
| 20 'third_party/out/jquery.js', | 20 'third_party/out/jquery.js', |
| 21 'third_party/bower_components/flot/jquery.flot.js', | 21 'third_party/bower_components/flot/jquery.flot.js', |
| 22 'third_party/bower_components/flot/jquery.flot.crosshair.js', | 22 'third_party/bower_components/flot/jquery.flot.crosshair.js', |
| 23 'third_party/bower_components/flot/jquery.flot.navigate.js', | 23 'third_party/bower_components/flot/jquery.flot.navigate.js', |
| 24 'third_party/bower_components/observe-js/src/observe.js', |
| 24 | 25 |
| 25 'third_party/out/WeakMap.js', | 26 'third_party/out/WeakMap.js', |
| 26 'third_party/out/classlist.js', | 27 'third_party/out/classlist.js', |
| 27 'third_party/out/pointerevents.dev.js', | 28 'third_party/out/pointerevents.dev.js', |
| 28 'third_party/out/MutationObserver.js', | 29 'third_party/out/MutationObserver.js', |
| 29 'third_party/out/CustomElements.js', | 30 'third_party/out/CustomElements.js', |
| 30 'third_party/out/HTMLImports.js', | 31 'third_party/out/HTMLImports.js', |
| 31 | 32 |
| 32 ], | 33 ], |
| 33 dest: 'res/js/<%= pkg.name %>-debug.js' | 34 dest: 'res/js/<%= pkg.name %>-debug.js' |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 87 |
| 87 // A target to build an unminified version, for debugging. | 88 // A target to build an unminified version, for debugging. |
| 88 grunt.registerTask('debug-js', ['shell:bower_install', 'bower', 'concat', 'cop
y:simple']); | 89 grunt.registerTask('debug-js', ['shell:bower_install', 'bower', 'concat', 'cop
y:simple']); |
| 89 | 90 |
| 90 // A target to build just the CSS. | 91 // A target to build just the CSS. |
| 91 grunt.registerTask('css', ['autoprefixer']); | 92 grunt.registerTask('css', ['autoprefixer']); |
| 92 | 93 |
| 93 // A target to build just the CSS. | 94 // A target to build just the CSS. |
| 94 grunt.registerTask('test', ['karma']); | 95 grunt.registerTask('test', ['karma']); |
| 95 }; | 96 }; |
| OLD | NEW |