UNPKG

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