Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move devDependencies to leaf packages
- Loading branch information
Showing
6 changed files
with
42 additions
and
99 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
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,17 +1,14 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
BROWSERIFY_CMD="../../node_modules/browserify/bin/cmd.js" | ||
UGLIFY_CMD="../../node_modules/uglify-js/bin/uglifyjs" | ||
|
||
mkdir -p dist | ||
|
||
node $BROWSERIFY_CMD lib/index.js \ | ||
yarn browserify lib/index.js \ | ||
--insert-global-vars 'global' \ | ||
--plugin bundle-collapser/plugin \ | ||
--plugin derequire/plugin \ | ||
>dist/polyfill.js | ||
node $UGLIFY_CMD dist/polyfill.js \ | ||
yarn uglifyjs dist/polyfill.js \ | ||
--compress keep_fnames,keep_fargs \ | ||
--mangle keep_fnames \ | ||
>dist/polyfill.min.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 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