Skip to content
Myr

"Add the ability to force install express to non-empty directory."

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

authored by tstrimple · committed by tstrimple · parent 80e16c8 · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:bin/express+2 added-1 removed
17 unmodified lines
18 .option('-s, --sessions', 'add session support')19 .option('-e, --ejs', 'add ejs engine support (defaults to jade)')20 .option('-J, --jshtml', 'add jshtml engine support (defaults to jade)')21 .option('-S, --stylus', 'add stylus support')22 .option('-f, --force', 'force express scaffolding to deploy to non-empty directory')23 .parse(process.argv);2425// Path26
184 unmodified lines
211// Generate application212213(function createApplication(path) {214 emptyDirectory(path, function(empty){214 if (empty) {215 if (empty || program.force) {216 createApplicationAt(path);217 } else {218 program.confirm('destination is not empty, continue? ', function(ok){219 if (ok) {
146 unmodified lines