Skip to content
Myr

Updated express(1). Closes #365

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1e7a12f · Browse files · 1 file+10 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−10 removed

  • other:+10 added−10 removed

1 file+10 added−10 removed

modified:bin/express+10 added-10 removed
37 unmodified lines
38 ' body!= body'39].join('\n');4041/**42 * Default sass template.42 * Default less template.43 */4445var sass = [46 'body',47 ' :padding 50px',48 ' :font 14px "Lucida Grande", "Helvetica Nueue", Arial, sans-serif'45var less = [46 'body {',47 ' padding: 50px;',48 ' font: 14px "Lucida Grande", "Helvetica Nueue", Arial, sans-serif;',49 '}'50].join('\n');5152/**53 * Jade index template.
16 unmodified lines
70 '',71 'var express = require(\'express\'),',72 ' connect = require(\'connect\');',73 '',73 '// Create and export Express app',74 '',74 'var app = express.createServer();',75 '',76 '// Configuration',77 '',78 'app.configure(function(){',79 ' app.set(\'views\', __dirname + \'/views\');',80 ' app.use(connect.bodyDecoder());',81 ' app.use(connect.methodOverride());',83 ' app.use(connect.compiler({ src: __dirname + \'/public\', enable: [\'sass\'] }));',82 ' app.use(connect.compiler({ src: __dirname + \'/public\', enable: [\'less\'] }));',83 ' app.use(app.router);',84 ' app.use(connect.staticProvider(__dirname + \'/public\'));',85 '});',86 '',87 'app.configure(\'development\', function(){',88 ' app.set(\'reload views\', 1000);',88 ' app.set(\'reload views\', 500);',89 ' app.use(connect.errorHandler({ dumpExceptions: true, showStack: true })); ',90 '});',91 '',92 'app.configure(\'production\', function(){',
42 unmodified lines
135 mkdir(path + '/logs');136 mkdir(path + '/public/javascripts');137 mkdir(path + '/public/images');138 mkdir(path + '/public/stylesheets', function(){139 write(path + '/public/stylesheets/style.sass', sass);139 write(path + '/public/stylesheets/style.less', less);140 });141 mkdir(path + '/views/partials', function(){142 write(path + '/views/layout.jade', jadeLayout);143 write(path + '/views/index.jade', jadeIndex);
42 unmodified lines