Skip to content

Commit

Permalink
Add Makefile for standalone browser version
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Jun 17, 2014
1 parent bf1ad9f commit 0441d2c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules/
build/
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
browser: src/*.js
mkdir -p build/
./node_modules/.bin/browserify \
--extension .coffee \
--transform browserify-shim \
--debug \
. \
| ./node_modules/.bin/exorcist build/aac.js.map > build/aac.js

clean:
rm -rf build/
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
"peerDependencies": {
"av": "~0.4.0"
},
"devDependencies": {
"exorcist": "^0.1.6",
"browserify": "^4.1.10",
"browserify-shim": "^3.5.0"
},
"browserify": {
"transform": ["browserify-shim"]
},
"browserify-shim": {
"av": "global:AV"
},
"repository": {
"type": "git",
"url": "git://github.com/audiocogs/aac.js"
Expand Down

0 comments on commit 0441d2c

Please sign in to comment.