@ng-doc/builder 15.0.0-beta.16 → 15.0.0-beta.18
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/browser/index.js +3 -0
- package/browser/index.js.map +1 -1
- package/browser/schema.json +1 -1
- package/dev-server/index.js.map +1 -1
- package/dev-server/schema.json +1 -1
- package/engine/.cache/libs/app/components/demo/demo.component.js +6 -0
- package/engine/.cache/libs/builder/browser/index.js +3 -0
- package/engine/.cache/libs/builder/engine/builder.js +6 -3
- package/engine/.cache/libs/builder/engine/entities/abstractions/entity.js +6 -0
- package/engine/.cache/libs/builder/engine/entities/abstractions/route.entity.js +4 -2
- package/engine/.cache/libs/builder/engine/entities/page.entity.js +3 -2
- package/engine/.cache/libs/builder/helpers/create-builder-context.js +4 -1
- package/engine/builder.js +6 -3
- package/engine/builder.js.map +1 -1
- package/engine/entities/abstractions/entity.d.ts +4 -0
- package/engine/entities/abstractions/entity.js +6 -0
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/abstractions/route.entity.js +4 -2
- package/engine/entities/abstractions/route.entity.js.map +1 -1
- package/engine/entities/page.entity.js +3 -2
- package/engine/entities/page.entity.js.map +1 -1
- package/generated/assets/indexes.json +1079 -1021
- package/helpers/create-builder-context.d.ts +1 -0
- package/helpers/create-builder-context.js +4 -1
- package/helpers/create-builder-context.js.map +1 -1
- package/interfaces/builder-context.d.ts +1 -0
- package/interfaces/schema.d.ts +4 -3
- package/package.json +23 -3
- package/schematics/dependencies/files/ng-doc.dependencies.ts.template +2 -2
|
@@ -6,5 +6,6 @@ import { NgDocBuilderContext, NgDocSchema } from '../interfaces';
|
|
|
6
6
|
* @param targetOptions
|
|
7
7
|
* @param options
|
|
8
8
|
* @param context
|
|
9
|
+
* @param project
|
|
9
10
|
*/
|
|
10
11
|
export declare function createBuilderContext(targetOptions: json.JsonObject, options: NgDocSchema, context: BuilderContext): NgDocBuilderContext;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createBuilderContext = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@ng-doc/core");
|
|
5
6
|
const path = tslib_1.__importStar(require("path"));
|
|
6
7
|
const engine_1 = require("../engine");
|
|
7
8
|
/**
|
|
@@ -9,15 +10,17 @@ const engine_1 = require("../engine");
|
|
|
9
10
|
* @param targetOptions
|
|
10
11
|
* @param options
|
|
11
12
|
* @param context
|
|
13
|
+
* @param project
|
|
12
14
|
*/
|
|
13
15
|
function createBuilderContext(targetOptions, options, context) {
|
|
14
|
-
var _a, _b, _c;
|
|
16
|
+
var _a, _b, _c, _d, _e, _f;
|
|
15
17
|
const buildPath = path.join(context.workspaceRoot, '.ng-doc', (_b = (_a = context.target) === null || _a === void 0 ? void 0 : _a.project) !== null && _b !== void 0 ? _b : 'app');
|
|
16
18
|
return {
|
|
17
19
|
tsConfig: String(targetOptions['tsConfig']),
|
|
18
20
|
options,
|
|
19
21
|
context,
|
|
20
22
|
inlineStyleLanguage: (_c = targetOptions === null || targetOptions === void 0 ? void 0 : targetOptions['inlineStyleLanguage']) !== null && _c !== void 0 ? _c : 'CSS',
|
|
23
|
+
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)],
|
|
21
24
|
assetsPath: engine_1.GENERATED_ASSETS_PATH,
|
|
22
25
|
buildPath,
|
|
23
26
|
apiPath: path.join(buildPath, 'api'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-builder-context.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/create-builder-context.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"create-builder-context.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/create-builder-context.ts"],"names":[],"mappings":";;;;AAEA,uCAAqD;AACrD,mDAA6B;AAE7B,sCAAgD;AAGhD;;;;;;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,8BAAqB;QACjC,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"}
|
package/interfaces/schema.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { NgDocGlobalKeyword } from './keyword-map';
|
|
2
2
|
export interface NgDocSchema {
|
|
3
3
|
browserTarget: string;
|
|
4
|
-
|
|
4
|
+
main: string;
|
|
5
|
+
ngDoc?: NgDocConfiguration;
|
|
5
6
|
}
|
|
6
7
|
/**
|
|
7
8
|
* NgDoc configuration interface, that configure NgDoc library
|
|
@@ -10,7 +11,7 @@ export interface NgDocConfiguration {
|
|
|
10
11
|
/**
|
|
11
12
|
* List of paths to your documentation location (e.g. "src/app")
|
|
12
13
|
*/
|
|
13
|
-
pages
|
|
14
|
+
pages?: string | string[];
|
|
14
15
|
/**
|
|
15
16
|
* Route prefix uses to add some additional route segment before documentation pages,
|
|
16
17
|
* you can use it e.g. to wrap documentation with additional route like "docs".
|
|
@@ -20,7 +21,7 @@ export interface NgDocConfiguration {
|
|
|
20
21
|
* Tag for of the current target, you can use it in conjunction with the `onlyForTags` field in your pages to
|
|
21
22
|
* hide pages for certain documentation builds
|
|
22
23
|
*/
|
|
23
|
-
tag
|
|
24
|
+
tag?: string;
|
|
24
25
|
/**
|
|
25
26
|
* List of the global keywords, to create link to foreign websites
|
|
26
27
|
*/
|
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.18",
|
|
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.18",
|
|
9
9
|
"@angular-devkit/architect": ">=0.1500.0",
|
|
10
10
|
"chokidar": "^3.5.3",
|
|
11
11
|
"minimatch": "^5.1.0",
|
|
@@ -30,5 +30,25 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"main": "./index.js",
|
|
33
|
-
"types": "./index.d.ts"
|
|
33
|
+
"types": "./index.d.ts",
|
|
34
|
+
"keywords": [
|
|
35
|
+
"angular",
|
|
36
|
+
"documentation",
|
|
37
|
+
"generator",
|
|
38
|
+
"builder",
|
|
39
|
+
"guides",
|
|
40
|
+
"api",
|
|
41
|
+
"demo",
|
|
42
|
+
"ng-doc"
|
|
43
|
+
],
|
|
44
|
+
"author": "Skoropad Aleksandr <alex@skoropad.dev>",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/skoropadas/ng-doc.git"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/skoropadas/ng-doc/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://ng-doc.com/",
|
|
53
|
+
"license": "MIT"
|
|
34
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {NgDocDependencies} from '@ng-doc/core'
|
|
2
|
-
import {
|
|
1
|
+
import {NgDocDependencies} from '@ng-doc/core';<% if (module) { %>
|
|
2
|
+
import {<%= pageName %>Module} from './ng-doc.module';<% } %>
|
|
3
3
|
|
|
4
4
|
const <%= pageName %>Dependencies: NgDocDependencies = {<% if (module) { %>
|
|
5
5
|
module: <%= pageName %>Module,<% } %>
|