@ng-doc/builder 16.1.1 → 16.2.1
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/classes/observable-set.d.ts +1 -0
- package/classes/observable-set.js +3 -0
- package/classes/observable-set.js.map +1 -1
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/develop/ng-doc.page.js +2 -1
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/features/cache/ng-doc.page.js +41 -0
- package/engine/builder.d.ts +4 -0
- package/engine/builder.js +21 -4
- package/engine/builder.js.map +1 -1
- package/engine/entities/abstractions/entity.d.ts +11 -6
- package/engine/entities/abstractions/entity.js +162 -125
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/api-page.entity.js +107 -94
- package/engine/entities/api-page.entity.js.map +1 -1
- package/engine/entities/api-scope.entity.d.ts +1 -0
- package/engine/entities/api-scope.entity.js +93 -76
- package/engine/entities/api-scope.entity.js.map +1 -1
- package/engine/entities/api.entity.js +103 -90
- package/engine/entities/api.entity.js.map +1 -1
- package/engine/entities/cache/cache.d.ts +19 -0
- package/engine/entities/cache/cache.js +47 -0
- package/engine/entities/cache/cache.js.map +1 -0
- package/engine/entities/cache/cached-files-initializer.d.ts +7 -0
- package/engine/entities/cache/cached-files-initializer.js +20 -0
- package/engine/entities/cache/cached-files-initializer.js.map +1 -0
- package/engine/entities/cache/cached-props-initializer.d.ts +8 -0
- package/engine/entities/cache/cached-props-initializer.js +24 -0
- package/engine/entities/cache/cached-props-initializer.js.map +1 -0
- package/engine/entities/cache/decorators/cached-entity.d.ts +12 -0
- package/engine/entities/cache/decorators/cached-entity.js +34 -0
- package/engine/entities/cache/decorators/cached-entity.js.map +1 -0
- package/engine/entities/cache/decorators/cached-files-getter.d.ts +5 -0
- package/engine/entities/cache/decorators/cached-files-getter.js +20 -0
- package/engine/entities/cache/decorators/cached-files-getter.js.map +1 -0
- package/engine/entities/cache/decorators/cached-property.d.ts +7 -0
- package/engine/entities/cache/decorators/cached-property.js +21 -0
- package/engine/entities/cache/decorators/cached-property.js.map +1 -0
- package/engine/entities/cache/decorators/index.d.ts +3 -0
- package/engine/entities/cache/decorators/index.js +7 -0
- package/engine/entities/cache/decorators/index.js.map +1 -0
- package/engine/entities/cache/helpers/create-cache-for-file.d.ts +6 -0
- package/engine/entities/cache/helpers/create-cache-for-file.js +21 -0
- package/engine/entities/cache/helpers/create-cache-for-file.js.map +1 -0
- package/engine/entities/cache/helpers/create-cache.d.ts +9 -0
- package/engine/entities/cache/helpers/create-cache.js +23 -0
- package/engine/entities/cache/helpers/create-cache.js.map +1 -0
- package/engine/entities/cache/helpers/get-cache-dir-path.d.ts +4 -0
- package/engine/entities/cache/helpers/get-cache-dir-path.js +18 -0
- package/engine/entities/cache/helpers/get-cache-dir-path.js.map +1 -0
- package/engine/entities/cache/helpers/get-cache-file-path.d.ts +6 -0
- package/engine/entities/cache/helpers/get-cache-file-path.js +17 -0
- package/engine/entities/cache/helpers/get-cache-file-path.js.map +1 -0
- package/engine/entities/cache/helpers/index.d.ts +8 -0
- package/engine/entities/cache/helpers/index.js +12 -0
- package/engine/entities/cache/helpers/index.js.map +1 -0
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.d.ts +6 -0
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js +29 -0
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js.map +1 -0
- package/engine/entities/cache/helpers/is-cache-valid.d.ts +8 -0
- package/engine/entities/cache/helpers/is-cache-valid.js +21 -0
- package/engine/entities/cache/helpers/is-cache-valid.js.map +1 -0
- package/engine/entities/cache/helpers/load-cache.d.ts +7 -0
- package/engine/entities/cache/helpers/load-cache.js +23 -0
- package/engine/entities/cache/helpers/load-cache.js.map +1 -0
- package/engine/entities/cache/helpers/update-cache.d.ts +9 -0
- package/engine/entities/cache/helpers/update-cache.js +24 -0
- package/engine/entities/cache/helpers/update-cache.js.map +1 -0
- package/engine/entities/cache/index.d.ts +4 -0
- package/engine/entities/cache/index.js +8 -0
- package/engine/entities/cache/index.js.map +1 -0
- package/engine/entities/cache/interfaces/cache-accessor.d.ts +5 -0
- package/engine/entities/cache/interfaces/cache-accessor.js +3 -0
- package/engine/entities/cache/interfaces/cache-accessor.js.map +1 -0
- package/engine/entities/cache/interfaces/cached-data.d.ts +5 -0
- package/engine/entities/cache/interfaces/cached-data.js +3 -0
- package/engine/entities/cache/interfaces/cached-data.js.map +1 -0
- package/engine/entities/cache/interfaces/index.d.ts +2 -0
- package/engine/entities/cache/interfaces/index.js +6 -0
- package/engine/entities/cache/interfaces/index.js.map +1 -0
- package/engine/entities/category.entity.js +97 -84
- package/engine/entities/category.entity.js.map +1 -1
- package/engine/entities/dependencies.entity.js +137 -125
- package/engine/entities/dependencies.entity.js.map +1 -1
- package/engine/entities/index.d.ts +1 -0
- package/engine/entities/index.js +1 -0
- package/engine/entities/index.js.map +1 -1
- package/engine/entities/indexes.entity.d.ts +13 -0
- package/engine/entities/indexes.entity.js +38 -0
- package/engine/entities/indexes.entity.js.map +1 -0
- package/engine/entities/page.entity.js +131 -115
- package/engine/entities/page.entity.js.map +1 -1
- package/engine/entities/skeleton.entity.d.ts +0 -1
- package/engine/entities/skeleton.entity.js +1 -19
- package/engine/entities/skeleton.entity.js.map +1 -1
- package/engine/entity-life-cycle.js +2 -4
- package/engine/entity-life-cycle.js.map +1 -1
- package/engine/functions/build-candidates.d.ts +3 -1
- package/engine/functions/build-candidates.js +8 -4
- package/engine/functions/build-candidates.js.map +1 -1
- package/helpers/create-builder-context.js +2 -1
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/get-component-asset.js +3 -5
- package/helpers/get-component-asset.js.map +1 -1
- package/helpers/load-config.d.ts +1 -1
- package/helpers/load-config.js +2 -1
- package/helpers/load-config.js.map +1 -1
- package/helpers/process-html.js +1 -0
- package/helpers/process-html.js.map +1 -1
- package/helpers/to-template-string.js +1 -1
- package/helpers/to-template-string.js.map +1 -1
- package/helpers/typescript/create-project.js +1 -1
- package/helpers/typescript/create-project.js.map +1 -1
- package/interfaces/builder-context.d.ts +1 -0
- package/interfaces/configuration.d.ts +4 -0
- package/package.json +6 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCache = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
6
|
+
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const get_cache_file_path_1 = require("./get-cache-file-path");
|
|
8
|
+
/**
|
|
9
|
+
* Updates cache for given files
|
|
10
|
+
* This function creates object and writes it to cache file
|
|
11
|
+
*
|
|
12
|
+
* @param id - unique id for cache
|
|
13
|
+
* @param cache - cache object
|
|
14
|
+
*/
|
|
15
|
+
function updateCache(id, cache) {
|
|
16
|
+
const cacheFilePath = (0, get_cache_file_path_1.getCacheFilePath)(id);
|
|
17
|
+
const cacheDirPath = path.dirname(cacheFilePath);
|
|
18
|
+
if (!fs.existsSync(cacheDirPath)) {
|
|
19
|
+
fs.mkdirSync(cacheDirPath, { recursive: true });
|
|
20
|
+
}
|
|
21
|
+
fs.writeFileSync(cacheFilePath, JSON.stringify(cache, null, 2));
|
|
22
|
+
}
|
|
23
|
+
exports.updateCache = updateCache;
|
|
24
|
+
//# sourceMappingURL=update-cache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-cache.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/cache/helpers/update-cache.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAG7B,+DAAuD;AAEvD;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,EAAU,EAAE,KAAsB;IAC7D,MAAM,aAAa,GAAW,IAAA,sCAAgB,EAAC,EAAE,CAAC,CAAC;IACnD,MAAM,YAAY,GAAW,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAEzD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;QACjC,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;KAC9C;IAED,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC;AATD,kCASC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./cache"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./decorators"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./helpers"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./interfaces"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/cache/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,uDAA6B;AAC7B,oDAA0B;AAC1B,uDAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-accessor.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/cache/interfaces/cache-accessor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cached-data.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/cache/interfaces/cached-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./cache-accessor"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./cached-data"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/cache/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,wDAA8B"}
|
|
@@ -8,89 +8,102 @@ const rxjs_1 = require("rxjs");
|
|
|
8
8
|
const operators_1 = require("rxjs/operators");
|
|
9
9
|
const helpers_1 = require("../../helpers");
|
|
10
10
|
const navigation_entity_1 = require("./abstractions/navigation.entity");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
11
|
+
const decorators_1 = require("./cache/decorators");
|
|
12
|
+
exports.NgDocCategoryEntity = (() => {
|
|
13
|
+
let _classDecorators = [(0, decorators_1.CachedEntity)()];
|
|
14
|
+
let _classDescriptor;
|
|
15
|
+
let _classExtraInitializers = [];
|
|
16
|
+
let _classThis;
|
|
17
|
+
var NgDocCategoryEntity = _classThis = class extends navigation_entity_1.NgDocNavigationEntity {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.compilable = true;
|
|
21
|
+
}
|
|
22
|
+
get route() {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const folderName = path.basename(path.dirname(this.sourceFile.getFilePath()));
|
|
25
|
+
return (_b = (_a = this.target) === null || _a === void 0 ? void 0 : _a.route) !== null && _b !== void 0 ? _b : folderName;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns full url from the root
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
*/
|
|
32
|
+
get url() {
|
|
33
|
+
return `${this.parent ? this.parent.url + '/' : ''}${this.route}`;
|
|
34
|
+
}
|
|
35
|
+
get canBeBuilt() {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
return (!!this.target &&
|
|
38
|
+
(!this.target.onlyForTags ||
|
|
39
|
+
(0, core_1.asArray)(this.target.onlyForTags).includes((_b = (_a = this.context.context.target) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : '')));
|
|
40
|
+
}
|
|
41
|
+
get isRoot() {
|
|
42
|
+
var _a;
|
|
43
|
+
return !((_a = this.target) === null || _a === void 0 ? void 0 : _a.category);
|
|
44
|
+
}
|
|
45
|
+
get order() {
|
|
46
|
+
var _a;
|
|
47
|
+
return (_a = this.target) === null || _a === void 0 ? void 0 : _a.order;
|
|
48
|
+
}
|
|
49
|
+
get pages() {
|
|
50
|
+
return (0, core_1.asArray)(this.children.values()).filter(helpers_1.isPageEntity);
|
|
51
|
+
}
|
|
52
|
+
get categories() {
|
|
53
|
+
return (0, core_1.asArray)(this.children.values()).filter(helpers_1.isCategoryEntity);
|
|
54
|
+
}
|
|
55
|
+
get keywords() {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
get title() {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return (_b = (_a = this.target) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : '';
|
|
61
|
+
}
|
|
62
|
+
get buildCandidates() {
|
|
63
|
+
return this.childEntities;
|
|
64
|
+
}
|
|
65
|
+
get expandable() {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
return (_b = (_a = this.target) === null || _a === void 0 ? void 0 : _a.expandable) !== null && _b !== void 0 ? _b : true;
|
|
68
|
+
}
|
|
69
|
+
get expanded() {
|
|
70
|
+
var _a, _b;
|
|
71
|
+
return (_b = (_a = this.target) === null || _a === void 0 ? void 0 : _a.expanded) !== null && _b !== void 0 ? _b : false;
|
|
72
|
+
}
|
|
73
|
+
update() {
|
|
74
|
+
return super.update().pipe((0, operators_1.tap)(() => {
|
|
75
|
+
if (!this.title) {
|
|
76
|
+
throw new Error(`Failed to load ${this.sourceFile.getFilePath()}. Make sure that you have a title property.`);
|
|
77
|
+
}
|
|
78
|
+
this.parent = this.getParentFromCategory();
|
|
79
|
+
}), (0, operators_1.catchError)((error) => {
|
|
80
|
+
this.readyToBuild = false;
|
|
81
|
+
this.context.context.logger.error(`\n${String(error)}`);
|
|
82
|
+
return (0, rxjs_1.of)(void 0);
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
build() {
|
|
86
|
+
return this.isReadyForBuild ? (0, rxjs_1.forkJoin)([this.buildModule()]) : (0, rxjs_1.of)([]);
|
|
87
|
+
}
|
|
88
|
+
buildModule() {
|
|
89
|
+
if (this.target) {
|
|
90
|
+
return this.builder.renderer
|
|
91
|
+
.render('./category.module.ts.nunj', {
|
|
92
|
+
context: {
|
|
93
|
+
category: this,
|
|
94
|
+
},
|
|
95
|
+
})
|
|
96
|
+
.pipe((0, operators_1.map)((output) => ({ content: output, filePath: this.modulePath })));
|
|
71
97
|
}
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (this.target) {
|
|
84
|
-
return this.builder.renderer
|
|
85
|
-
.render('./category.module.ts.nunj', {
|
|
86
|
-
context: {
|
|
87
|
-
category: this,
|
|
88
|
-
},
|
|
89
|
-
})
|
|
90
|
-
.pipe((0, operators_1.map)((output) => ({ content: output, filePath: this.modulePath })));
|
|
91
|
-
}
|
|
92
|
-
return (0, rxjs_1.of)();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
exports.NgDocCategoryEntity = NgDocCategoryEntity;
|
|
98
|
+
return (0, rxjs_1.of)();
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
tslib_1.__setFunctionName(_classThis, "NgDocCategoryEntity");
|
|
102
|
+
(() => {
|
|
103
|
+
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
|
104
|
+
NgDocCategoryEntity = _classThis = _classDescriptor.value;
|
|
105
|
+
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
106
|
+
})();
|
|
107
|
+
return NgDocCategoryEntity = _classThis;
|
|
108
|
+
})();
|
|
96
109
|
//# sourceMappingURL=category.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/category.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAAoD;AACpD,mDAA6B;AAC7B,+BAA8C;AAC9C,8CAAoD;AAEpD,2CAA6D;AAG7D,wEAAuE;
|
|
1
|
+
{"version":3,"file":"category.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/category.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAAoD;AACpD,mDAA6B;AAC7B,+BAA8C;AAC9C,8CAAoD;AAEpD,2CAA6D;AAG7D,wEAAuE;AACvE,mDAAgD;AAInC,QAAA,mBAA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A,eAAQ,EAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,EAAE,CAAC,CAAC;QACvE,CAAC;QAEO,WAAW;YAClB,IAAI,IAAI,CAAC,MAAM,EAAE;gBAChB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ;qBAC1B,MAAM,CAAC,2BAA2B,EAAE;oBACpC,OAAO,EAAE;wBACR,QAAQ,EAAE,IAAI;qBACd;iBACD,CAAC;qBACD,IAAI,CAAC,IAAA,eAAG,EAAC,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAC,CAAC,CAAC,CAAC,CAAC;aAChF;YACD,OAAO,IAAA,SAAE,GAAE,CAAC;QACb,CAAC;;;;QAhGF,gKAiGC;QAjGY,mBAAmB;QAAnB,+DAAmB;;WAAnB,mBAAmB"}
|
|
@@ -11,133 +11,145 @@ const helpers_1 = require("../../helpers");
|
|
|
11
11
|
const fork_join_or_empty_1 = require("../../operators/fork-join-or-empty");
|
|
12
12
|
const variables_1 = require("../variables");
|
|
13
13
|
const source_file_entity_1 = require("./abstractions/source-file.entity");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
14
|
+
const decorators_1 = require("./cache/decorators");
|
|
15
|
+
exports.NgDocDependenciesEntity = (() => {
|
|
16
|
+
let _classDecorators = [(0, decorators_1.CachedEntity)()];
|
|
17
|
+
let _classDescriptor;
|
|
18
|
+
let _classExtraInitializers = [];
|
|
19
|
+
let _classThis;
|
|
20
|
+
var NgDocDependenciesEntity = _classThis = class extends source_file_entity_1.NgDocSourceFileEntity {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.componentsAssets = {};
|
|
24
|
+
}
|
|
25
|
+
get isRoot() {
|
|
26
|
+
// always false, page dependencies are not rooted
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
get folderPath() {
|
|
30
|
+
var _a;
|
|
31
|
+
return ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.folderPath) || '';
|
|
32
|
+
}
|
|
33
|
+
get buildCandidates() {
|
|
34
|
+
return (0, core_1.asArray)(this.parent);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The parent of the current entity is always the page entity
|
|
38
|
+
* that located in the same folder
|
|
39
|
+
*/
|
|
40
|
+
get parent() {
|
|
41
|
+
const expectedPath = path.join(this.sourceFileFolder, variables_1.PAGE_NAME);
|
|
42
|
+
const entity = this.builder.get(expectedPath);
|
|
43
|
+
return entity && (0, helpers_1.isPageEntity)(entity) ? entity : undefined;
|
|
44
|
+
}
|
|
45
|
+
get assets() {
|
|
46
|
+
return Object.keys(this.componentsAssets)
|
|
47
|
+
.map((key) => this.componentsAssets[key])
|
|
48
|
+
.flat();
|
|
49
|
+
}
|
|
50
|
+
get componentAssetsPath() {
|
|
51
|
+
return path.join(this.folderPath, 'component-assets.ts');
|
|
52
|
+
}
|
|
53
|
+
get componentAssetsImport() {
|
|
54
|
+
return (0, helpers_1.slash)(path.relative(this.context.context.workspaceRoot, path.join(this.folderPath, 'component-assets')));
|
|
55
|
+
}
|
|
56
|
+
get playgroundsPath() {
|
|
57
|
+
return path.join(this.folderPath, 'playgrounds.ts');
|
|
58
|
+
}
|
|
59
|
+
get playgroundIds() {
|
|
60
|
+
var _a;
|
|
61
|
+
const playgrounds = this.getPlaygroundsExpression();
|
|
62
|
+
return ((_a = playgrounds === null || playgrounds === void 0 ? void 0 : playgrounds.getProperties().filter(ts_morph_1.Node.isPropertyAssignment).map((p) => p.getName())) !== null && _a !== void 0 ? _a : []);
|
|
63
|
+
}
|
|
64
|
+
dependenciesChanged() {
|
|
65
|
+
super.dependenciesChanged();
|
|
66
|
+
this.getTargets().forEach((target) => target.getSourceFile().refreshFromFileSystem());
|
|
67
|
+
}
|
|
68
|
+
update() {
|
|
69
|
+
return this.fillAssets();
|
|
70
|
+
}
|
|
71
|
+
build() {
|
|
72
|
+
if (!this.parent) {
|
|
73
|
+
return (0, rxjs_1.of)([]);
|
|
74
|
+
}
|
|
75
|
+
this.dependencies.clear();
|
|
76
|
+
this.getTargets().forEach((target) => this.dependencies.add(target.getSourceFile().getFilePath()));
|
|
77
|
+
return this.fillAssets().pipe((0, operators_1.switchMap)(() => (0, rxjs_1.forkJoin)([this.buildAssets(), this.buildPlaygrounds()]).pipe((0, operators_1.map)(([assets, playgrounds]) => [...assets, playgrounds]))));
|
|
78
|
+
}
|
|
79
|
+
getPlaygroundsExpression() {
|
|
80
|
+
const objectExpression = this.getObjectExpressionFromDefault();
|
|
81
|
+
if (objectExpression) {
|
|
82
|
+
const property = objectExpression.getProperty('playgrounds');
|
|
83
|
+
if (ts_morph_1.Node.isPropertyAssignment(property)) {
|
|
84
|
+
const value = property.getInitializer();
|
|
85
|
+
if (ts_morph_1.Node.isObjectLiteralExpression(value)) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
82
88
|
}
|
|
83
89
|
}
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
buildAssets() {
|
|
93
|
+
return this.buildComponentAssets().pipe((0, operators_1.map)((output) => [
|
|
94
|
+
output,
|
|
95
|
+
...this.assets.map((asset) => ({
|
|
96
|
+
content: asset.output,
|
|
97
|
+
filePath: asset.outputPath,
|
|
98
|
+
})),
|
|
99
|
+
]));
|
|
100
|
+
}
|
|
101
|
+
fillAssets() {
|
|
102
|
+
const objectExpression = this.getObjectExpressionFromDefault();
|
|
103
|
+
if (objectExpression) {
|
|
104
|
+
const classDeclarations = (0, helpers_1.getDemoClassDeclarations)(objectExpression);
|
|
105
|
+
this.componentsAssets = classDeclarations
|
|
106
|
+
.map((classDeclarations) => {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
return (0, helpers_1.getComponentAsset)(classDeclarations, this.context.inlineStyleLanguage, (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.assetsFolder) !== null && _b !== void 0 ? _b : this.folderPath);
|
|
109
|
+
})
|
|
110
|
+
.reduce((acc, curr) => ({ ...acc, ...curr }), {});
|
|
111
|
+
this.dependencies.add(...this.assets.map((asset) => asset.originalPath));
|
|
112
|
+
return (0, fork_join_or_empty_1.forkJoinOrEmpty)(Object.keys(this.componentsAssets).map((key) => (0, fork_join_or_empty_1.forkJoinOrEmpty)(this.componentsAssets[key].map((asset) => (0, rxjs_1.from)((0, helpers_1.processHtml)(this, asset.output)).pipe((0, operators_1.tap)((output) => (asset.output = output))))))).pipe((0, operators_1.mapTo)(void 0));
|
|
113
|
+
}
|
|
114
|
+
return (0, rxjs_1.of)(void 0);
|
|
84
115
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
...this.assets.map((asset) => ({
|
|
91
|
-
content: asset.output,
|
|
92
|
-
filePath: asset.outputPath,
|
|
93
|
-
})),
|
|
94
|
-
]));
|
|
95
|
-
}
|
|
96
|
-
fillAssets() {
|
|
97
|
-
const objectExpression = this.getObjectExpressionFromDefault();
|
|
98
|
-
if (objectExpression) {
|
|
99
|
-
const classDeclarations = (0, helpers_1.getDemoClassDeclarations)(objectExpression);
|
|
100
|
-
this.componentsAssets = classDeclarations
|
|
101
|
-
.map((classDeclarations) => {
|
|
102
|
-
var _a, _b;
|
|
103
|
-
return (0, helpers_1.getComponentAsset)(classDeclarations, this.context.inlineStyleLanguage, (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.assetsFolder) !== null && _b !== void 0 ? _b : this.folderPath);
|
|
116
|
+
getTargets() {
|
|
117
|
+
return this.playgroundIds
|
|
118
|
+
.map((pId) => {
|
|
119
|
+
const expression = this.getPlaygroundsExpression();
|
|
120
|
+
return expression && (0, helpers_1.getTargetForPlayground)(expression, pId);
|
|
104
121
|
})
|
|
105
|
-
.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
filePath: this.playgroundsPath,
|
|
139
|
-
}))));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
exports.NgDocDependenciesEntity = NgDocDependenciesEntity;
|
|
122
|
+
.filter(core_1.isPresent);
|
|
123
|
+
}
|
|
124
|
+
buildComponentAssets() {
|
|
125
|
+
return this.builder.renderer
|
|
126
|
+
.render('./component-assets.ts.nunj', {
|
|
127
|
+
context: {
|
|
128
|
+
componentsAssets: this.componentsAssets,
|
|
129
|
+
},
|
|
130
|
+
})
|
|
131
|
+
.pipe((0, operators_1.map)((output) => ({ content: output, filePath: this.componentAssetsPath })));
|
|
132
|
+
}
|
|
133
|
+
buildPlaygrounds() {
|
|
134
|
+
return (this.builder.renderer
|
|
135
|
+
.render('./playgrounds.ts.nunj', {
|
|
136
|
+
context: {
|
|
137
|
+
dependencies: this,
|
|
138
|
+
},
|
|
139
|
+
})
|
|
140
|
+
// TODO: move format code to the post processor?
|
|
141
|
+
.pipe((0, operators_1.map)((output) => ({
|
|
142
|
+
content: (0, helpers_1.formatCode)(output, 'TypeScript'),
|
|
143
|
+
filePath: this.playgroundsPath,
|
|
144
|
+
}))));
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
tslib_1.__setFunctionName(_classThis, "NgDocDependenciesEntity");
|
|
148
|
+
(() => {
|
|
149
|
+
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
|
150
|
+
NgDocDependenciesEntity = _classThis = _classDescriptor.value;
|
|
151
|
+
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
152
|
+
})();
|
|
153
|
+
return NgDocDependenciesEntity = _classThis;
|
|
154
|
+
})();
|
|
143
155
|
//# sourceMappingURL=dependencies.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencies.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/dependencies.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAAgD;AAChD,mDAA6B;AAC7B,+BAAoD;AACpD,8CAA0D;AAC1D,uCAOkB;AAElB,2CAQuB;AAEvB,2EAAmE;AAEnE,4CAAuC;AAEvC,0EAAwE;
|
|
1
|
+
{"version":3,"file":"dependencies.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/dependencies.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAAgD;AAChD,mDAA6B;AAC7B,+BAAoD;AACpD,8CAA0D;AAC1D,uCAOkB;AAElB,2CAQuB;AAEvB,2EAAmE;AAEnE,4CAAuC;AAEvC,0EAAwE;AACxE,mDAAgD;AAInC,QAAA,uBAAuB;4BADnC,IAAA,yBAAY,GAAE;;;;QACF,uBAAuB,qBAAC,SAAQ,0CAAqB;;;YACzD,qBAAgB,GAAwB,EAAE,CAAC;QAuLpD,CAAC;QArLA,IAAa,MAAM;YAClB,iDAAiD;YACjD,OAAO,KAAK,CAAC;QACd,CAAC;QAED,IAAI,UAAU;;YACb,OAAO,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,UAAU,KAAI,EAAE,CAAC;QACtC,CAAC;QAED,IAAa,eAAe;YAC3B,OAAO,IAAA,cAAO,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC;QAED;;;WAGG;QACH,IAAa,MAAM;YAClB,MAAM,YAAY,GAAW,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,qBAAS,CAAC,CAAC;YACzE,MAAM,MAAM,GAA4B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;YAEvE,OAAO,MAAM,IAAI,IAAA,sBAAY,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5D,CAAC;QAED,IAAI,MAAM;YACT,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;iBACvC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;iBAChD,IAAI,EAAE,CAAC;QACV,CAAC;QAED,IAAI,mBAAmB;YACtB,OAAO,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