Last active
December 19, 2015 09:49
-
-
Save christopherhill/5935721 to your computer and use it in GitHub Desktop.
Simple shell script to set-up a new front-end project.
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 | |
#simple script to setup a new front-end project | |
echo 'make in:' | |
echo $1 | |
mkdir $1 | |
mkdir $1/css | |
touch $1/css/styles.css | |
mkdir $1/img | |
mkdir $1/js | |
touch $1/js/main.js | |
touch $1/js/controller.js | |
mkdir $1/php | |
touch $1/index.html | |
echo '<!DOCTYPE html>' >> $1/index.html | |
echo '<html ng-app="">' >> $1/index.html | |
echo '<head>' >> $1/index.html | |
echo '\t<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>' >> $1/index.html | |
echo '\t<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js" type="text/javascript"></script>' >> $1/index.html | |
echo '\t<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript"></script>' >> $1/index.html | |
echo '\t<script src="js/controller.js" type="text/javascript"></script>' >> $1/index.html | |
echo '\t<script src="js/main.js" type="text/javascript"></script>' >> $1/index.html | |
echo '\t<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">' >> $1/index.html | |
echo '\t<link href="css/styles.css" rel="stylesheet">' >> $1/index.html | |
echo '</head>' >> $1/index.html | |
echo '<body>' >> $1/index.html | |
echo '</body>' >> $1/index.html | |
echo '</html>' >> $1/index.html | |
echo 'project setup complete.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment