Skip to content

Instantly share code, notes, and snippets.

@davidchase
Last active May 26, 2016 11:55
Show Gist options
  • Save davidchase/14782d462d66acdb572096cc56f39d94 to your computer and use it in GitHub Desktop.
Save davidchase/14782d462d66acdb572096cc56f39d94 to your computer and use it in GitHub Desktop.
#!/bin/bash
function install {
printf "\e[92m[~] Name your project: \e[0m\n"
read name
printf "\e[33m[~] Downloading awesomeness...\e[0m\n"
git clone https://github.com/mostjs/package-starter $name \
&& cd $name \
&& rm -rf ./.git \
&& git init \
&& npm install \
&& sed -i -- "s/mostPackage/${name}/g" package.json
printf "\e[32m[✔] Successfully installed ${name}\e[32m!\n"
}
install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment