@analogjs/platform 2.0.0-alpha.1 → 2.0.0-alpha.10
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/package.json +16 -10
- package/src/lib/content/marked/index.d.ts +2 -0
- package/src/lib/content/marked/marked-content-highlighter.d.ts +1 -1
- package/src/lib/content/marked/marked-setup.service.js +34 -23
- package/src/lib/content/prism/prism-highlighter.d.ts +1 -1
- package/src/lib/content/shiki/shiki-highlighter.d.ts +1 -1
- package/src/lib/deps-plugin.js +3 -1
- package/src/lib/nx-plugin/src/executors/vite/compat.js +2 -1
- package/src/lib/nx-plugin/src/executors/vite/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js +2 -1
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/executors/vitest/compat.js +2 -1
- package/src/lib/nx-plugin/src/executors/vitest/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/compat.js +2 -1
- package/src/lib/nx-plugin/src/generators/app/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v16/vite.config.ts__template__ +7 -0
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/vite.config.ts__template__ +9 -2
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/src/main.server.ts__template__ +2 -26
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/tsconfig.app.json__template__ +2 -1
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/vite.config.ts__template__ +9 -2
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/src/main.server.ts__template__ +3 -27
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/tsconfig.app.json__template__ +2 -1
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/vite.config.ts__template__ +11 -13
- package/src/lib/nx-plugin/src/generators/app/files/trpc/src/server/routes/api/trpc/[trpc].ts__template__ +10 -0
- package/src/lib/nx-plugin/src/generators/app/files/trpc/src/server/trpc/trpc.ts__template__ +4 -1
- package/src/lib/nx-plugin/src/generators/app/files/trpc/src/trpc-client.ts__template__ +4 -0
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js +37 -4
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.js +33 -12
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.js +36 -3
- package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/dependencies.js +4 -4
- package/src/lib/nx-plugin/src/generators/app/versions/dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/nx_15_X/versions.d.ts +3 -2
- package/src/lib/nx-plugin/src/generators/app/versions/nx_15_X/versions.js +4 -3
- package/src/lib/nx-plugin/src/generators/app/versions/nx_15_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/nx_16_X/versions.d.ts +3 -2
- package/src/lib/nx-plugin/src/generators/app/versions/nx_16_X/versions.js +4 -3
- package/src/lib/nx-plugin/src/generators/app/versions/nx_16_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.d.ts +3 -2
- package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.js +4 -3
- package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.d.ts +17 -16
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js +18 -17
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.js +2 -2
- package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/compat.js +2 -1
- package/src/lib/nx-plugin/src/generators/init/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.js +5 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.js +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/preset/generator.js +34 -1
- package/src/lib/nx-plugin/src/generators/preset/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/compat.js +2 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/generator.js +2 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.js +2 -2
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.js +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/dev-dependencies.d.ts +2 -2
- package/src/lib/nx-plugin/src/utils/versions/dev-dependencies.js +19 -8
- package/src/lib/nx-plugin/src/utils/versions/dev-dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.d.ts +4 -4
- package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.js +4 -4
- package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.d.ts +8 -5
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js +9 -6
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js.map +1 -1
- package/src/lib/options.d.ts +17 -27
- package/src/lib/platform-plugin.js +20 -1
- package/src/lib/router-plugin.js +7 -7
- package/src/lib/nx-plugin/src/generators/app/files/trpc/src/server/routes/trpc/[trpc].ts__template__ +0 -8
- /package/src/lib/nx-plugin/src/generators/app/files/tailwind/{latest → v3}/postcss.config.cjs__template__ +0 -0
- /package/src/lib/nx-plugin/src/generators/app/files/tailwind/{latest → v3}/tailwind.config.ts__template__ +0 -0
- /package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/src/server/routes/{v1 → api/v1}/hello.ts__template__ +0 -0
- /package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/src/server/routes/{v1 → api/v1}/hello.ts__template__ +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/platform",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.10",
|
|
4
4
|
"description": "The fullstack meta-framework for Angular",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Brandon Roberts <robertsbt@gmail.com>",
|
|
@@ -29,21 +29,26 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"nitropack": "^2.10.0",
|
|
32
|
-
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.
|
|
33
|
-
"@analogjs/vite-plugin-nitro": "^2.0.0-alpha.
|
|
32
|
+
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.10",
|
|
33
|
+
"@analogjs/vite-plugin-nitro": "^2.0.0-alpha.10",
|
|
34
34
|
"vitefu": "^0.2.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@nx/angular": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
38
|
-
"@nx/devkit": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
39
|
-
"@nx/vite": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
40
|
-
"marked": "
|
|
41
|
-
"marked-gfm-heading-id": "^
|
|
42
|
-
"marked-highlight": "^2.
|
|
43
|
-
"marked-mangle": "^1.1.
|
|
37
|
+
"@nx/angular": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0|| ^21.0.0",
|
|
38
|
+
"@nx/devkit": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0|| ^21.0.0",
|
|
39
|
+
"@nx/vite": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0|| ^21.0.0",
|
|
40
|
+
"marked": "^15.0.7",
|
|
41
|
+
"marked-gfm-heading-id": "^4.1.1",
|
|
42
|
+
"marked-highlight": "^2.2.1",
|
|
43
|
+
"marked-mangle": "^1.1.10",
|
|
44
44
|
"marked-shiki": "^1.1.0",
|
|
45
45
|
"shiki": "^1.6.1"
|
|
46
46
|
},
|
|
47
|
+
"overrides": {
|
|
48
|
+
"@nx/vite": {
|
|
49
|
+
"vite": "$vite"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
47
52
|
"peerDependenciesMeta": {
|
|
48
53
|
"shiki": {
|
|
49
54
|
"optional": true
|
|
@@ -67,6 +72,7 @@
|
|
|
67
72
|
"@analogjs/platform",
|
|
68
73
|
"@analogjs/content",
|
|
69
74
|
"@analogjs/router",
|
|
75
|
+
"@analogjs/storybook-angular",
|
|
70
76
|
"@analogjs/vite-plugin-angular",
|
|
71
77
|
"@analogjs/vite-plugin-nitro",
|
|
72
78
|
"@analogjs/vitest-angular"
|
|
@@ -2,5 +2,5 @@ export interface MarkedContentHighlighter {
|
|
|
2
2
|
augmentCodeBlock?(code: string, lang: string): string;
|
|
3
3
|
}
|
|
4
4
|
export declare abstract class MarkedContentHighlighter {
|
|
5
|
-
abstract getHighlightExtension(): import('marked').
|
|
5
|
+
abstract getHighlightExtension(): import('marked').MarkedExtension;
|
|
6
6
|
}
|
|
@@ -5,39 +5,50 @@ export class MarkedSetupService {
|
|
|
5
5
|
constructor(options, highlighter) {
|
|
6
6
|
this.options = options;
|
|
7
7
|
this.highlighter = highlighter;
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
const analogMarkedExtension = {
|
|
9
|
+
pedantic: false,
|
|
10
|
+
gfm: true,
|
|
11
|
+
breaks: false,
|
|
12
|
+
renderer: {
|
|
13
|
+
code({ text, lang }) {
|
|
14
|
+
// Let's do a language based detection like on GitHub
|
|
15
|
+
// So we can still have non-interpreted mermaid code
|
|
16
|
+
if (lang === 'mermaid') {
|
|
17
|
+
return '<pre class="mermaid">' + text + '</pre>';
|
|
18
|
+
}
|
|
19
|
+
if (!lang) {
|
|
20
|
+
return '<pre><code>' + text + '</code></pre>';
|
|
21
|
+
}
|
|
22
|
+
if (highlighter?.augmentCodeBlock) {
|
|
23
|
+
return highlighter?.augmentCodeBlock(text, lang);
|
|
24
|
+
}
|
|
25
|
+
return `<pre class="language-${lang}"><code class="language-${lang}">${text}</code></pre>`;
|
|
26
|
+
},
|
|
27
|
+
codespan({ text }) {
|
|
28
|
+
return `<code>${text}</code>`;
|
|
29
|
+
},
|
|
30
|
+
paragraph({ tokens }) {
|
|
31
|
+
const text = this.parser.parseInline(tokens);
|
|
32
|
+
return `<p>${text}</p>`;
|
|
33
|
+
},
|
|
34
|
+
},
|
|
22
35
|
};
|
|
23
|
-
const extensions = [
|
|
36
|
+
const extensions = [
|
|
37
|
+
analogMarkedExtension,
|
|
38
|
+
gfmHeadingId(),
|
|
39
|
+
...(options?.extensions || []),
|
|
40
|
+
];
|
|
24
41
|
if (this.options?.mangle) {
|
|
25
42
|
extensions.push(mangle());
|
|
26
43
|
}
|
|
27
44
|
if (this.highlighter) {
|
|
28
45
|
extensions.push(this.highlighter.getHighlightExtension());
|
|
29
46
|
}
|
|
30
|
-
marked.use(...extensions
|
|
31
|
-
renderer,
|
|
32
|
-
pedantic: false,
|
|
33
|
-
gfm: true,
|
|
34
|
-
breaks: false,
|
|
35
|
-
mangle: false,
|
|
36
|
-
});
|
|
47
|
+
marked.use(...extensions);
|
|
37
48
|
this.marked = marked;
|
|
38
49
|
}
|
|
39
50
|
getMarkedInstance() {
|
|
40
51
|
return this.marked;
|
|
41
52
|
}
|
|
42
53
|
}
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFya2VkLXNldHVwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9wbGF0Zm9ybS9zcmMvbGliL2NvbnRlbnQvbWFya2VkL21hcmtlZC1zZXR1cC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQTJCLE1BQU0sUUFBUSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNyRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBS3ZDLE1BQU0sT0FBTyxrQkFBa0I7SUFHN0IsWUFDbUIsT0FBMkIsRUFDM0IsV0FBc0M7UUFEdEMsWUFBTyxHQUFQLE9BQU8sQ0FBb0I7UUFDM0IsZ0JBQVcsR0FBWCxXQUFXLENBQTJCO1FBRXZELE1BQU0scUJBQXFCLEdBQW9CO1lBQzdDLFFBQVEsRUFBRSxLQUFLO1lBQ2YsR0FBRyxFQUFFLElBQUk7WUFDVCxNQUFNLEVBQUUsS0FBSztZQUNiLFFBQVEsRUFBRTtnQkFDUixJQUFJLENBQUMsRUFBRSxJQUFJLEVBQUUsSUFBSSxFQUFFO29CQUNqQixxREFBcUQ7b0JBQ3JELG9EQUFvRDtvQkFDcEQsSUFBSSxJQUFJLEtBQUssU0FBUyxFQUFFLENBQUM7d0JBQ3ZCLE9BQU8sdUJBQXVCLEdBQUcsSUFBSSxHQUFHLFFBQVEsQ0FBQztvQkFDbkQsQ0FBQztvQkFFRCxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7d0JBQ1YsT0FBTyxhQUFhLEdBQUcsSUFBSSxHQUFHLGVBQWUsQ0FBQztvQkFDaEQsQ0FBQztvQkFFRCxJQUFJLFdBQVcsRUFBRSxnQkFBZ0IsRUFBRSxDQUFDO3dCQUNsQyxPQUFPLFdBQVcsRUFBRSxnQkFBZ0IsQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUM7b0JBQ25ELENBQUM7b0JBRUQsT0FBTyx3QkFBd0IsSUFBSSwyQkFBMkIsSUFBSSxLQUFLLElBQUksZUFBZSxDQUFDO2dCQUM3RixDQUFDO2dCQUNELFFBQVEsQ0FBQyxFQUFFLElBQUksRUFBRTtvQkFDZixPQUFPLFNBQVMsSUFBSSxTQUFTLENBQUM7Z0JBQ2hDLENBQUM7Z0JBQ0QsU0FBUyxDQUFDLEVBQUUsTUFBTSxFQUFFO29CQUNsQixNQUFNLElBQUksR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQztvQkFDN0MsT0FBTyxNQUFNLElBQUksTUFBTSxDQUFDO2dCQUMxQixDQUFDO2FBQ0Y7U0FDRixDQUFDO1FBRUYsTUFBTSxVQUFVLEdBQUc7WUFDakIscUJBQXFCO1lBQ3JCLFlBQVksRUFBRTtZQUNkLEdBQUcsQ0FBQyxPQUFPLEVBQUUsVUFBVSxJQUFJLEVBQUUsQ0FBQztTQUMvQixDQUFDO1FBRUYsSUFBSSxJQUFJLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxDQUFDO1lBQ3pCLFVBQVUsQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQztRQUM1QixDQUFDO1FBRUQsSUFBSSxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUM7WUFDckIsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLHFCQUFxQixFQUFFLENBQUMsQ0FBQztRQUM1RCxDQUFDO1FBRUQsTUFBTSxDQUFDLEdBQUcsQ0FBQyxHQUFHLFVBQVUsQ0FBQyxDQUFDO1FBRTFCLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO0lBQ3ZCLENBQUM7SUFFRCxpQkFBaUI7UUFDZixPQUFPLElBQUksQ0FBQyxNQUFNLENBQUM7SUFDckIsQ0FBQztDQUNGIn0=
|
|
@@ -3,5 +3,5 @@ import './angular.js';
|
|
|
3
3
|
import { MarkedContentHighlighter } from '../marked/marked-content-highlighter.js';
|
|
4
4
|
export declare class PrismHighlighter extends MarkedContentHighlighter {
|
|
5
5
|
augmentCodeBlock(code: string, lang: string): string;
|
|
6
|
-
getHighlightExtension(): import("marked").
|
|
6
|
+
getHighlightExtension(): import("marked").MarkedExtension;
|
|
7
7
|
}
|
|
@@ -13,5 +13,5 @@ export declare class ShikiHighlighter extends MarkedContentHighlighter {
|
|
|
13
13
|
private hasLoadMermaid;
|
|
14
14
|
private readonly highlighter;
|
|
15
15
|
constructor(highlighterOptions: ShikiHighlighterOptions, highlightOptions: ShikiHighlightOptions, container: string, hasLoadMermaid?: boolean);
|
|
16
|
-
getHighlightExtension(): MarkedExtension;
|
|
16
|
+
getHighlightExtension(): import("marked").MarkedExtension;
|
|
17
17
|
}
|
package/src/lib/deps-plugin.js
CHANGED
|
@@ -7,6 +7,7 @@ export function depsPlugin(options) {
|
|
|
7
7
|
name: 'analogjs-deps-plugin',
|
|
8
8
|
config() {
|
|
9
9
|
return {
|
|
10
|
+
esbuild: { exclude: ['**/*.ts', '**/*.js'] },
|
|
10
11
|
ssr: {
|
|
11
12
|
noExternal: [
|
|
12
13
|
'@analogjs/**',
|
|
@@ -15,6 +16,7 @@ export function depsPlugin(options) {
|
|
|
15
16
|
'rxfire',
|
|
16
17
|
'@ng-web-apis/**',
|
|
17
18
|
'@taiga-ui/**',
|
|
19
|
+
'@tanstack/angular-query-experimental',
|
|
18
20
|
],
|
|
19
21
|
},
|
|
20
22
|
optimizeDeps: {
|
|
@@ -69,4 +71,4 @@ export function depsPlugin(options) {
|
|
|
69
71
|
},
|
|
70
72
|
];
|
|
71
73
|
}
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwcy1wbHVnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9wbGF0Zm9ybS9zcmMvbGliL2RlcHMtcGx1Z2luLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUVoRCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFJNUMsTUFBTSxVQUFVLFVBQVUsQ0FBQyxPQUFpQjtJQUMxQyxNQUFNLGFBQWEsR0FBRyxPQUFPLEVBQUUsYUFBYSxJQUFJLE9BQU8sQ0FBQyxHQUFHLEVBQUUsQ0FBQztJQUU5RCxPQUFPO1FBQ0w7WUFDRSxJQUFJLEVBQUUsc0JBQXNCO1lBQzVCLE1BQU07Z0JBQ0osT0FBTztvQkFDTCxPQUFPLEVBQUUsRUFBRSxPQUFPLEVBQUUsQ0FBQyxTQUFTLEVBQUUsU0FBUyxDQUFDLEVBQUU7b0JBQzVDLEdBQUcsRUFBRTt3QkFDSCxVQUFVLEVBQUU7NEJBQ1YsY0FBYzs0QkFDZCxhQUFhOzRCQUNiLG1CQUFtQjs0QkFDbkIsUUFBUTs0QkFDUixpQkFBaUI7NEJBQ2pCLGNBQWM7NEJBQ2Qsc0NBQXNDO3lCQUN2QztxQkFDRjtvQkFDRCxZQUFZLEVBQUU7d0JBQ1osT0FBTyxFQUFFOzRCQUNQLGlCQUFpQjs0QkFDakIsc0JBQXNCOzRCQUN0QixHQUFHLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFO2dDQUM1QixDQUFDLENBQUMsQ0FBQyw0QkFBNEIsQ0FBQztnQ0FDaEMsQ0FBQyxDQUFDLEVBQUUsQ0FBQzs0QkFDUCxjQUFjO3lCQUNmO3dCQUNELE9BQU8sRUFBRTs0QkFDUCwwQkFBMEI7NEJBQzFCLG1CQUFtQjs0QkFDbkIsa0JBQWtCOzRCQUNsQixhQUFhOzRCQUNiLFVBQVU7NEJBQ1YsWUFBWTs0QkFDWixRQUFROzRCQUNSLFlBQVk7NEJBQ1osYUFBYTs0QkFDYixVQUFVOzRCQUNWLFFBQVE7NEJBQ1IsWUFBWTs0QkFDWixhQUFhOzRCQUNiLFNBQVM7NEJBQ1QsZUFBZTs0QkFDZixZQUFZOzRCQUNaLHVCQUF1Qjs0QkFDdkIsWUFBWTs0QkFDWixTQUFTOzRCQUNULFVBQVU7NEJBQ1YsSUFBSTt5QkFDTDtxQkFDRjtpQkFDRixDQUFDO1lBQ0osQ0FBQztTQUNGO1FBQ0Q7WUFDRSxJQUFJLEVBQUUsNkJBQTZCO1lBQ25DLEtBQUssQ0FBQyxNQUFNLENBQUMsTUFBTSxFQUFFLEVBQUUsT0FBTyxFQUFFO2dCQUM5QixNQUFNLFNBQVMsR0FBRyxNQUFNLGtCQUFrQixDQUFDO29CQUN6QyxJQUFJLEVBQUUsYUFBYTtvQkFDbkIsT0FBTyxFQUFFLE9BQU8sS0FBSyxPQUFPO29CQUM1QixjQUFjLEVBQUUsTUFBTTtvQkFDdEIsd0JBQXdCLENBQUMsT0FBTzt3QkFDOUIsT0FBTyxPQUFPLENBQUMsUUFBUSxDQUFDLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsQ0FBQztvQkFDakUsQ0FBQztpQkFDRixDQUFDLENBQUM7Z0JBQ0gsT0FBTyxTQUFTLENBQUM7WUFDbkIsQ0FBQztTQUNGO0tBQ0YsQ0FBQztBQUNKLENBQUMifQ==
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const vite_impl_1 = require("./vite.impl");
|
|
5
|
+
const vite_impl_1 = tslib_1.__importDefault(require("./vite.impl"));
|
|
5
6
|
exports.default = (0, devkit_1.convertNxExecutor)(vite_impl_1.default);
|
|
6
7
|
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite/compat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite/compat.ts"],"names":[],"mappings":";;;AAAA,uCAA+C;AAE/C,oEAA4C;AAE5C,kBAAe,IAAA,0BAAiB,EAAC,mBAAiB,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const vite_dev_server_impl_1 = require("./vite-dev-server.impl");
|
|
5
|
+
const vite_dev_server_impl_1 = tslib_1.__importDefault(require("./vite-dev-server.impl"));
|
|
5
6
|
exports.default = (0, devkit_1.convertNxExecutor)(vite_dev_server_impl_1.default);
|
|
6
7
|
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite-dev-server/compat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite-dev-server/compat.ts"],"names":[],"mappings":";;;AAAA,uCAA+C;AAE/C,0FAA2D;AAE3D,kBAAe,IAAA,0BAAiB,EAAC,8BAAqB,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const vitest_impl_1 = require("./vitest.impl");
|
|
5
|
+
const vitest_impl_1 = tslib_1.__importDefault(require("./vitest.impl"));
|
|
5
6
|
exports.default = (0, devkit_1.convertNxExecutor)(vitest_impl_1.default);
|
|
6
7
|
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vitest/compat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vitest/compat.ts"],"names":[],"mappings":";;;AAAA,uCAA+C;AAE/C,wEAA2C;AAE3C,kBAAe,IAAA,0BAAiB,EAAC,qBAAc,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const generator_1 = require("./generator");
|
|
5
|
+
const generator_1 = tslib_1.__importDefault(require("./generator"));
|
|
5
6
|
exports.default = (0, devkit_1.convertNxGenerator)(generator_1.default);
|
|
6
7
|
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/generators/app/compat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/generators/app/compat.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,oEAAoC;AAEpC,kBAAe,IAAA,2BAAkB,EAAC,mBAAS,CAAC,CAAC"}
|
package/src/lib/nx-plugin/src/generators/app/files/template-angular-v16/vite.config.ts__template__
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
import analog from '@analogjs/platform';
|
|
4
4
|
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
|
|
5
5
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
|
6
|
+
<% if (addTailwind) { %>
|
|
7
|
+
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
|
|
8
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
9
|
+
<% } %>
|
|
6
10
|
|
|
7
11
|
// https://vitejs.dev/config/
|
|
8
12
|
export default defineConfig(({ mode }) => {
|
|
@@ -17,6 +21,9 @@ export default defineConfig(({ mode }) => {
|
|
|
17
21
|
target: ['es2020'],
|
|
18
22
|
},
|
|
19
23
|
plugins: [
|
|
24
|
+
<% if (addTailwind) { %>
|
|
25
|
+
tailwindcss(),
|
|
26
|
+
<% } %>
|
|
20
27
|
<% if (addTRPC) { %>
|
|
21
28
|
analog({
|
|
22
29
|
nitro: {
|
package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/vite.config.ts__template__
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
import analog from '@analogjs/platform';
|
|
4
4
|
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
|
|
5
5
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
6
|
+
<% if (addTailwind) { %>
|
|
7
|
+
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
|
|
8
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
9
|
+
<% } %>
|
|
6
10
|
|
|
7
11
|
// https://vitejs.dev/config/
|
|
8
12
|
export default defineConfig(({ mode }) => {
|
|
@@ -17,15 +21,18 @@ export default defineConfig(({ mode }) => {
|
|
|
17
21
|
<% } %>
|
|
18
22
|
build: {
|
|
19
23
|
outDir: '<%= offsetFromRoot %>dist/<%= projectRoot %>/client',
|
|
20
|
-
reportCompressedSize: true,
|
|
24
|
+
reportCompressedSize: true,
|
|
21
25
|
target: ['es2020'],
|
|
22
26
|
},
|
|
23
27
|
server: {
|
|
24
28
|
fs: {
|
|
25
29
|
allow: ['.'],
|
|
26
30
|
},
|
|
27
|
-
},
|
|
31
|
+
},
|
|
28
32
|
plugins: [
|
|
33
|
+
<% if (addTailwind) { %>
|
|
34
|
+
tailwindcss(),
|
|
35
|
+
<% } %>
|
|
29
36
|
<% if (addTRPC) { %>
|
|
30
37
|
analog({
|
|
31
38
|
nitro: {
|
|
@@ -1,32 +1,8 @@
|
|
|
1
1
|
import 'zone.js/node';
|
|
2
2
|
import '@angular/platform-server/init';
|
|
3
|
-
import {
|
|
4
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
5
|
-
import { renderApplication } from '@angular/platform-server';
|
|
6
|
-
import { provideServerContext } from '@analogjs/router/server';
|
|
7
|
-
import { ServerContext } from '@analogjs/router/tokens';
|
|
3
|
+
import { render } from '@analogjs/router/server';
|
|
8
4
|
|
|
9
5
|
import { config } from './app/app.config.server';
|
|
10
6
|
import { AppComponent } from './app/app.component';
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
enableProdMode();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function bootstrap() {
|
|
17
|
-
return bootstrapApplication(AppComponent, config);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default async function render(
|
|
21
|
-
url: string,
|
|
22
|
-
document: string,
|
|
23
|
-
serverContext: ServerContext
|
|
24
|
-
) {
|
|
25
|
-
const html = await renderApplication(bootstrap, {
|
|
26
|
-
document,
|
|
27
|
-
url,
|
|
28
|
-
platformProviders: [provideServerContext(serverContext)],
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
return html;
|
|
32
|
-
}
|
|
8
|
+
export default render(AppComponent, config);
|
package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/vite.config.ts__template__
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
import analog from '@analogjs/platform';
|
|
4
4
|
import { defineConfig, Plugin, splitVendorChunkPlugin } from 'vite';
|
|
5
5
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
6
|
+
<% if (addTailwind) { %>
|
|
7
|
+
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
|
|
8
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
9
|
+
<% } %>
|
|
6
10
|
|
|
7
11
|
// https://vitejs.dev/config/
|
|
8
12
|
export default defineConfig(({ mode }) => {
|
|
@@ -16,15 +20,18 @@ export default defineConfig(({ mode }) => {
|
|
|
16
20
|
<% } %>
|
|
17
21
|
build: {
|
|
18
22
|
outDir: '<%= offsetFromRoot %>dist/<%= projectRoot %>/client',
|
|
19
|
-
reportCompressedSize: true,
|
|
23
|
+
reportCompressedSize: true,
|
|
20
24
|
target: ['es2020'],
|
|
21
25
|
},
|
|
22
26
|
server: {
|
|
23
27
|
fs: {
|
|
24
28
|
allow: ['.'],
|
|
25
29
|
},
|
|
26
|
-
},
|
|
30
|
+
},
|
|
27
31
|
plugins: [
|
|
32
|
+
<% if (addTailwind) { %>
|
|
33
|
+
tailwindcss(),
|
|
34
|
+
<% } %>
|
|
28
35
|
<% if (addTRPC) { %>
|
|
29
36
|
analog({
|
|
30
37
|
nitro: {
|
|
@@ -1,32 +1,8 @@
|
|
|
1
1
|
import 'zone.js/node';
|
|
2
2
|
import '@angular/platform-server/init';
|
|
3
|
-
import {
|
|
4
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
5
|
-
import { renderApplication } from '@angular/platform-server';
|
|
6
|
-
import { provideServerContext } from '@analogjs/router/server';
|
|
7
|
-
import { ServerContext } from '@analogjs/router/tokens';
|
|
3
|
+
import { render } from '@analogjs/router/server';
|
|
8
4
|
|
|
9
|
-
import { config } from './app/app.config.server';
|
|
10
5
|
import { AppComponent } from './app/app.component';
|
|
6
|
+
import { config } from './app/app.config.server';
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
enableProdMode();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function bootstrap() {
|
|
17
|
-
return bootstrapApplication(AppComponent, config);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default async function render(
|
|
21
|
-
url: string,
|
|
22
|
-
document: string,
|
|
23
|
-
serverContext: ServerContext
|
|
24
|
-
) {
|
|
25
|
-
const html = await renderApplication(bootstrap, {
|
|
26
|
-
document,
|
|
27
|
-
url,
|
|
28
|
-
platformProviders: [provideServerContext(serverContext)],
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
return html;
|
|
32
|
-
}
|
|
8
|
+
export default render(AppComponent, config);
|
package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/vite.config.ts__template__
CHANGED
|
@@ -3,36 +3,34 @@
|
|
|
3
3
|
import analog from '@analogjs/platform';
|
|
4
4
|
import { defineConfig, Plugin } from 'vite';
|
|
5
5
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
6
|
+
<% if (addTailwind) { %>
|
|
7
|
+
// @ts-expect-error @tailwindcss/vite currently uses mts. TypeScript is complaining this, but it works as expected.
|
|
8
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
9
|
+
<% } %>
|
|
6
10
|
|
|
7
11
|
// https://vitejs.dev/config/
|
|
8
12
|
export default defineConfig(({ mode }) => {
|
|
9
13
|
return {
|
|
10
14
|
root: __dirname,
|
|
11
15
|
cacheDir: `<%= offsetFromRoot %>node_modules/.vite`,
|
|
12
|
-
<% if (addTRPC) { %>
|
|
13
|
-
ssr: {
|
|
14
|
-
noExternal: ['@analogjs/trpc','@trpc/server'],
|
|
15
|
-
},
|
|
16
|
-
<% } %>
|
|
17
16
|
build: {
|
|
18
17
|
outDir: '<%= offsetFromRoot %>dist/<%= projectRoot %>/client',
|
|
19
|
-
reportCompressedSize: true,
|
|
18
|
+
reportCompressedSize: true,
|
|
20
19
|
target: ['es2020'],
|
|
21
20
|
},
|
|
22
21
|
server: {
|
|
23
22
|
fs: {
|
|
24
23
|
allow: ['.'],
|
|
25
24
|
},
|
|
26
|
-
},
|
|
25
|
+
},
|
|
27
26
|
plugins: [
|
|
27
|
+
<% if (addTailwind) { %>
|
|
28
|
+
tailwindcss(),
|
|
29
|
+
<% } %>
|
|
28
30
|
<% if (addTRPC) { %>
|
|
29
31
|
analog({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
'/': {
|
|
33
|
-
prerender: false,
|
|
34
|
-
}
|
|
35
|
-
}
|
|
32
|
+
prerender: {
|
|
33
|
+
routes: []
|
|
36
34
|
}
|
|
37
35
|
}),
|
|
38
36
|
<% } else { %>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createTrpcNitroHandler } from '@analogjs/trpc/server';
|
|
2
|
+
|
|
3
|
+
import { appRouter } from '../../../trpc/routers';
|
|
4
|
+
import { createContext } from '../../../trpc/context';
|
|
5
|
+
|
|
6
|
+
// export API handler
|
|
7
|
+
export default createTrpcNitroHandler({
|
|
8
|
+
router: appRouter,
|
|
9
|
+
createContext,
|
|
10
|
+
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { initTRPC } from '@trpc/server';
|
|
2
2
|
import { Context } from './context';
|
|
3
|
+
import { SuperJSON } from 'superjson';
|
|
3
4
|
|
|
4
|
-
const t = initTRPC.context<Context>().create({
|
|
5
|
+
const t = initTRPC.context<Context>().create({
|
|
6
|
+
transformer: SuperJSON,
|
|
7
|
+
});
|
|
5
8
|
/**
|
|
6
9
|
* Unprotected procedure
|
|
7
10
|
**/
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { AppRouter } from './server/trpc/routers';
|
|
2
2
|
import { createTrpcClient } from '@analogjs/trpc';
|
|
3
3
|
import { inject } from '@angular/core';
|
|
4
|
+
import { SuperJSON } from 'superjson';
|
|
4
5
|
|
|
5
6
|
export const { provideTrpcClient, TrpcClient } = createTrpcClient<AppRouter>({
|
|
6
7
|
url: '/api/trpc',
|
|
8
|
+
options: {
|
|
9
|
+
transformer: SuperJSON,
|
|
10
|
+
},
|
|
7
11
|
});
|
|
8
12
|
|
|
9
13
|
export function injectTrpcClient() {
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.addEslint = addEslint;
|
|
4
37
|
async function addEslint(tree, majorNxVersion, options) {
|
|
@@ -10,16 +43,16 @@ async function addEslint(tree, majorNxVersion, options) {
|
|
|
10
43
|
skipFormat: true,
|
|
11
44
|
};
|
|
12
45
|
if (majorNxVersion >= 16) {
|
|
13
|
-
await (await Promise.resolve().then(() => require(
|
|
46
|
+
await (await Promise.resolve().then(() => __importStar(require(
|
|
14
47
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15
48
|
// @ts-ignore
|
|
16
|
-
'@nx/eslint'))).lintProjectGenerator(tree, linterOptions);
|
|
49
|
+
'@nx/eslint')))).lintProjectGenerator(tree, linterOptions);
|
|
17
50
|
}
|
|
18
51
|
else {
|
|
19
|
-
await (await Promise.resolve().then(() => require(
|
|
52
|
+
await (await Promise.resolve().then(() => __importStar(require(
|
|
20
53
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21
54
|
// @ts-ignore
|
|
22
|
-
'@nrwl/linter'))).lintProjectGenerator(tree, linterOptions);
|
|
55
|
+
'@nrwl/linter')))).lintProjectGenerator(tree, linterOptions);
|
|
23
56
|
}
|
|
24
57
|
}
|
|
25
58
|
//# sourceMappingURL=add-eslint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-eslint.js","sourceRoot":"","sources":["../../../../../../../../../../packages/nx-plugin/src/generators/app/lib/add-eslint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-eslint.js","sourceRoot":"","sources":["../../../../../../../../../../packages/nx-plugin/src/generators/app/lib/add-eslint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,8BA6BC;AA7BM,KAAK,UAAU,SAAS,CAC7B,IAAU,EACV,cAAsB,EACtB,OAA0B;IAE1B,MAAM,aAAa,GAAG;QACpB,yCAAyC;QACzC,MAAM,EAAE,QAAe;QACvB,OAAO,EAAE,OAAO,CAAC,WAAW;QAC5B,kBAAkB,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,iBAAiB,CAAC;QAC7D,UAAU,EAAE,IAAI;KACjB,CAAC;IACF,IAAI,cAAc,IAAI,EAAE,EAAE,CAAC;QACzB,MAAM,CACJ;QACE,6DAA6D;QAC7D,aAAa;QACb,YAAY,GACb,CACF,CAAC,oBAAoB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;SAAM,CAAC;QACN,MAAM,CACJ;QACE,6DAA6D;QAC7D,aAAa;QACb,cAAc,GACf,CACF,CAAC,oBAAoB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tree, GeneratorCallback, ProjectConfiguration } from '@nx/devkit';
|
|
2
2
|
import { GeneratorOptions, NormalizedGeneratorOptions } from './add-tailwind-config';
|
|
3
3
|
export declare function normalizeOptions(options: GeneratorOptions): NormalizedGeneratorOptions;
|
|
4
|
-
export declare function detectTailwindInstalledVersion(tree: Tree): '2' | '3' | undefined;
|
|
4
|
+
export declare function detectTailwindInstalledVersion(tree: Tree): '2' | '3' | '4' | undefined;
|
|
5
5
|
export declare function addTailwindRequiredPackages(tree: Tree): GeneratorCallback;
|
|
6
6
|
export declare function updateApplicationStyles(tree: Tree, options: NormalizedGeneratorOptions, project: ProjectConfiguration): void;
|
|
7
7
|
export declare function addTailwindConfigPathToProject(tree: Tree, options: NormalizedGeneratorOptions, project: ProjectConfiguration): void;
|