fis-command-install
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -86,2 +86,27 @@ /* | ||
.then(function() { | ||
var roadmap = fis.config.get('roadmap.path', []); | ||
var good = false; | ||
var folder = path.basename(fis.config.get('component.dir') || '/components'); | ||
roadmap.every(function(item) { | ||
var reg = item.reg.toString(); | ||
if (~reg.indexOf(folder) && item.isMod) { | ||
good = true; | ||
return false; | ||
} | ||
return true; | ||
}); | ||
good || logger.warn('Please copy the following rule to you `roadmap.path`\n settings in `fos-conf.js`:\n' + | ||
'{\n'+ | ||
' reg: /^\\/'+folder+'\\/.*\\.js$/i,\n' + | ||
' jswrapper: {\n' + | ||
' type: \'amd\'\n' + | ||
' }\n' + | ||
'}\n' | ||
); | ||
}) | ||
// 读取 components.json 如果存在 | ||
@@ -88,0 +113,0 @@ .then(function() { |
{ | ||
"name": "fis-command-install", | ||
"description": "fis install command.", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"author": "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "http://fis.baidu.com/", |
45010
1023