Comparing version 1.0.1 to 1.0.2
@@ -10,4 +10,2 @@ /** | ||
var fs = require( 'fs' ); | ||
var path = require( 'path' ); | ||
var edp = require( 'edp-core' ); | ||
@@ -20,3 +18,3 @@ | ||
function checkEnv() { | ||
if ( process.platform === 'win32' ) { | ||
if ( process.platform !== 'darwin' ) { | ||
return; | ||
@@ -23,0 +21,0 @@ } |
@@ -234,2 +234,9 @@ /** | ||
commandNode.fullPath = fullPath; | ||
// read help info from .md file | ||
var helpFile = fullPath.replace(/js$/i, 'md'); | ||
if (fs.existsSync(helpFile)) { | ||
commandNode.help = fs.readFileSync(helpFile, 'UTF-8'); | ||
} | ||
parentNode.addChild( commandNode ); | ||
@@ -236,0 +243,0 @@ } |
@@ -41,2 +41,13 @@ /** | ||
// 如果不同目录下存在相同的包,需要去重 | ||
var len = pkgs.length; | ||
var visited = {}; | ||
while (len--) { | ||
if (visited[pkgs[len]]) { | ||
pkgs.splice(len, 1); | ||
} | ||
visited[pkgs[len]] = 1; | ||
} | ||
return pkgs.filter( filter ); | ||
@@ -43,0 +54,0 @@ } |
@@ -41,3 +41,3 @@ /*************************************************************************** | ||
else { | ||
throw e1; | ||
throw ex; | ||
} | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "edp", | ||
"description": "Enterprise Develop Platform", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"contributors": [ | ||
@@ -38,2 +38,3 @@ { "name": "errorrik", "email": "errorrik@gmail.com" }, | ||
"edp-config": [ "config" ], | ||
"edp-web": [ "web" ], | ||
"edp-build": [ "build" ], | ||
@@ -40,0 +41,0 @@ "edp-package": [ "import", "search", "update" ], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74956
1081