Skip to content

Instantly share code, notes, and snippets.

@1stvamp
Last active April 23, 2019 19:14
Show Gist options
  • Save 1stvamp/53de29d7f3d54a6a034931e6a4fd3db7 to your computer and use it in GitHub Desktop.
Save 1stvamp/53de29d7f3d54a6a034931e6a4fd3db7 to your computer and use it in GitHub Desktop.
#!/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