@ng-doc/builder 15.0.0-beta.18 → 15.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/engine/.cache/libs/app/classes/search-engine/search-engine.js +2 -2
- package/engine/.cache/libs/app/components/page/page.component.js +0 -1
- package/engine/.cache/libs/app/constants/themes.js +1 -1
- package/engine/.cache/libs/builder/engine/entities/skeleton.entity.js +11 -19
- package/engine/.cache/libs/builder/engine/variables.js +1 -3
- package/engine/.cache/libs/builder/helpers/create-builder-context.js +1 -2
- package/engine/.cache/libs/builder/helpers/find-closest-file.js +3 -4
- package/engine/.cache/libs/builder/schematics/category/index.js +1 -2
- package/engine/.cache/libs/builder/schematics/page/index.js +1 -2
- package/engine/.cache/libs/ui-kit/modules/root/root.module.js +1 -1
- package/engine/entities/skeleton.entity.js +11 -19
- package/engine/entities/skeleton.entity.js.map +1 -1
- package/engine/variables.d.ts +0 -2
- package/engine/variables.js +1 -3
- package/engine/variables.js.map +1 -1
- package/helpers/create-builder-context.js +1 -2
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/find-closest-file.d.ts +1 -2
- package/helpers/find-closest-file.js +3 -4
- package/helpers/find-closest-file.js.map +1 -1
- package/package.json +2 -2
- package/schematics/category/index.js +1 -2
- package/schematics/category/index.js.map +1 -1
- package/schematics/page/index.js +1 -2
- package/schematics/page/index.js.map +1 -1
- package/engine/.cache/libs/builder/generated/index.js +0 -6
- package/engine/.cache/libs/builder/generated/ng-doc.context.js +0 -8
- package/engine/.cache/libs/builder/generated/ng-doc.generated.module.js +0 -19
- package/engine/.cache/libs/builder/generated/ng-doc.routing.js +0 -4
- package/generated/assets/indexes.json +0 -19301
- package/generated/assets/pages.json +0 -2738
- package/generated/index.ts +0 -3
- package/generated/ng-doc.context.ts +0 -7
- package/generated/ng-doc.generated.module.ts +0 -13
- package/generated/ng-doc.routing.ts +0 -3
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[![GitHub Workflow Status][build-shield]][build-url]
|
|
2
|
+
[![NPM][npm-shield]][npm-url]
|
|
3
|
+
[![MIT License][license-shield]][license-url]
|
|
4
|
+
|
|
5
|
+
<!-- PROJECT LOGO -->
|
|
6
|
+
<br />
|
|
7
|
+
<div align="center">
|
|
8
|
+
<a href="https://github.com/skoropadas/ng-doc">
|
|
9
|
+
<img src="https://ng-doc.com/assets/images/ng-doc.svg" alt="Logo" height="100px">
|
|
10
|
+
</a>
|
|
11
|
+
|
|
12
|
+
<h3 align="center">NgDoc</h3>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
Create documentation faster than ever!
|
|
16
|
+
<br />
|
|
17
|
+
<a href="https://ng-doc.com/"><strong>Explore the docs »</strong></a>
|
|
18
|
+
<br />
|
|
19
|
+
<br />
|
|
20
|
+
<a href="https://ng-doc.com/getting-started/roadmap">Roadmap</a>
|
|
21
|
+
·
|
|
22
|
+
<a href="https://github.com/skoropadas/ng-doc/issues">Report Bug</a>
|
|
23
|
+
·
|
|
24
|
+
<a href="https://github.com/skoropadas/ng-doc/issues">Request Feature</a>
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<!-- ABOUT THE PROJECT -->
|
|
29
|
+
|
|
30
|
+
## About The Project
|
|
31
|
+
|
|
32
|
+
This library is a part of NgDoc project, that uses to create documentation
|
|
33
|
+
for Angular projects, please check our [repo](https://github.com/skoropadas/ng-doc) for more details.
|
|
34
|
+
|
|
35
|
+
[npm-shield]: https://img.shields.io/npm/v/@ng-doc/builder.svg?style=for-the-badge
|
|
36
|
+
[npm-url]: https://www.npmjs.com/package/@ng-doc/builder
|
|
37
|
+
[license-shield]: https://img.shields.io/github/license/skoropadas/ng-doc.svg?style=for-the-badge
|
|
38
|
+
[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt
|
|
39
|
+
[build-shield]: https://img.shields.io/github/actions/workflow/status/skoropadas/ng-doc/release.yml?style=for-the-badge&branch=release
|
|
40
|
+
[build-url]: https://github.com/skoropadas/ng-doc/actions
|
|
@@ -8,8 +8,8 @@ const operators_1 = require("rxjs/operators");
|
|
|
8
8
|
class NgDocSearchEngine {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.index$ = (0, rxjs_1.forkJoin)([
|
|
11
|
-
this.request(`assets/indexes.json`).pipe((0, operators_1.map)(this.createIndex)),
|
|
12
|
-
this.request(`assets/pages.json`),
|
|
11
|
+
this.request(`assets/ng-doc/indexes.json`).pipe((0, operators_1.map)(this.createIndex)),
|
|
12
|
+
this.request(`assets/ng-doc/pages.json`),
|
|
13
13
|
]).pipe((0, operators_1.shareReplay)(1));
|
|
14
14
|
}
|
|
15
15
|
search(query) {
|
|
@@ -7,7 +7,6 @@ const root_page_1 = require("@ng-doc/app/classes/root-page");
|
|
|
7
7
|
let NgDocPageComponent = class NgDocPageComponent {
|
|
8
8
|
constructor(rootPage) {
|
|
9
9
|
this.rootPage = rootPage;
|
|
10
|
-
console.log(this.rootPage.pageContent);
|
|
11
10
|
}
|
|
12
11
|
};
|
|
13
12
|
NgDocPageComponent = tslib_1.__decorate([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NG_DOC_NIGHT_THEME = void 0;
|
|
4
|
-
exports.NG_DOC_NIGHT_THEME = { id: 'ng-doc-night', path: 'assets/themes/ng-doc-night.css' };
|
|
4
|
+
exports.NG_DOC_NIGHT_THEME = { id: 'ng-doc-night', path: 'assets/ng-doc/app/themes/ng-doc-night.css' };
|
|
@@ -20,20 +20,18 @@ class NgDocSkeletonEntity extends entity_1.NgDocEntity {
|
|
|
20
20
|
return (0, rxjs_1.of)(void 0);
|
|
21
21
|
}
|
|
22
22
|
build() {
|
|
23
|
-
return (0, rxjs_1.forkJoin)([
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]));
|
|
23
|
+
return (0, rxjs_1.forkJoin)([
|
|
24
|
+
this.buildIndexFile(),
|
|
25
|
+
this.buildGeneratedModule(),
|
|
26
|
+
this.buildRoutes(),
|
|
27
|
+
this.buildContext(),
|
|
28
|
+
this.buildIndexes(),
|
|
29
|
+
]).pipe((0, operators_1.map)(([index, generatedModule, routes, context, indexes]) => [index, generatedModule, routes, context, ...indexes]));
|
|
30
30
|
}
|
|
31
31
|
buildRoutes() {
|
|
32
32
|
const entities = this.rootEntitiesForBuild;
|
|
33
33
|
const renderer = new renderer_1.NgDocRenderer(this.builder, { entities });
|
|
34
|
-
return renderer
|
|
35
|
-
.render('./routing.ts.nunj')
|
|
36
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
34
|
+
return renderer.render('./routing.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
37
35
|
content: output,
|
|
38
36
|
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.routing.ts'),
|
|
39
37
|
})));
|
|
@@ -41,27 +39,21 @@ class NgDocSkeletonEntity extends entity_1.NgDocEntity {
|
|
|
41
39
|
buildContext() {
|
|
42
40
|
const entities = this.rootEntitiesForBuild;
|
|
43
41
|
const renderer = new renderer_1.NgDocRenderer(this.builder, { entities });
|
|
44
|
-
return renderer
|
|
45
|
-
.render('./context.ts.nunj')
|
|
46
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
42
|
+
return renderer.render('./context.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
47
43
|
content: output,
|
|
48
44
|
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.context.ts'),
|
|
49
45
|
})));
|
|
50
46
|
}
|
|
51
47
|
buildIndexFile() {
|
|
52
48
|
const renderer = new renderer_1.NgDocRenderer(this.builder);
|
|
53
|
-
return renderer
|
|
54
|
-
.render('./index.ts.nunj')
|
|
55
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
49
|
+
return renderer.render('./index.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
56
50
|
content: output,
|
|
57
51
|
filePath: path_1.default.join(this.context.buildPath, 'index.ts'),
|
|
58
52
|
})));
|
|
59
53
|
}
|
|
60
54
|
buildGeneratedModule() {
|
|
61
55
|
const renderer = new renderer_1.NgDocRenderer(this.builder);
|
|
62
|
-
return renderer
|
|
63
|
-
.render('./ng-doc.generated.module.ts.nunj')
|
|
64
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
56
|
+
return renderer.render('./ng-doc.generated.module.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
65
57
|
content: output,
|
|
66
58
|
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.generated.module.ts'),
|
|
67
59
|
})));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TEMPLATES_PATH = exports.
|
|
3
|
+
exports.TEMPLATES_PATH = exports.CACHE_PATH = exports.PLAYGROUND_PATTERN = exports.API_PATTERN = exports.PAGE_DEPENDENCY_PATTERN = exports.CATEGORY_PATTERN = exports.PAGE_PATTERN = exports.RENDERED_PAGE_NAME = exports.PLAYGROUND_NAME = exports.API_NAME = exports.PAGE_DEPENDENCIES_NAME = exports.CATEGORY_NAME = exports.PAGE_NAME = void 0;
|
|
4
4
|
const path = require("path");
|
|
5
5
|
exports.PAGE_NAME = 'ng-doc.page.ts';
|
|
6
6
|
exports.CATEGORY_NAME = 'ng-doc.category.ts';
|
|
@@ -14,6 +14,4 @@ exports.PAGE_DEPENDENCY_PATTERN = `**/${exports.PAGE_DEPENDENCIES_NAME}`;
|
|
|
14
14
|
exports.API_PATTERN = `**/${exports.API_NAME}`;
|
|
15
15
|
exports.PLAYGROUND_PATTERN = `**/${exports.PLAYGROUND_NAME}`;
|
|
16
16
|
exports.CACHE_PATH = path.join(__dirname, '.cache');
|
|
17
|
-
exports.GENERATED_PATH = path.join(__dirname, '../generated');
|
|
18
|
-
exports.GENERATED_ASSETS_PATH = path.join(exports.GENERATED_PATH, 'assets');
|
|
19
17
|
exports.TEMPLATES_PATH = path.join(__dirname, '../templates');
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createBuilderContext = void 0;
|
|
4
4
|
const core_1 = require("@ng-doc/core");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
const engine_1 = require("../engine");
|
|
7
6
|
/**
|
|
8
7
|
*
|
|
9
8
|
* @param targetOptions
|
|
@@ -20,7 +19,7 @@ function createBuilderContext(targetOptions, options, context) {
|
|
|
20
19
|
context,
|
|
21
20
|
inlineStyleLanguage: (_c = targetOptions === null || targetOptions === void 0 ? void 0 : targetOptions['inlineStyleLanguage']) !== null && _c !== void 0 ? _c : 'CSS',
|
|
22
21
|
pagesPaths: ((_e = (_d = options.ngDoc) === null || _d === void 0 ? void 0 : _d.pages) === null || _e === void 0 ? void 0 : _e.length) ? (0, core_1.asArray)((_f = options.ngDoc) === null || _f === void 0 ? void 0 : _f.pages) : [path.dirname(options.main)],
|
|
23
|
-
assetsPath:
|
|
22
|
+
assetsPath: path.join(buildPath, 'assets'),
|
|
24
23
|
buildPath,
|
|
25
24
|
apiPath: path.join(buildPath, 'api'),
|
|
26
25
|
modulesPath: path.join(buildPath, 'modules'),
|
|
@@ -6,21 +6,20 @@ const path = require("path");
|
|
|
6
6
|
/**
|
|
7
7
|
* Finds the closest file in the given path.
|
|
8
8
|
*
|
|
9
|
-
* @param {string} rootFolder The root folder where it needs to stop the search.
|
|
10
9
|
* @param {string} currentFolder The current folder to search in.
|
|
11
10
|
* @param {string} fileName The file name to search for.
|
|
12
11
|
* @returns {string} The path to the closest file.
|
|
13
12
|
*/
|
|
14
|
-
function findClosestFile(
|
|
13
|
+
function findClosestFile(currentFolder, fileName) {
|
|
15
14
|
const currentPath = currentFolder;
|
|
16
15
|
const filePath = path.join(currentPath, fileName);
|
|
17
16
|
if (fs.existsSync(filePath)) {
|
|
18
17
|
return filePath;
|
|
19
18
|
}
|
|
20
19
|
const parentPath = path.dirname(currentPath);
|
|
21
|
-
if (parentPath ===
|
|
20
|
+
if (parentPath === '/') {
|
|
22
21
|
return null;
|
|
23
22
|
}
|
|
24
|
-
return findClosestFile(
|
|
23
|
+
return findClosestFile(parentPath, fileName);
|
|
25
24
|
}
|
|
26
25
|
exports.findClosestFile = findClosestFile;
|
|
@@ -16,9 +16,8 @@ const utils_1 = require("../utils");
|
|
|
16
16
|
function build(options) {
|
|
17
17
|
return (host) => {
|
|
18
18
|
const path = (0, path_1.join)(options.path, `/${(0, strings_1.dasherize)(options.title)}`);
|
|
19
|
-
const rootFolder = process.cwd();
|
|
20
19
|
const closestCategoryFile = options.category
|
|
21
|
-
? (0, helpers_1.findClosestFile)(
|
|
20
|
+
? (0, helpers_1.findClosestFile)(options.path, engine_1.CATEGORY_NAME)
|
|
22
21
|
: null;
|
|
23
22
|
const categoryConstantName = options.category && closestCategoryFile ? (0, utils_1.extractDefaultExportName)(closestCategoryFile) : null;
|
|
24
23
|
const categoryImportPath = closestCategoryFile
|
|
@@ -17,9 +17,8 @@ const demoTemplates = ['ng-doc.module.ts.template', 'ng-doc.dependencies.ts.temp
|
|
|
17
17
|
function build(options) {
|
|
18
18
|
return (host) => {
|
|
19
19
|
const path = (0, path_1.join)(options.path, `/${(0, strings_1.dasherize)(options.title)}`);
|
|
20
|
-
const rootFolder = process.cwd();
|
|
21
20
|
const closestCategoryFile = options.category
|
|
22
|
-
? (0, helpers_1.findClosestFile)(
|
|
21
|
+
? (0, helpers_1.findClosestFile)(options.path, engine_1.CATEGORY_NAME)
|
|
23
22
|
: null;
|
|
24
23
|
const pageName = (0, strings_1.classify)(options.title);
|
|
25
24
|
const categoryConstantName = options.category && closestCategoryFile ? (0, utils_1.extractDefaultExportName)(closestCategoryFile) : null;
|
|
@@ -15,7 +15,7 @@ let NgDocUiKitRootModule = NgDocUiKitRootModule_1 = class NgDocUiKitRootModule {
|
|
|
15
15
|
providers: [
|
|
16
16
|
{
|
|
17
17
|
provide: tokens_1.NG_DOC_ASSETS_PATH,
|
|
18
|
-
useValue: (_a = config === null || config === void 0 ? void 0 : config.assetsPath) !== null && _a !== void 0 ? _a : 'assets',
|
|
18
|
+
useValue: (_a = config === null || config === void 0 ? void 0 : config.assetsPath) !== null && _a !== void 0 ? _a : 'assets/ng-doc/ui-kit',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
provide: http_1.HTTP_INTERCEPTORS,
|
|
@@ -21,20 +21,18 @@ class NgDocSkeletonEntity extends entity_1.NgDocEntity {
|
|
|
21
21
|
return (0, rxjs_1.of)(void 0);
|
|
22
22
|
}
|
|
23
23
|
build() {
|
|
24
|
-
return (0, rxjs_1.forkJoin)([
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
]));
|
|
24
|
+
return (0, rxjs_1.forkJoin)([
|
|
25
|
+
this.buildIndexFile(),
|
|
26
|
+
this.buildGeneratedModule(),
|
|
27
|
+
this.buildRoutes(),
|
|
28
|
+
this.buildContext(),
|
|
29
|
+
this.buildIndexes(),
|
|
30
|
+
]).pipe((0, operators_1.map)(([index, generatedModule, routes, context, indexes]) => [index, generatedModule, routes, context, ...indexes]));
|
|
31
31
|
}
|
|
32
32
|
buildRoutes() {
|
|
33
33
|
const entities = this.rootEntitiesForBuild;
|
|
34
34
|
const renderer = new renderer_1.NgDocRenderer(this.builder, { entities });
|
|
35
|
-
return renderer
|
|
36
|
-
.render('./routing.ts.nunj')
|
|
37
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
35
|
+
return renderer.render('./routing.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
38
36
|
content: output,
|
|
39
37
|
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.routing.ts'),
|
|
40
38
|
})));
|
|
@@ -42,27 +40,21 @@ class NgDocSkeletonEntity extends entity_1.NgDocEntity {
|
|
|
42
40
|
buildContext() {
|
|
43
41
|
const entities = this.rootEntitiesForBuild;
|
|
44
42
|
const renderer = new renderer_1.NgDocRenderer(this.builder, { entities });
|
|
45
|
-
return renderer
|
|
46
|
-
.render('./context.ts.nunj')
|
|
47
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
43
|
+
return renderer.render('./context.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
48
44
|
content: output,
|
|
49
45
|
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.context.ts'),
|
|
50
46
|
})));
|
|
51
47
|
}
|
|
52
48
|
buildIndexFile() {
|
|
53
49
|
const renderer = new renderer_1.NgDocRenderer(this.builder);
|
|
54
|
-
return renderer
|
|
55
|
-
.render('./index.ts.nunj')
|
|
56
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
50
|
+
return renderer.render('./index.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
57
51
|
content: output,
|
|
58
52
|
filePath: path_1.default.join(this.context.buildPath, 'index.ts'),
|
|
59
53
|
})));
|
|
60
54
|
}
|
|
61
55
|
buildGeneratedModule() {
|
|
62
56
|
const renderer = new renderer_1.NgDocRenderer(this.builder);
|
|
63
|
-
return renderer
|
|
64
|
-
.render('./ng-doc.generated.module.ts.nunj')
|
|
65
|
-
.pipe((0, operators_1.map)((output) => ({
|
|
57
|
+
return renderer.render('./ng-doc.generated.module.ts.nunj').pipe((0, operators_1.map)((output) => ({
|
|
66
58
|
content: output,
|
|
67
59
|
filePath: path_1.default.join(this.context.buildPath, 'ng-doc.generated.module.ts'),
|
|
68
60
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/skeleton.entity.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+BAA8C;AAC9C,8CAAmC;AAEnC,6EAAsE;AAGtE,0CAA0C;AAC1C,kDAAkD;AAElD,MAAa,mBAAoB,SAAQ,oBAAW;IAApD;;QACU,OAAE,GAAW,qBAAqB,CAAC;QACnC,WAAM,GAAY,IAAI,CAAC;QACvB,cAAS,GAAa,EAAE,CAAC;QACzB,WAAM,GAAc,SAAS,CAAC;QAC9B,oBAAe,GAAkB,EAAE,CAAC;IA8F9C,CAAC;IA5FS,MAAM;QACd,OAAO,IAAA,SAAE,EAAC,KAAK,CAAC,CAAC,CAAC;IACnB,CAAC;IAES,KAAK;QACd,OAAO,IAAA,eAAQ,EAAC,
|
|
1
|
+
{"version":3,"file":"skeleton.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/skeleton.entity.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+BAA8C;AAC9C,8CAAmC;AAEnC,6EAAsE;AAGtE,0CAA0C;AAC1C,kDAAkD;AAElD,MAAa,mBAAoB,SAAQ,oBAAW;IAApD;;QACU,OAAE,GAAW,qBAAqB,CAAC;QACnC,WAAM,GAAY,IAAI,CAAC;QACvB,cAAS,GAAa,EAAE,CAAC;QACzB,WAAM,GAAc,SAAS,CAAC;QAC9B,oBAAe,GAAkB,EAAE,CAAC;IA8F9C,CAAC;IA5FS,MAAM;QACd,OAAO,IAAA,SAAE,EAAC,KAAK,CAAC,CAAC,CAAC;IACnB,CAAC;IAES,KAAK;QACd,OAAO,IAAA,eAAQ,EAAC;YACf,IAAI,CAAC,cAAc,EAAE;YACrB,IAAI,CAAC,oBAAoB,EAAE;YAC3B,IAAI,CAAC,WAAW,EAAE;YAClB,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,YAAY,EAAE;SACnB,CAAC,CAAC,IAAI,CACN,IAAA,eAAG,EACF,CAAC,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAMjD,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAC3D,CACD,CAAC;IACH,CAAC;IAEO,WAAW;QAClB,MAAM,QAAQ,GAAkB,IAAI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export declare const PAGE_DEPENDENCY_PATTERN: string;
|
|
|
10
10
|
export declare const API_PATTERN: string;
|
|
11
11
|
export declare const PLAYGROUND_PATTERN: string;
|
|
12
12
|
export declare const CACHE_PATH: string;
|
|
13
|
-
export declare const GENERATED_PATH: string;
|
|
14
|
-
export declare const GENERATED_ASSETS_PATH: string;
|
|
15
13
|
export declare const TEMPLATES_PATH: string;
|
package/engine/variables.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TEMPLATES_PATH = exports.
|
|
3
|
+
exports.TEMPLATES_PATH = exports.CACHE_PATH = exports.PLAYGROUND_PATTERN = exports.API_PATTERN = exports.PAGE_DEPENDENCY_PATTERN = exports.CATEGORY_PATTERN = exports.PAGE_PATTERN = exports.RENDERED_PAGE_NAME = exports.PLAYGROUND_NAME = exports.API_NAME = exports.PAGE_DEPENDENCIES_NAME = exports.CATEGORY_NAME = exports.PAGE_NAME = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path = tslib_1.__importStar(require("path"));
|
|
6
6
|
exports.PAGE_NAME = 'ng-doc.page.ts';
|
|
@@ -15,7 +15,5 @@ exports.PAGE_DEPENDENCY_PATTERN = `**/${exports.PAGE_DEPENDENCIES_NAME}`;
|
|
|
15
15
|
exports.API_PATTERN = `**/${exports.API_NAME}`;
|
|
16
16
|
exports.PLAYGROUND_PATTERN = `**/${exports.PLAYGROUND_NAME}`;
|
|
17
17
|
exports.CACHE_PATH = path.join(__dirname, '.cache');
|
|
18
|
-
exports.GENERATED_PATH = path.join(__dirname, '../generated');
|
|
19
|
-
exports.GENERATED_ASSETS_PATH = path.join(exports.GENERATED_PATH, 'assets');
|
|
20
18
|
exports.TEMPLATES_PATH = path.join(__dirname, '../templates');
|
|
21
19
|
//# sourceMappingURL=variables.js.map
|
package/engine/variables.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../../libs/builder/engine/variables.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAEhB,QAAA,SAAS,GAAW,gBAAgB,CAAC;AACrC,QAAA,aAAa,GAAW,oBAAoB,CAAC;AAC7C,QAAA,sBAAsB,GAAW,wBAAwB,CAAC;AAC1D,QAAA,QAAQ,GAAW,eAAe,CAAC;AACnC,QAAA,eAAe,GAAW,sBAAsB,CAAC;AACjD,QAAA,kBAAkB,GAAW,YAAY,CAAC;AAE1C,QAAA,YAAY,GAAW,MAAM,iBAAS,EAAE,CAAC;AACzC,QAAA,gBAAgB,GAAW,MAAM,qBAAa,EAAE,CAAC;AACjD,QAAA,uBAAuB,GAAW,MAAM,8BAAsB,EAAE,CAAC;AACjE,QAAA,WAAW,GAAW,MAAM,gBAAQ,EAAE,CAAC;AACvC,QAAA,kBAAkB,GAAW,MAAM,uBAAe,EAAE,CAAC;AACrD,QAAA,UAAU,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACpD,QAAA,cAAc,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../../libs/builder/engine/variables.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAEhB,QAAA,SAAS,GAAW,gBAAgB,CAAC;AACrC,QAAA,aAAa,GAAW,oBAAoB,CAAC;AAC7C,QAAA,sBAAsB,GAAW,wBAAwB,CAAC;AAC1D,QAAA,QAAQ,GAAW,eAAe,CAAC;AACnC,QAAA,eAAe,GAAW,sBAAsB,CAAC;AACjD,QAAA,kBAAkB,GAAW,YAAY,CAAC;AAE1C,QAAA,YAAY,GAAW,MAAM,iBAAS,EAAE,CAAC;AACzC,QAAA,gBAAgB,GAAW,MAAM,qBAAa,EAAE,CAAC;AACjD,QAAA,uBAAuB,GAAW,MAAM,8BAAsB,EAAE,CAAC;AACjE,QAAA,WAAW,GAAW,MAAM,gBAAQ,EAAE,CAAC;AACvC,QAAA,kBAAkB,GAAW,MAAM,uBAAe,EAAE,CAAC;AACrD,QAAA,UAAU,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACpD,QAAA,cAAc,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -4,7 +4,6 @@ exports.createBuilderContext = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@ng-doc/core");
|
|
6
6
|
const path = tslib_1.__importStar(require("path"));
|
|
7
|
-
const engine_1 = require("../engine");
|
|
8
7
|
/**
|
|
9
8
|
*
|
|
10
9
|
* @param targetOptions
|
|
@@ -21,7 +20,7 @@ function createBuilderContext(targetOptions, options, context) {
|
|
|
21
20
|
context,
|
|
22
21
|
inlineStyleLanguage: (_c = targetOptions === null || targetOptions === void 0 ? void 0 : targetOptions['inlineStyleLanguage']) !== null && _c !== void 0 ? _c : 'CSS',
|
|
23
22
|
pagesPaths: ((_e = (_d = options.ngDoc) === null || _d === void 0 ? void 0 : _d.pages) === null || _e === void 0 ? void 0 : _e.length) ? (0, core_1.asArray)((_f = options.ngDoc) === null || _f === void 0 ? void 0 : _f.pages) : [path.dirname(options.main)],
|
|
24
|
-
assetsPath:
|
|
23
|
+
assetsPath: path.join(buildPath, 'assets'),
|
|
25
24
|
buildPath,
|
|
26
25
|
apiPath: path.join(buildPath, 'api'),
|
|
27
26
|
modulesPath: path.join(buildPath, 'modules'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-builder-context.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/create-builder-context.ts"],"names":[],"mappings":";;;;AAEA,uCAAqD;AACrD,mDAA6B;
|
|
1
|
+
{"version":3,"file":"create-builder-context.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/create-builder-context.ts"],"names":[],"mappings":";;;;AAEA,uCAAqD;AACrD,mDAA6B;AAI7B;;;;;;GAMG;AACH,SAAgB,oBAAoB,CACnC,aAA8B,EAC9B,OAAoB,EACpB,OAAuB;;IAEvB,MAAM,SAAS,GAAW,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,SAAS,EAAE,MAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,OAAO,mCAAI,KAAK,CAAC,CAAC;IAExG,OAAO;QACN,QAAQ,EAAE,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO;QACP,OAAO;QACP,mBAAmB,EAAE,MAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,qBAAqB,CAAoB,mCAAI,KAAK;QACxF,UAAU,EAAE,CAAA,MAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,KAAK,0CAAE,MAAM,EAAC,CAAC,CAAC,IAAA,cAAO,EAAC,MAAA,OAAO,CAAC,KAAK,0CAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACvG,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;QAC1C,SAAS;QACT,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;QACpC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC;KAC5C,CAAC;AACH,CAAC;AAlBD,oDAkBC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Finds the closest file in the given path.
|
|
3
3
|
*
|
|
4
|
-
* @param {string} rootFolder The root folder where it needs to stop the search.
|
|
5
4
|
* @param {string} currentFolder The current folder to search in.
|
|
6
5
|
* @param {string} fileName The file name to search for.
|
|
7
6
|
* @returns {string} The path to the closest file.
|
|
8
7
|
*/
|
|
9
|
-
export declare function findClosestFile(
|
|
8
|
+
export declare function findClosestFile(currentFolder: string, fileName: string): string | null;
|
|
@@ -7,22 +7,21 @@ const path = tslib_1.__importStar(require("path"));
|
|
|
7
7
|
/**
|
|
8
8
|
* Finds the closest file in the given path.
|
|
9
9
|
*
|
|
10
|
-
* @param {string} rootFolder The root folder where it needs to stop the search.
|
|
11
10
|
* @param {string} currentFolder The current folder to search in.
|
|
12
11
|
* @param {string} fileName The file name to search for.
|
|
13
12
|
* @returns {string} The path to the closest file.
|
|
14
13
|
*/
|
|
15
|
-
function findClosestFile(
|
|
14
|
+
function findClosestFile(currentFolder, fileName) {
|
|
16
15
|
const currentPath = currentFolder;
|
|
17
16
|
const filePath = path.join(currentPath, fileName);
|
|
18
17
|
if (fs.existsSync(filePath)) {
|
|
19
18
|
return filePath;
|
|
20
19
|
}
|
|
21
20
|
const parentPath = path.dirname(currentPath);
|
|
22
|
-
if (parentPath ===
|
|
21
|
+
if (parentPath === '/') {
|
|
23
22
|
return null;
|
|
24
23
|
}
|
|
25
|
-
return findClosestFile(
|
|
24
|
+
return findClosestFile(parentPath, fileName);
|
|
26
25
|
}
|
|
27
26
|
exports.findClosestFile = findClosestFile;
|
|
28
27
|
//# sourceMappingURL=find-closest-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-closest-file.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/find-closest-file.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAE7B
|
|
1
|
+
{"version":3,"file":"find-closest-file.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/find-closest-file.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAE7B;;;;;;GAMG;AACH,SAAgB,eAAe,CAAC,aAAqB,EAAE,QAAgB;IACtE,MAAM,WAAW,GAAW,aAAa,CAAC;IAC1C,MAAM,QAAQ,GAAW,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAE1D,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,OAAO,QAAQ,CAAC;KAChB;IAED,MAAM,UAAU,GAAW,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAErD,IAAI,UAAU,KAAK,GAAG,EAAE;QACvB,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC9C,CAAC;AAfD,0CAeC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/builder",
|
|
3
|
-
"version": "15.0.0-beta.
|
|
3
|
+
"version": "15.0.0-beta.20",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@ng-doc/core": "15.0.0-beta.
|
|
8
|
+
"@ng-doc/core": "15.0.0-beta.20",
|
|
9
9
|
"@angular-devkit/architect": ">=0.1500.0",
|
|
10
10
|
"chokidar": "^3.5.3",
|
|
11
11
|
"minimatch": "^5.1.0",
|
|
@@ -16,9 +16,8 @@ const utils_1 = require("../utils");
|
|
|
16
16
|
function build(options) {
|
|
17
17
|
return (host) => {
|
|
18
18
|
const path = (0, path_1.join)(options.path, `/${(0, strings_1.dasherize)(options.title)}`);
|
|
19
|
-
const rootFolder = process.cwd();
|
|
20
19
|
const closestCategoryFile = options.category
|
|
21
|
-
? (0, helpers_1.findClosestFile)(
|
|
20
|
+
? (0, helpers_1.findClosestFile)(options.path, engine_1.CATEGORY_NAME)
|
|
22
21
|
: null;
|
|
23
22
|
const categoryConstantName = options.category && closestCategoryFile ? (0, utils_1.extractDefaultExportName)(closestCategoryFile) : null;
|
|
24
23
|
const categoryImportPath = closestCategoryFile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/category/index.ts"],"names":[],"mappings":";;;AAAA,oEAA2E;AAC3E,2DAYoC;AACpC,+BAAoC;AAEpC,yCAA2C;AAC3C,2CAA8C;AAC9C,oCAAkD;AAGlD;;;;;GAKG;AACH,SAAgB,KAAK,CAAC,OAAiC;IACtD,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,MAAM,IAAI,GAAW,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,IAAI,IAAA,mBAAS,EAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/category/index.ts"],"names":[],"mappings":";;;AAAA,oEAA2E;AAC3E,2DAYoC;AACpC,+BAAoC;AAEpC,yCAA2C;AAC3C,2CAA8C;AAC9C,oCAAkD;AAGlD;;;;;GAKG;AACH,SAAgB,KAAK,CAAC,OAAiC;IACtD,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,MAAM,IAAI,GAAW,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,IAAI,IAAA,mBAAS,EAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxE,MAAM,mBAAmB,GAAkB,OAAO,CAAC,QAAQ;YAC1D,CAAC,CAAC,IAAA,yBAAe,EAAC,OAAO,CAAC,IAAI,EAAE,sBAAa,CAAC;YAC9C,CAAC,CAAC,IAAI,CAAC;QACR,MAAM,oBAAoB,GACzB,OAAO,CAAC,QAAQ,IAAI,mBAAmB,CAAC,CAAC,CAAC,IAAA,gCAAwB,EAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAChG,MAAM,kBAAkB,GAAkB,mBAAmB;YAC5D,CAAC,CAAC,IAAA,eAAQ,EAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;YACzD,CAAC,CAAC,IAAI,CAAC;QAER,OAAO,CAAC,YAAY,GAAG,GAAG,IAAA,kBAAQ,EAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC;QAE5D,OAAO,IAAA,kBAAK,EAAC;YACZ,IAAA,sBAAS,EACR,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;gBACrB,IAAA,2BAAc,EAAC,EAAC,GAAG,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,UAAU,EAAE,kBAAkB,EAAC,CAAC;gBAChG,IAAA,iBAAI,EAAC,IAAI,CAAC;gBACV,IAAA,oBAAO,EAAC,CAAC,SAAoB,EAAE,EAAE;oBAChC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;wBAChC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;qBAClD;oBACD,OAAO,SAAS,CAAC;gBAClB,CAAC,CAAC;aACF,CAAC,EACF,0BAAa,CAAC,SAAS,CACvB;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AA9BD,sBA8BC"}
|
package/schematics/page/index.js
CHANGED
|
@@ -17,9 +17,8 @@ const demoTemplates = ['ng-doc.module.ts.template', 'ng-doc.dependencies.ts.temp
|
|
|
17
17
|
function build(options) {
|
|
18
18
|
return (host) => {
|
|
19
19
|
const path = (0, path_1.join)(options.path, `/${(0, strings_1.dasherize)(options.title)}`);
|
|
20
|
-
const rootFolder = process.cwd();
|
|
21
20
|
const closestCategoryFile = options.category
|
|
22
|
-
? (0, helpers_1.findClosestFile)(
|
|
21
|
+
? (0, helpers_1.findClosestFile)(options.path, engine_1.CATEGORY_NAME)
|
|
23
22
|
: null;
|
|
24
23
|
const pageName = (0, strings_1.classify)(options.title);
|
|
25
24
|
const categoryConstantName = options.category && closestCategoryFile ? (0, utils_1.extractDefaultExportName)(closestCategoryFile) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/page/index.ts"],"names":[],"mappings":";;;AAAA,oEAA2E;AAC3E,2DAaoC;AACpC,+BAA8C;AAE9C,yCAA2C;AAC3C,2CAA8C;AAC9C,oCAAkD;AAGlD,MAAM,aAAa,GAAa,CAAC,2BAA2B,EAAE,iCAAiC,CAAC,CAAC;AAEjG;;;;;GAKG;AACH,SAAgB,KAAK,CAAC,OAA6B;IAClD,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,MAAM,IAAI,GAAW,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,IAAI,IAAA,mBAAS,EAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/page/index.ts"],"names":[],"mappings":";;;AAAA,oEAA2E;AAC3E,2DAaoC;AACpC,+BAA8C;AAE9C,yCAA2C;AAC3C,2CAA8C;AAC9C,oCAAkD;AAGlD,MAAM,aAAa,GAAa,CAAC,2BAA2B,EAAE,iCAAiC,CAAC,CAAC;AAEjG;;;;;GAKG;AACH,SAAgB,KAAK,CAAC,OAA6B;IAClD,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,MAAM,IAAI,GAAW,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,IAAI,IAAA,mBAAS,EAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxE,MAAM,mBAAmB,GAAkB,OAAO,CAAC,QAAQ;YAC1D,CAAC,CAAC,IAAA,yBAAe,EAAC,OAAO,CAAC,IAAI,EAAE,sBAAa,CAAC;YAC9C,CAAC,CAAC,IAAI,CAAC;QACR,MAAM,QAAQ,GAAW,IAAA,kBAAQ,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjD,MAAM,oBAAoB,GACzB,OAAO,CAAC,QAAQ,IAAI,mBAAmB,CAAC,CAAC,CAAC,IAAA,gCAAwB,EA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 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./ng-doc.context"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ng-doc.generated.module"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ng-doc.routing"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var NgDocGeneratedModule_1;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.NgDocGeneratedModule = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const core_1 = require("@angular/core");
|
|
7
|
-
const ng_doc_context_1 = require("./ng-doc.context");
|
|
8
|
-
let NgDocGeneratedModule = NgDocGeneratedModule_1 = class NgDocGeneratedModule {
|
|
9
|
-
static forRoot() {
|
|
10
|
-
return {
|
|
11
|
-
ngModule: NgDocGeneratedModule_1,
|
|
12
|
-
providers: [ng_doc_context_1.ngDocContextProvider],
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
NgDocGeneratedModule = NgDocGeneratedModule_1 = tslib_1.__decorate([
|
|
17
|
-
(0, core_1.NgModule)()
|
|
18
|
-
], NgDocGeneratedModule);
|
|
19
|
-
exports.NgDocGeneratedModule = NgDocGeneratedModule;
|