vue-docgen-cli
Advanced tools
Comparing version 3.23.1 to 3.24.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.24.0](https://github.com/vue-styleguidist/vue-styleguidist/compare/v3.23.2...v3.24.0) (2019-09-25) | ||
### Features | ||
* vue-docgen-cli if getDestFile should not create md file ([55da63e](https://github.com/vue-styleguidist/vue-styleguidist/commit/55da63e)) | ||
## [3.23.1](https://github.com/vue-styleguidist/vue-styleguidist/compare/v3.23.0...v3.23.1) (2019-09-20) | ||
@@ -8,0 +19,0 @@ |
@@ -82,3 +82,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var componentFile, _a; | ||
var componentFile, file, _a; | ||
return __generator(this, function (_b) { | ||
@@ -88,8 +88,10 @@ switch (_b.label) { | ||
componentFile = docMap[filePath] || filePath; | ||
file = config.getDestFile(componentFile, config); | ||
if (!file) return [3 /*break*/, 2]; | ||
_a = utils_1.writeDownMdFile; | ||
return [4 /*yield*/, utils_1.compileMarkdown(config, componentFile)]; | ||
case 1: | ||
_a.apply(void 0, [_b.sent(), | ||
config.getDestFile(componentFile, config)]); | ||
return [2 /*return*/]; | ||
_a.apply(void 0, [_b.sent(), file]); | ||
_b.label = 2; | ||
case 2: return [2 /*return*/]; | ||
} | ||
@@ -96,0 +98,0 @@ }); |
{ | ||
"name": "vue-docgen-cli", | ||
"version": "3.23.1", | ||
"version": "3.24.0", | ||
"scripts": { | ||
@@ -25,3 +25,3 @@ "compile": "tsc -p ./tsconfig.build.json", | ||
}, | ||
"gitHead": "61c55a4624d17b956b681c64c6f3490839bd26b4" | ||
"gitHead": "16b3fdd6f517e58d4bcdd1b029d8443dab79f5bd" | ||
} |
@@ -53,6 +53,7 @@ import * as fs from 'fs' | ||
const componentFile = docMap[filePath] || filePath | ||
writeDownMdFile( | ||
await compileMarkdown(config, componentFile), | ||
config.getDestFile(componentFile, config) | ||
) | ||
const file = config.getDestFile(componentFile, config) | ||
// if getDestFile is null,will not be create files | ||
if (file) { | ||
writeDownMdFile(await compileMarkdown(config, componentFile), file) | ||
} | ||
} |
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
91791
1987