Skip to content

Instantly share code, notes, and snippets.

@teebot
Last active August 29, 2015 14:20
Show Gist options
  • Save teebot/9f8bf7911e85cdf31b34 to your computer and use it in GitHub Desktop.
Save teebot/9f8bf7911e85cdf31b34 to your computer and use it in GitHub Desktop.
bash node projects
#!/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