Skip to content

Commit 6c47c8d

Browse files
committed
fix(initTmpl): 去掉默认用户选项
1 parent 7c6e573 commit 6c47c8d

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

lib/config/initTmpl/ykit.common.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
'use strict';
1+
exports.config = function() {
2+
this.setExports([
23

3-
exports.config = function () {
4-
this.setExports([]);
4+
]);
55

66
this.commands.push({
77
name: 'project_cmd',
88
module: {
99
usage: '项目自定义的命令',
10-
run: function run() {}
10+
run: function () {}
1111
}
1212
});
1313

14-
this.setConfig(function (config) {
14+
this.setConfig(function(config) {
1515
config.context = './src';
1616
config.syncConfig = {
17-
"user": "",
18-
"host": "192.168.237.71",
17+
"host" : "192.168.237.71",
1918
"path": "/home/q/www/qunarzz.com/context-root"
2019
};
2120
return config;
2221
});
23-
};
22+
};

src/config/initTmpl/ykit.common.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ exports.config = function() {
1414
this.setConfig(function(config) {
1515
config.context = './src';
1616
config.syncConfig = {
17-
"user": "",
1817
"host" : "192.168.237.71",
1918
"path": "/home/q/www/qunarzz.com/context-root"
2019
};

0 commit comments

Comments
 (0)