Skip to content

Instantly share code, notes, and snippets.

@theblacksquid
Created December 22, 2016 16:39
Show Gist options
  • Save theblacksquid/647ffb18157b6ca37e72f33ae8762e17 to your computer and use it in GitHub Desktop.
Save theblacksquid/647ffb18157b6ca37e72f33ae8762e17 to your computer and use it in GitHub Desktop.
Shellscript for creating new biwascheme-based projects
# init.sh
# shellscript to automate creating new projects
# initialize a git repo in current folder
# git init
# install express
# npm install --save express
# initialize main folders
mkdir 'lib'
# create main files
touch 'lib/index.scm' 'lib/views.scm' 'lib/templates.scm' 'lib/model.scm'
# download boilerplate html and cakefile
wget 'https://gist.githubusercontent.com/theblacksquid/f6dcaa0f7b430ee708da88479bc5c9c2/raw/8bc69916269e41951dedd2888b4f33153002d67b/index.html'
# 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 'http://www.biwascheme.org./release/biwascheme.js' && mv 'biwascheme.js' 'lib/biwascheme.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