@ng-doc/builder 22.0.0 → 22.1.0
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/engine/builders/helpers/get-playground-metadata.js +7 -1
- package/engine/builders/helpers/get-playground-metadata.js.map +1 -1
- package/engine/builders/page/demo-assets.builder.js +2 -0
- package/engine/builders/page/demo-assets.builder.js.map +1 -1
- package/engine/builders/shared/content.builder.js +2 -0
- package/engine/builders/shared/content.builder.js.map +1 -1
- package/engine/builders/shared/page-wrapper.builder.js +2 -0
- package/engine/builders/shared/page-wrapper.builder.js.map +1 -1
- package/generator/bootstrap/bin.js +27 -3
- package/generator/bootstrap/cli.js +27 -3
- package/generator/bootstrap/index.js +17 -3
- package/generator/build-metafile.json +529 -221
- package/generator/build-provenance.json +6 -4
- package/generator/compiler/index.d.ts +20 -0
- package/generator/compiler/index.js +1875 -625
- package/generator/compiler/plan.d.ts +24 -0
- package/generator/content/code-snippet.d.ts +20 -0
- package/generator/content/content-compiler.d.ts +5 -1
- package/generator/content/format-cache.d.ts +108 -0
- package/generator/content/highlight-cache.d.ts +12 -36
- package/generator/content/html-pipeline.d.ts +10 -1
- package/generator/content/html-pool.d.ts +8 -2
- package/generator/content/html-worker.js +622 -39
- package/generator/contracts.d.ts +39 -0
- package/generator/discovery/index.d.ts +2 -0
- package/generator/kernel/flags.d.ts +2 -0
- package/generator/outputs/index.d.ts +13 -0
- package/generator/semantic/angular.d.ts +21 -1
- package/generator/semantic/formatting.d.ts +27 -0
- package/generator/semantic/fragments.d.ts +11 -2
- package/generator/templates/api/class-declaration.html.nunj +5 -3
- package/generator/templates/demo-app.ts.nunj +37 -0
- package/generator/templates/demo-routes.ts.nunj +23 -0
- package/generator/templates/index.ts.nunj +5 -0
- package/generator/templates/page-wrapper.ts.nunj +6 -1
- package/generator/templates/page.ts.nunj +9 -2
- package/generator/templates/routes.ts.nunj +7 -3
- package/generator/templates/symbol/members.html.nunj +6 -4
- package/generator/templates/symbol/page.html.nunj +1 -1
- package/generator/vite/application-builder.js +6 -1
- package/generator/vite/application.d.ts +14 -0
- package/generator/vite/demo-application.d.ts +34 -0
- package/generator/vite/dev-server-builder.js +6 -1
- package/generator/vite/host-updates.d.ts +69 -2
- package/generator/vite/index.js +490 -130
- package/generator/vite/lifecycle.d.ts +1 -0
- package/generator/vite/prerender-entry.js +72 -2
- package/generator/vite/prerender-runtime.d.ts +13 -0
- package/generator/vite/prerender.d.ts +2 -0
- package/helpers/format-cache.d.ts +34 -0
- package/helpers/format-cache.js +26 -0
- package/helpers/format-cache.js.map +1 -0
- package/helpers/format-code.js +9 -2
- package/helpers/format-code.js.map +1 -1
- package/helpers/to-template-string.d.ts +5 -1
- package/helpers/to-template-string.js +7 -2
- package/helpers/to-template-string.js.map +1 -1
- package/interfaces/code-block-options.d.ts +5 -0
- package/interfaces/configuration.d.ts +84 -1
- package/package.json +5 -4
- package/parsers/parse-code-block-params.d.ts +10 -1
- package/parsers/parse-code-block-params.js +29 -3
- package/parsers/parse-code-block-params.js.map +1 -1
- package/schematics/collection.json +1 -1
- package/schematics/migrate-to-vite/analyze.js +46 -3
- package/schematics/migrate-to-vite/analyze.js.map +1 -1
- package/schematics/migrate-to-vite/setup/workspace.d.ts +5 -0
- package/schematics/migrate-to-vite/setup/workspace.js +20 -0
- package/schematics/migrate-to-vite/setup/workspace.js.map +1 -1
- package/schematics/migrate-to-vite/testing/fixtures.d.ts +12 -0
- package/schematics/migrate-to-vite/testing/fixtures.js +27 -0
- package/schematics/migrate-to-vite/testing/fixtures.js.map +1 -1
- package/schematics/vite-setup/index.d.ts +9 -5
- package/schematics/vite-setup/index.js +11 -5
- package/schematics/vite-setup/index.js.map +1 -1
- package/schematics/vite-setup/schema.json +1 -1
- package/templates/api/class-declaration.html.nunj +5 -3
- package/templates/demo-app.ts.nunj +37 -0
- package/templates/demo-routes.ts.nunj +23 -0
- package/templates/index.ts.nunj +5 -0
- package/templates/page-wrapper.ts.nunj +6 -1
- package/templates/page.ts.nunj +9 -2
- package/templates/routes.ts.nunj +7 -3
- package/templates/symbol/members.html.nunj +6 -4
- package/templates/symbol/page.html.nunj +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerVersion": "0.0.1",
|
|
3
|
-
"toolchainDigest": "
|
|
4
|
-
"sourceDigest": "
|
|
5
|
-
"lockfileDigest": "
|
|
3
|
+
"toolchainDigest": "d3b66d41f47865fb003a881897f703f6b49568eefa8f301d410768b97f5647e2",
|
|
4
|
+
"sourceDigest": "1a038ca999385c919ea565f867343af2f42f244061951c14649d551b1082c31d",
|
|
5
|
+
"lockfileDigest": "de382fb15a8f808000ec7fba99c68f6b8329faa07755202f04ac25d0f1c8ef64",
|
|
6
6
|
"tuple": {
|
|
7
7
|
"@angular-devkit/architect": "0.2202.1",
|
|
8
8
|
"@angular-devkit/core": "22.2.1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@orama/plugin-parsedoc": "2.0.17",
|
|
14
14
|
"@parcel/watcher": "2.6.0",
|
|
15
15
|
"@prettier/sync": "0.5.2",
|
|
16
|
-
"@shikijs/rehype": "
|
|
16
|
+
"@shikijs/rehype": "4.5.0",
|
|
17
17
|
"cosmiconfig": "8.2.0",
|
|
18
18
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
19
19
|
"css-what": "6.1.0",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"rehype-parse": "9.0.0",
|
|
44
44
|
"rehype-stringify": "10.0.1",
|
|
45
45
|
"rxjs": "7.8.2",
|
|
46
|
+
"shiki": "4.5.0",
|
|
46
47
|
"stringify-entities": "4.0.4",
|
|
47
48
|
"tinyglobby": "0.2.17",
|
|
48
49
|
"ts-morph": "28.0.0",
|
|
@@ -85,6 +86,7 @@
|
|
|
85
86
|
"rehype-parse",
|
|
86
87
|
"rehype-stringify",
|
|
87
88
|
"rxjs",
|
|
89
|
+
"shiki",
|
|
88
90
|
"stringify-entities",
|
|
89
91
|
"tinyglobby",
|
|
90
92
|
"ts-morph",
|
|
@@ -79,6 +79,25 @@ export interface CompilationOptions {
|
|
|
79
79
|
* `CONTENT_HIGHLIGHT_CACHE_MISMATCH` when it differs.
|
|
80
80
|
*/
|
|
81
81
|
highlightCache?: boolean | 'verify';
|
|
82
|
+
/**
|
|
83
|
+
* The cache of formatted code (`content/format-cache.ts`): a generation resolves the Prettier
|
|
84
|
+
* configuration once, and API signatures and demo snippets whose code, parser, configuration and
|
|
85
|
+
* Prettier release were formatted before reuse that result. Development generations with the
|
|
86
|
+
* artifact cache keep it beside the cache; production, `cache: false` and the reference path
|
|
87
|
+
* (`incrementalReuse: false`, which formats every call) keep none. On by default; `false`, like
|
|
88
|
+
* `NGDOC_FORMAT_CACHE=0`, formats every call as before. `verify` (or the environment's `verify`)
|
|
89
|
+
* also resolves and formats every hit again, uses that result and reports
|
|
90
|
+
* `CONTENT_FORMAT_CACHE_MISMATCH` when one differs.
|
|
91
|
+
*/
|
|
92
|
+
formatCache?: boolean | 'verify';
|
|
93
|
+
/**
|
|
94
|
+
* Highlighting loads only the Shiki grammars that the languages of code blocks reach, into one
|
|
95
|
+
* highlighter per thread and theme pair, instead of every bundled grammar (which takes seconds);
|
|
96
|
+
* the HTML is the same (`@ng-doc/utils` `processHtml`'s `grammars: 'used'`). Projects with
|
|
97
|
+
* `shiki.langs` load every grammar. On by default; `false`, like `NGDOC_USED_GRAMMARS=0`, loads
|
|
98
|
+
* every grammar.
|
|
99
|
+
*/
|
|
100
|
+
usedGrammars?: boolean;
|
|
82
101
|
/**
|
|
83
102
|
* Parallel rendering (`content/html-pool.ts`): a large generation runs the HTML pipeline of its
|
|
84
103
|
* content (highlighting, anchors, keyword links, search records) on render threads, while the
|
|
@@ -107,5 +126,6 @@ export interface TargetedCompilationService extends CompilationService {
|
|
|
107
126
|
* A compile runs its phases in order (discovery, semantic, setup, describe, plan, render, keywords,
|
|
108
127
|
* link, assembly, aggregate, validation): each phase records what it emits per unit or globally,
|
|
109
128
|
* and every exit folds those records into its result (`./fold`).
|
|
129
|
+
* @param options
|
|
110
130
|
*/
|
|
111
131
|
export declare function createCompilationService(options: CompilationOptions): TargetedCompilationService;
|