Use fs-promise.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
"exec-promise": "^0.5.1",
|
||||
"extendable": "~0.1.0",
|
||||
"fibers": "~1.0.5",
|
||||
"fs-promise": "^0.3.1",
|
||||
"hashy": "~0.4.2",
|
||||
"http-server-plus": "^0.5.0",
|
||||
"js-yaml": "^3.2.5",
|
||||
|
||||
@@ -9,7 +9,7 @@ import bind from 'lodash.bind';
|
||||
import chalk from 'chalk';
|
||||
import createConnectApp from 'connect';
|
||||
import eventToPromise from 'event-to-promise';
|
||||
import fs from 'fs';
|
||||
import {readFile} from 'fs-promise';
|
||||
import forEach from 'lodash.foreach';
|
||||
import has from 'lodash.has';
|
||||
import isArray from 'lodash.isarray';
|
||||
@@ -26,10 +26,6 @@ import {fileExists, wrap} from './utils';
|
||||
|
||||
//====================================================================
|
||||
|
||||
let readFile = Bluebird.promisify(fs.readFile);
|
||||
|
||||
//====================================================================
|
||||
|
||||
let info = (...args) => {
|
||||
console.info('[Info]', ...args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user