Skip to content

Instantly share code, notes, and snippets.

@theblacksquid
Created August 15, 2016 10:32
Show Gist options
  • Save theblacksquid/2473c6664ea519c257c6705763d8f2c6 to your computer and use it in GitHub Desktop.
Save theblacksquid/2473c6664ea519c257c6705763d8f2c6 to your computer and use it in GitHub Desktop.
shell script to automatically create a coffeescript project
# init.sh
# shellscript to automate creating new projects
# initialize a git repo in current folder
git init
# initialize main folders
mkdir 'lib' 'src'
# create main files
touch 'src/index.coffee' 'src/views.coffee' 'src/templates.coffee' 'src/model.coffee'
# download boilerplate html and cakefile
wget 'https://gist.githubusercontent.com/theblacksquid/1f3f53e84333f53be47f656cdd001b66/raw/4bcecbf5f63b9e133e429984d935a596c9deb9de/index.html'
wget 'https://gist.githubusercontent.com/theblacksquid/db958c1d45d6b9ef1b4ee5e56cf854b6/raw/479e1f3d4a34074496d3a806de84024f965d7ac6/Cakefile'
# download and move jquery and w3.css into the lib/ dir
wget 'http://www.w3schools.com/lib/w3.css' && mv 'w3.css' 'lib/w3.min.css'
wget 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js' && mv 'jquery.min.js' 'lib/jquery.min.js'
git add .
git commit -m 'first commit, via automated command'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment