Skip to content

Instantly share code, notes, and snippets.

@jacobthemyth

jacobthemyth/webapp

Created Jan 29, 2015
Embed
What would you like to do?
#!/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

This comment has been minimized.

Copy link
Owner Author

@jacobthemyth jacobthemyth commented Jan 29, 2015

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

@jacobthemyth

This comment has been minimized.

Copy link
Owner Author

@jacobthemyth jacobthemyth commented Jan 29, 2015

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 can’t perform that action at this time.