Created
June 3, 2011 15:33
-
-
Save joemccann/1006540 to your computer and use it in GitHub Desktop.
Another express boilerplate with yepnope, 1140.css, normalize, jQuery
This file contains hidden or 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 | |
# run from Express project root directory | |
# Dependencies: wget, node.js, npm, express | |
# change these to the versions you want | |
JQ="1.6.1" | |
YEP="yepnope.1.0.1-min.js" | |
express -t ejs -c stylus | |
npm install ejs | |
npm install stylus | |
# rename to shorter names | |
mv public/stylesheets public/css | |
mv public/javascripts/ public/js | |
mv public/images/ public/img | |
# remove dirs we don't use | |
rm -rf pids logs test | |
rm -f public/css/style.styl public/css/style.css | |
wget -O public/js/$YEP https://github.com/SlexAxton/yepnope.js/raw/master/$YEP | |
wget -O public/css/normalize.css https://github.com/necolas/normalize.css/raw/master/normalize.css | |
wget -O public/css/1140.css http://cssgrid.net/css/1140.css | |
wget -O public/js/jquery-$JQ.min.js http://ajax.googleapis.com/ajax/libs/jquery/$JQ/jquery.min.js | |
# convert CSS files to STYL files. | |
stylus -C public/css/1140.css public/css/1140.styl | |
stylus -C public/css/normalize.css public/css/normalize.styl | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment