Last active
August 29, 2015 14:20
-
-
Save teebot/9f8bf7911e85cdf31b34 to your computer and use it in GitHub Desktop.
bash node projects
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
#!/bin/bash | |
read -e -p "Project path: " pathName | |
mkdir -p $pathName && cd $pathName | |
npm init -f | |
npm install --save babel babelify body-parser browserify cookie-parser express grunt grunt-browserify grunt-cli jade minifyify react reflux | |
dirArray=(data public react views) | |
for dir in ${dirArray[*]} | |
do | |
mkdir $dir | |
done | |
touch README.md | |
touch server.js | |
touch browser.js | |
touch Gruntfile.js | |
touch .gitignore | |
git init | |
git add . | |
git commit -m "Initial commit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment