Skip to content

Commit

Permalink
make sure uglifyjs and minilog (needed by gluejss, but not installed …
Browse files Browse the repository at this point in the history
…when pulled in as a dependency) are available, and use variable pointing to local uglifyjs
  • Loading branch information
Eli Marschner committed Jun 12, 2013
1 parent da16995 commit fb77fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ clean:
rm -rf coverage coverage.html

build:
npm install
mkdir -p dist/
./node_modules/gluejs/bin/gluejs \
--include ./index.js \
--include ./src \
--include ./node_modules/microee \
--command 'uglifyjs --no-copyright --no-dead-code --mangle-toplevel' \
--command '${JS_COMPILER} --no-copyright --no-dead-code --mangle-toplevel' \
--replace underscore=window._ \
--replace fs={} \
--global triflow \
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"devDependencies": {
"temp": "0.5.0",
"uglify-js": "1.3.2",
"vows": "0.7.0"
"vows": "0.7.0",
"minilog": "~2.0.0"
},
"scripts": {
"test": "./node_modules/vows/bin/vows"
Expand Down

0 comments on commit fb77fce

Please sign in to comment.