Created
November 14, 2014 03:10
-
-
Save georgeOsdDev/d6d5a6f8727dc6ed775a to your computer and use it in GitHub Desktop.
Create browserified EventEmitter.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
# !/bin/sh | |
echo 'if(typeof EventEmitter === "undefined") EventEmitter = require("events");' > src.js | |
browserify src.js -o dist.js | |
nodeversion=`node -v` | |
browsrifyversion=`browserify -v` | |
cat << EOF > version.txt | |
// This file is created by Browserify(http://browserify.org/) | |
// Node version : $nodeversion | |
// Browsreify version : $browsrifyversion | |
EOF | |
cat version.txt dist.js > EventEmitter.js | |
rm -rf src.js dist.js version.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment