-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduced the size of browser bundle, fixes #24
- Loading branch information
Braydon Fuller
committed
Oct 21, 2014
1 parent
1bddf91
commit a697dcc
Showing
6 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
dist/bitauth.browser.js | ||
dist/bitauth.browser.min.js | ||
dist/bitauth.bundle.js | ||
dist/bitcore.bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
cd node_modules/bitcore | ||
echo "Building browser bundle for bitcore..." | ||
node browser/build -s lib/Key,lib/SINKey,lib/SIN,util/util | ||
echo "Building browser bundle for bitauth..." | ||
cd ../../ | ||
node_modules/.bin/browserify lib/bitauth.js -s bitauth -x buffertools -i bitcore -o dist/bitauth.browser.js | ||
echo "Compiling bitcore and bitauth..." | ||
node_modules/.bin/uglifyjs node_modules/bitcore/browser/bundle.js dist/bitauth.browser.js -b -o dist/bitauth.browser.js | ||
echo "Minifying bundle..." | ||
node_modules/.bin/uglifyjs dist/bitauth.browser.js -o dist/bitauth.browser.min.js | ||
cp node_modules/bitcore/browser/bundle.js dist/bitcore.bundle.js | ||
echo "Building browser bundle for bitauth..." | ||
browserify lib/bitauth.js -s bitauth -x buffertools -x bitcore -o dist/bitauth.bundle.js | ||
echo "Minifying bitcore and bitauth..." | ||
node_modules/.bin/uglifyjs dist/bitcore.bundle.js dist/bitauth.bundle.js -o dist/bitauth.browser.min.js | ||
echo "Done!" |