feat: remove default customEgg (#487)

If customEgg is not specified, master will lookup egg from node_modules
by default
This commit is contained in:
Haoliang Gao 2017-03-02 21:40:55 +08:00 committed by GitHub
parent bac0526f22
commit 2fb89df413
5 changed files with 9 additions and 12 deletions

3
.gitignore vendored
View File

@ -1,4 +1,4 @@
node_modules
/node_modules
coverage
*.log
npm-debug.log
@ -11,6 +11,7 @@ run
.DS_Store
.tmp
docs/CONTRIBUTING.md
docs/node_modules
docs/README.md
docs/db.json
docs/source/release/index.md

View File

@ -8,7 +8,7 @@
* Start egg application with cluster mode
* @since 1.0.0
*/
exports.startCluster = require('./lib/cluster');
exports.startCluster = require('egg-cluster').startCluster;
/**
* @member {Application} Egg#Application

View File

@ -1,10 +0,0 @@
'use strict';
const path = require('path');
const startCluster = require('egg-cluster').startCluster;
module.exports = (options = {}, callback) => {
/* istanbul ignore next */
options.customEgg = options.customEgg || path.join(__dirname, '../..');
startCluster(options, callback);
};

View File

@ -0,0 +1,3 @@
'use strict';
module.exports = require('../../../../../..');

View File

@ -0,0 +1,3 @@
{
"name": "egg"
}