Skip to content
Myr

Added mkdirp to express(1). Closes #795

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 d3937b9 · Browse files · 2 files+4 added−2 removed
This commit

State

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

Diff stats

2 files+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 removed

modified:bin/express+3 added-2 removed
5 unmodified lines
67var express = require('../')8 , exec = require('child_process').exec9 , program = require('commander')10 , mkdirp = require('mkdirp')11 , fs = require('fs');1213// CLI14
298 unmodified lines
313 * @param {Function} fn314 */315316function mkdir(path, fn) {316 exec('mkdir -p ' + path, function(err){317 mkdirp(path, 0755, function(err){318 if (err) throw err;318 console.log(' \x1b[36mcreate\x1b[0m : ' + path);319 console.log(' \033[36mcreate\033[0m : ' + path);320 fn && fn();321 });322}323
10 unmodified lines
modified:package.json+1 added