Skip to content
Myr

Added package.json generation support to 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 59dcd03 · Browse files · 1 file+15 added−0 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−0 removed

  • other:+15 added−0 removed

1 file+15 added−0 removed

modified:bin/express+15 added
341 unmodified lines
342343 // Template support344 app = app.replace(':TEMPLATE', templateEngine);345346 // 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 += '}';359360 write(path + '/package.json', json);361 write(path + '/app.js', app);362 });363}364
86 unmodified lines