update grunt so unnecessary files are not included into MIDI.js by default, shrink build from over 100kb to 24kb

This commit is contained in:
Michael Deal 2013-01-25 00:28:08 -08:00
parent ed0e13fd08
commit fd761e1cce
4 changed files with 405 additions and 3486 deletions

View file

@ -10,10 +10,23 @@
module.exports = function (grunt) {
grunt.initConfig({
concat: {
'build/MIDI.js': "./js/**"
'build/MIDI.js': [
"./js/MIDI/AudioDetect.js",
"./js/MIDI/LoadPlugin.js",
"./js/MIDI/Plugin.js",
"./js/MIDI/Player.js",
"./js/Window/DOMLoader.XMLHttp.js", // req when using XHR
"./js/Window/DOMLoader.script.js", // req otherwise
// "./js/Color/SpaceW3.js", // optional
// "./js/MusicTheory/Synesthesia.js", // optional
// "./js/Widgets/Loader.js", // optional
// "./js/Window/Event.js" // optional
]
},
min: {
'build/MIDI.min.js': ['build/MIDI.js']
'build/MIDI.min.js': [
'build/MIDI.js'
]
}
});
///