1 |
|
2 | infile=$1 # index.js
|
3 | globalvar=$2 # doSomething
|
4 | outfile=$3 # do-something
|
5 |
|
6 | current="$(dirname "$(which "$0")")"
|
7 | export PATH=$current:$current/../node_modules/.bin:$PATH
|
8 |
|
9 | mkdir -p dist
|
10 | to-browser.sh $infile $globalvar $outfile | minify.sh $outfile
|
11 | to-node.sh $infile $outfile | minify.sh ${outfile}.node
|
12 |
|
\ | No newline at end of file |