Skip to content

Commit 0720d93

Browse files
author
hongqi.gan
committed
feat: 更新 docs 地址
1 parent 455c291 commit 0720d93

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

lib/commands/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ exports.npmInstall = function () {
5353
if (isNodeModulesExists) {
5454
logError('Find node_modules in the current directory which can cause compilation failure.');
5555
logError('Please remove it from your registry.');
56-
logInfo('Visit ' + 'http://ued.qunar.com/ykit/docs-%E5%8F%91%E5%B8%83.html'.underline + ' for doc.');
56+
logInfo('Visit ' + 'https://ykit.ymfe.org/guide/build-prd.html'.underline + ' for doc.');
5757
process.exit(1);
5858
}
5959

@@ -82,7 +82,7 @@ exports.npmInstall = function () {
8282
currentNpm = 'npm';
8383
log('Installing npm modules with npm.');
8484
logWarn('Please use yarn or shrinkwrap to lock down the versions of packages.');
85-
logDoc('http://ued.qunar.com/ykit/docs-npm%20shrinkwrap.html');
85+
logDoc('https://ykit.ymfe.org/guide/shrinkwrap.html');
8686
}
8787

8888
// install

lib/commands/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ exports.run = function (options) {
6262

6363
if ((0, _keys2.default)(config.entry).length === 0) {
6464
logError('No assets entry found.');
65-
logDoc('http://ued.qunar.com/ykit/docs-%E9%85%8D%E7%BD%AE.html');
65+
logDoc('https://ykit.ymfe.org/guide/basic-config.html');
6666
process.exit(1);
6767
}
6868

lib/models/Project.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ var Project = function () {
204204
}
205205
} else {
206206
logError(pluginItem.name || 'Unknown' + ' plugin config error,please check local ykit.js.');
207-
logDoc('http://ued.qunar.com/ykit/plugins.html');
207+
logDoc('https://ykit.ymfe.org/plugin/plugin.html');
208208
}
209209

210210
if (pluginName.indexOf(ykitConfigStartWith) === -1) {
@@ -241,7 +241,7 @@ var Project = function () {
241241
var errorInfo = 'Local ' + pluginName + ' plugin not found\uFF0Cyou may need to install it first.';
242242
if (!(process.ykitError && process.ykitError[_this2.cwd + errorInfo])) {
243243
logError(errorInfo);
244-
logDoc('http://ued.qunar.com/ykit/plugins.html');
244+
logDoc('https://ykit.ymfe.org/plugin/plugin.html');
245245
}
246246
process.ykitError = (0, _assign2.default)(process.ykitError || {}, (0, _defineProperty3.default)({}, _this2.cwd + errorInfo, true));
247247
}
@@ -265,7 +265,7 @@ var Project = function () {
265265
this.setBuild(ykitConfigFile.build);
266266
} else {
267267
logError('Local ' + this.configFile + ' config not found.');
268-
logDoc('http://ued.qunar.com/ykit/docs-配置.html');
268+
logDoc('https://ykit.ymfe.org/guide/basic-config.html');
269269
}
270270

271271
// 处理 eslint

src/commands/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ exports.npmInstall = function() {
5353
if(isNodeModulesExists) {
5454
logError('Find node_modules in the current directory which can cause compilation failure.');
5555
logError('Please remove it from your registry.');
56-
logInfo('Visit ' + 'http://ued.qunar.com/ykit/docs-%E5%8F%91%E5%B8%83.html'.underline + ' for doc.');
56+
logInfo('Visit ' + 'https://ykit.ymfe.org/guide/build-prd.html'.underline + ' for doc.');
5757
process.exit(1);
5858
}
5959

@@ -82,7 +82,7 @@ exports.npmInstall = function() {
8282
currentNpm = 'npm';
8383
log('Installing npm modules with npm.');
8484
logWarn('Please use yarn or shrinkwrap to lock down the versions of packages.');
85-
logDoc('http://ued.qunar.com/ykit/docs-npm%20shrinkwrap.html');
85+
logDoc('https://ykit.ymfe.org/guide/shrinkwrap.html');
8686
}
8787

8888
// install

src/commands/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ exports.run = function (options) {
6060

6161
if(Object.keys(config.entry).length === 0) {
6262
logError('No assets entry found.');
63-
logDoc('http://ued.qunar.com/ykit/docs-%E9%85%8D%E7%BD%AE.html');
63+
logDoc('https://ykit.ymfe.org/guide/basic-config.html');
6464
process.exit(1);
6565
}
6666

src/models/Project.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class Project {
165165
}
166166
} else {
167167
logError(pluginItem.name || 'Unknown' + ' plugin config error,please check local ykit.js.');
168-
logDoc('http://ued.qunar.com/ykit/plugins.html');
168+
logDoc('https://ykit.ymfe.org/plugin/plugin.html');
169169
}
170170

171171
if(pluginName.indexOf(ykitConfigStartWith) === -1) {
@@ -206,7 +206,7 @@ class Project {
206206
const errorInfo = `Local ${pluginName} plugin not found,you may need to install it first.`;
207207
if(!(process.ykitError && process.ykitError[this.cwd + errorInfo])) {
208208
logError(errorInfo);
209-
logDoc('http://ued.qunar.com/ykit/plugins.html');
209+
logDoc('https://ykit.ymfe.org/plugin/plugin.html');
210210
}
211211
process.ykitError = Object.assign(process.ykitError || {}, {[this.cwd + errorInfo]: true});
212212
}
@@ -231,7 +231,7 @@ class Project {
231231
this.setBuild(ykitConfigFile.build);
232232
} else {
233233
logError('Local ' + this.configFile + ' config not found.');
234-
logDoc('http://ued.qunar.com/ykit/docs-配置.html');
234+
logDoc('https://ykit.ymfe.org/guide/basic-config.html');
235235
}
236236

237237
// 处理 eslint

0 commit comments

Comments
 (0)