merge in node.js packaging by bpartridge
This commit is contained in:
parent
e0d84e124b
commit
5ca601bb67
14
build.sh
Executable file
14
build.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir -p build
|
||||
OUT=build/MIDI.minimal.js
|
||||
|
||||
echo "//MIDI.js minimal Browserify wrapper" > $OUT
|
||||
|
||||
for file in js/DOMLoader.*.js js/VersionControl.Base64.js js/lib/base64binary.js js/MIDI.*.js
|
||||
do
|
||||
cat $file >> $OUT
|
||||
echo "" >> $OUT
|
||||
done
|
||||
|
||||
echo "if (typeof module !== 'undefined') module.exports = MIDI;" >> $OUT
|
11
package.json
Normal file
11
package.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "midi",
|
||||
"version": "0.0.1",
|
||||
"description": "HTML5 midi player",
|
||||
"author": "Michael Deal",
|
||||
"scripts": {
|
||||
"preinstall": "./build.sh"
|
||||
},
|
||||
"main": "./build/MIDI.minimal",
|
||||
"license": "MIT"
|
||||
}
|
Loading…
Reference in a new issue