Last active
April 23, 2019 19:14
-
-
Save 1stvamp/53de29d7f3d54a6a034931e6a4fd3db7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
set -euo pipefail | |
PN_PKG='pneumatic-tubes' | |
mkdir -p "/tmp/${PN_PKG}" | |
cd "/tmp/${PN_PKG}" || exit 1 | |
if [ ! -e node_modules/.bin/npx ] | |
then | |
npm i npm@latest node@8 "${PN_PKG}" | |
fi | |
node_modules/.bin/npx -p node@8 -p "${PN_PKG}" "${PN_PKG}" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment