Skip to content

Instantly share code, notes, and snippets.

@jacobthemyth
Created January 29, 2015 15:26
Show Gist options
  • Save jacobthemyth/393dbe96654c68842cd0 to your computer and use it in GitHub Desktop.
Save jacobthemyth/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
@jacobthemyth
Copy link
Author

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

@jacobthemyth
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