Skip to content

Instantly share code, notes, and snippets.

@systemist
Created January 29, 2015 15:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save systemist/393dbe96654c68842cd0 to your computer and use it in GitHub Desktop.
Save systemist/393dbe96654c68842cd0 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir $1
cd $1
touch index.html
mkdir scripts
mkdir styles
touch scripts/main.js
touch styles/main.scss
cd styles
bourbon install
neat install
cd ..
echo "<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"UTF-8\">
<title>$1</title>
<link href=\"styles/main.css\" />
</head>
<body>
<script src=\"scripts/main.js\"></script>
</body>
</html>
" >> index.html
@systemist
Copy link
Author

You need to use the command chmod +x webapp to make it executable.

@systemist
Copy link
Author

You can execute the file with the full path to the file. So if you put webapp in ~/bin, you can execute it with

$ ~/bin/webapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment