Skip to content

Instantly share code, notes, and snippets.

@henderea
Last active March 31, 2024 15:30
Show Gist options
  • Save henderea/764b427cde1a7fa562b7fe8427aedb51 to your computer and use it in GitHub Desktop.
Save henderea/764b427cde1a7fa562b7fe8427aedb51 to your computer and use it in GitHub Desktop.
A script for creating a project with my webpack template
#!/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
@henderea
Copy link
Author

henderea commented Oct 5, 2017

curl -sSL "https://gist.github.com/henderea/764b427cde1a7fa562b7fe8427aedb51/raw/create-webpack.sh" -o ~/bin/create-webpack.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment