Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Make bootstrap under static so less and js can easily stay synchroniz…
Browse files Browse the repository at this point in the history
…ed and upgrading is easy
  • Loading branch information
stenington committed Feb 22, 2013
1 parent 9b2dac3 commit 5630998
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "static/vendor/bootstrap"]
path = static/vendor/bootstrap
url = git://github.com/twitter/bootstrap.git
10 changes: 4 additions & 6 deletions app.js
Expand Up @@ -39,13 +39,11 @@ env.addFilter('formatdate', function (rawDate) {

// Middleware. Also see `middleware.js`
// ------------------------------------
var bootstrapPath = path.join(__dirname, 'node_modules', 'bootstrap');
app.use(less({
src: path.join(__dirname, "static", "less"),
paths: [path.join(bootstrapPath, "less")],
dest: path.join(__dirname, "static", "css"),
prefix: '/css',
debug: true
src: path.join(__dirname, "static/less"),
paths: [path.join(__dirname, "static/vendor/bootstrap/less")],
dest: path.join(__dirname, "static/css"),
prefix: '/css'
}));
app.use(express.static(path.join(__dirname, "static")));
app.use(express.static(path.join(configuration.get('var_dir'), "badges")));
Expand Down
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -4,11 +4,9 @@
"version": "0.5.0",
"private": true,
"scripts": {
"test": "NODE_ENV=test ./node_modules/.bin/tap test/*.test.js",
"postinstall": "cp ./node_modules/bootstrap/js/*.js static/js/bootstrap/"
"test": "NODE_ENV=test ./node_modules/.bin/tap test/*.test.js"
},
"dependencies": {
"bootstrap": "git+https://github.com/twitter/bootstrap.git#v2.2.2",
"colors": "*",
"commander": "~0.5.2",
"connect-flash": "*",
Expand Down
1 change: 1 addition & 0 deletions static/vendor/bootstrap
Submodule bootstrap added at 9376a7

0 comments on commit 5630998

Please sign in to comment.