egg-controller
Advanced tools
Comparing version 0.1.21 to 0.1.22
@@ -8,3 +8,3 @@ "use strict"; | ||
if (config.genSDK.enable) { | ||
let { SDKDir, templatePath } = config.genSDK; | ||
let { SDKDir, templatePath, type, filter } = config.genSDK; | ||
if (!SDKDir) { | ||
@@ -15,9 +15,9 @@ throw new Error(`[egg-controller] NEED 'SDKDir' in config!`); | ||
SDKDir = path.isAbsolute(SDKDir) ? SDKDir : path.join(agent.baseDir, SDKDir); | ||
gen_sdk_1.genAPISDKByPath(ctrlDir, SDKDir, templatePath); | ||
gen_sdk_1.genAPISDKByPath(ctrlDir, SDKDir, templatePath, type, filter); | ||
console.log('[egg-controller] gen api sdk.'); | ||
agent.watcher.watch(ctrlDir, (file) => { | ||
console.log('[egg-controller] file changed', file.path); | ||
gen_sdk_1.genAPISDKByPath(file.path, SDKDir, templatePath); | ||
gen_sdk_1.genAPISDKByPath(file.path, SDKDir, templatePath, type, filter); | ||
}); | ||
} | ||
}; |
{ | ||
"name": "egg-controller", | ||
"version": "0.1.21", | ||
"version": "0.1.22", | ||
"description": "controller for egg.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
43716