Skip to content
Myr

Installation suggestions when using express(1)

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 1a6d245 · Browse files · 1 file+15 added−3 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+15 added−3 removed

  • other:+15 added−3 removed

1 file+15 added−3 removed

modified:bin/express+15 added-3 removed
28 unmodified lines
29/**30 * CSS engine to utilize.31 */3233var cssEngine = 'none';33var cssEngine;3435/**36 * Usage documentation.37 */
238 unmodified lines
276 ? '\n app.use(express.cookieDecoder());\n app.use(express.session());'277 : '');278279 write(path + '/app.js', app);280281 // Suggestions282 process.on('exit', function(){283 if (cssEngine) {284 console.log(' - make sure you have installed %s: \x1b[33m$ npm install %s\x1b[0m'285 , cssEngine286 , cssEngine);287 }288 console.log(' - make sure you have installed %s: \x1b[33m$ npm install %s\x1b[0m'289 , 'jade'290 , 'jade');291 });292 });293}294295/**
18 unmodified lines
314 */315316function write(path, str) {317 fs.writeFile(path, str);306 console.log(' create : ' + path);318 console.log(' \x1b[33mcreate\x1b[0m : ' + path);319}320321/**322 * Prompt confirmation with the given `msg`.
34 unmodified lines
357358function mkdir(path, fn) {359 exec('mkdir -p ' + path, function(err){360 if (err) throw err;349 console.log(' create : ' + path);361 console.log(' \x1b[33mcreate\x1b[0m : ' + path);362 fn && fn();363 });364}365
10 unmodified lines