Skip to content
Myr

Merge branch 'refactor/executable'

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 · parents 1148254, 6e69c88 · Browse files · 1 file+15 added−12 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−12 removed

  • other:+15 added−12 removed

1 file+15 added−12 removed

modified:bin/express+15 added-12 removed
341 unmodified lines
342343 // Template support344 app = app.replace(':TEMPLATE', templateEngine);345346 write(path + '/app.js', app);346 // package.json347 var json = '{\n';348 json += ' "name": "application-name"\n';349 json += ' , "version": "0.0.1"\n';350 json += ' , "private": true\n';351 if (cssEngine || templateEngine) {352 var comma = cssEngine ? ' ,' : '';353 json += ' , "dependencies": {\n';354 if (cssEngine) json += ' "' + cssEngine + '": ">= 0.0.1"\n';355 if (templateEngine) json += ' ' + comma + ' "' + templateEngine + '": ">= 0.0.1"\n';356 json += ' }\n';357 }358 json += '}';359348 // Suggestions349 process.on('exit', function(){350 if (cssEngine) {351 console.log(' - make sure you have installed %s: \x1b[33m$ npm install %s\x1b[0m'352 , cssEngine353 , cssEngine);354 }355 console.log(' - make sure you have installed %s: \x1b[33m$ npm install %s\x1b[0m'356 , templateEngine357 , templateEngine);358 });360 write(path + '/package.json', json);361 write(path + '/app.js', app);362 });363}364365/**
85 unmodified lines