Last active
March 31, 2024 15:30
-
-
Save henderea/764b427cde1a7fa562b7fe8427aedb51 to your computer and use it in GitHub Desktop.
A script for creating a project with my webpack template
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
#!/usr/bin/env bash | |
NAME="$1" | |
GH_USER="henderea" | |
GH_REPO="webpack-template" | |
TEMP_DIR=$(mktemp -d -t webpack-template-XXX) | |
ZIP_NAME="$TEMP_DIR/webpack-template-master.zip" | |
curl -sSL -o "$ZIP_NAME" "https://github.com/$GH_USER/$GH_REPO/archive/master.zip" | |
unzip "$ZIP_NAME" -d "$TEMP_DIR" | |
mv "$TEMP_DIR/webpack-template-master" "$1" | |
rm -rf "$TEMP_DIR" | |
cd "$1" | |
git init | |
pnpm install | |
node ./bin/setup.mjs |
Author
henderea
commented
Oct 5, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment