Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 40 lines (34 sloc) 1.094 kB
1d7f618 @robrighter inits
authored
1 #!/bin/sh
1b8341a @robrighter Updated to jade
authored
2 echo "Creating necessary folders"
2beafb0 @robrighter Updated to use the new version of socket.io
authored
3 mkdir ./static
dd91dc5 @jackowayed get rid of all of the /project's in initproject.sh
jackowayed authored
4 mkdir ./static/images
5 mkdir ./static/css
2beafb0 @robrighter Updated to use the new version of socket.io
authored
6 mkdir ./static/js
1b8341a @robrighter Updated to jade
authored
7 mkdir ./views
8 mkdir ./models
cc42891 @cbrammer Mocha test framework
cbrammer authored
9 mkdir ./test
98b9a9f @robrighter Inits
authored
10
4fe5882 @robrighter Added init script
authored
11 echo "Copying Markup and CSS BoilerPlate..."
1b8341a @robrighter Updated to jade
authored
12 cp ./templates/app/server.js ./server.js
13a97e5 @robrighter Setup package.json to use npm automated install. Also added .gitignor…
authored
13 cp ./templates/app/package.json ./package.json
14 cp ./templates/app/.gitignore ./.gitignore
fe2808f @robrighter dir structure simplification
authored
15 cp ./templates/app/config.json ./config.json
cc42891 @cbrammer Mocha test framework
cbrammer authored
16 cp ./templates/app/Makefile ./Makefile
17 cp ./templates/test/stub.js ./test/stub.js
1b8341a @robrighter Updated to jade
authored
18 curl https://raw.github.com/h5bp/html5-boilerplate/master/css/style.css > ./static/css/style.css
19 cp ./templates/views/500.jade ./views/500.jade
20 cp ./templates/views/404.jade ./views/404.jade
21 cp ./templates/views/index.jade ./views/index.jade
22 cp ./templates/views/layout.jade ./views/layout.jade
2beafb0 @robrighter Updated to use the new version of socket.io
authored
23 cp ./templates/js/script.js ./static/js/script.js
24 # TODO copy over the models
1b8341a @robrighter Updated to jade
authored
25
26 echo "Setting up the dependancies from NPM..."
13a97e5 @robrighter Setup package.json to use npm automated install. Also added .gitignor…
authored
27 npm install
4fe5882 @robrighter Added init script
authored
28
29 echo "Removing the stuff you dont want..."
915253c @robrighter Added readme file and rm's to init script
authored
30 rm -rf .git
2beafb0 @robrighter Updated to use the new version of socket.io
authored
31 rm -rf templates
915253c @robrighter Added readme file and rm's to init script
authored
32 rm README.md
3dafc2a @robrighter updated initproject.sh
authored
33 rm -rf initproject.sh
4fe5882 @robrighter Added init script
authored
34
35 echo "Initing the new git project..."
915253c @robrighter Added readme file and rm's to init script
authored
36 git init
37 git add .
38 git commit -m"Initial Commit"
4fe5882 @robrighter Added init script
authored
39
Something went wrong with that request. Please try again.