Created
January 29, 2015 15:26
-
-
Save systemist/393dbe96654c68842cd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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
You need to use the command
chmod +x webapp
to make it executable.