@analogjs/platform 0.2.0-beta.24 → 0.2.0-beta.26
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 +4 -5
- package/src/lib/content-plugin.js +26 -8
- package/src/lib/nx-plugin/generators.json +4 -3
- package/src/lib/nx-plugin/package.json +2 -2
- package/src/lib/nx-plugin/src/generators/app/files/trpc/src/server/trpc/routers/notes.ts__template__ +2 -2
- package/src/lib/nx-plugin/src/generators/app/files/welcome-components/css/src/app/pages/analog-welcome.component.ts__template__ +134 -223
- package/src/lib/nx-plugin/src/generators/app/files/welcome-components/css-trpc/src/app/pages/analog-welcome.component.ts__template__ +235 -382
- package/src/lib/nx-plugin/src/generators/app/files/welcome-components/tailwind/src/app/pages/analog-welcome.component.ts__template__ +9 -91
- package/src/lib/nx-plugin/src/generators/app/files/welcome-components/tailwind-trpc/src/app/pages/analog-welcome.component.ts__template__ +12 -95
- package/src/lib/nx-plugin/src/generators/app/generator.js +2 -0
- package/src/lib/nx-plugin/src/generators/app/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js +0 -10
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.d.ts +3 -0
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js +17 -0
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js.map +1 -0
- package/src/lib/nx-plugin/src/generators/app/versions/nx_16_X/versions.d.ts +5 -5
- package/src/lib/nx-plugin/src/generators/app/versions/nx_16_X/versions.js +5 -5
- package/src/lib/options.d.ts +3 -1
|
@@ -1,104 +1,21 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
|
-
import { AsyncPipe, DatePipe, NgFor, NgIf } from '@angular/common';
|
|
3
2
|
|
|
4
3
|
@Component({
|
|
5
4
|
selector: '<%= fileName %>-analog-welcome',
|
|
6
5
|
standalone: true,
|
|
7
|
-
imports: [AsyncPipe, NgFor, DatePipe, NgIf],
|
|
8
6
|
host: {
|
|
9
7
|
class:
|
|
10
8
|
'flex min-h-screen flex-col text-zinc-900 bg-zinc-50 px-4 pt-8 pb-32',
|
|
11
9
|
},
|
|
12
10
|
template: `
|
|
13
11
|
<main class="flex-1 mx-auto">
|
|
14
|
-
|
|
12
|
+
<section class="space-y-6 pb-8 pt-6 md:pb-12 md:pt-10 lg:py-32">
|
|
15
13
|
<div
|
|
16
|
-
class="
|
|
14
|
+
class="flex max-w-[64rem] flex-col items-center gap-4 text-center"
|
|
17
15
|
>
|
|
18
|
-
|
|
19
|
-
class="mx-auto h-16 w-16 -mb-4"
|
|
20
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
22
|
-
width="362.26562"
|
|
23
|
-
zoomAndPan="magnify"
|
|
24
|
-
viewBox="0 0 271.62214 192.65233"
|
|
25
|
-
height="256.86978"
|
|
26
|
-
preserveAspectRatio="xMidYMid meet"
|
|
27
|
-
version="1.0"
|
|
28
|
-
id="svg27"
|
|
29
|
-
>
|
|
30
|
-
<defs id="defs11">
|
|
31
|
-
<clipPath id="id1">
|
|
32
|
-
<path
|
|
33
|
-
d="M 127.29688,75.375 H 347.57031 V 267.52734 H 127.29688 Z m 0,0"
|
|
34
|
-
clip-rule="nonzero"
|
|
35
|
-
id="path2"
|
|
36
|
-
/>
|
|
37
|
-
</clipPath>
|
|
38
|
-
<clipPath id="id2">
|
|
39
|
-
<path
|
|
40
|
-
d="M 75.871094,104 H 263.33594 V 268.03125 H 75.871094 Z m 0,0"
|
|
41
|
-
clip-rule="nonzero"
|
|
42
|
-
id="path5"
|
|
43
|
-
/>
|
|
44
|
-
</clipPath>
|
|
45
|
-
<clipPath id="id3">
|
|
46
|
-
<path
|
|
47
|
-
d="m 105,169.02344 h 210 v 87.875 H 105 Z m 0,0"
|
|
48
|
-
clip-rule="nonzero"
|
|
49
|
-
id="path8"
|
|
50
|
-
/>
|
|
51
|
-
</clipPath>
|
|
52
|
-
</defs>
|
|
53
|
-
<g
|
|
54
|
-
clip-path="url(#id1)"
|
|
55
|
-
id="g15"
|
|
56
|
-
transform="translate(-75.931091,-75.378906)"
|
|
57
|
-
>
|
|
58
|
-
<path
|
|
59
|
-
fill="#c30f2e"
|
|
60
|
-
d="M 237.43359,75.378906 347.57031,267.52734 H 127.29688 L 237.43359,75.378906"
|
|
61
|
-
fill-opacity="1"
|
|
62
|
-
fill-rule="nonzero"
|
|
63
|
-
id="path13"
|
|
64
|
-
/>
|
|
65
|
-
</g>
|
|
66
|
-
<g
|
|
67
|
-
clip-path="url(#id2)"
|
|
68
|
-
id="g19"
|
|
69
|
-
transform="translate(-75.931091,-75.378906)"
|
|
70
|
-
>
|
|
71
|
-
<path
|
|
72
|
-
fill="#dd0330"
|
|
73
|
-
d="m 169.60156,104 93.73047,164.03125 H 75.871094 L 169.60156,104"
|
|
74
|
-
fill-opacity="1"
|
|
75
|
-
fill-rule="nonzero"
|
|
76
|
-
id="path17"
|
|
77
|
-
/>
|
|
78
|
-
</g>
|
|
79
|
-
<path
|
|
80
|
-
fill="#ffffff"
|
|
81
|
-
d="M 252.96344,143.58984 H 19.221253 v -2.56641 H 252.96344 v 2.56641"
|
|
82
|
-
fill-opacity="1"
|
|
83
|
-
fill-rule="nonzero"
|
|
84
|
-
id="path21"
|
|
85
|
-
/>
|
|
86
|
-
<g
|
|
87
|
-
clip-path="url(#id3)"
|
|
88
|
-
id="g25"
|
|
89
|
-
transform="translate(-75.931091,-75.378906)"
|
|
90
|
-
>
|
|
91
|
-
<path
|
|
92
|
-
fill="#ffffff"
|
|
93
|
-
d="m 292.78516,256.51172 c -0.91407,0 -1.77344,-0.37891 -2.49219,-1.09766 -4.29297,-4.3125 -4.48047,-21.84765 -4.27344,-48.10937 0.11719,-14.35157 0.27344,-34.00782 -2.01562,-35.5586 -2.23438,0.92578 -2.45704,17.16407 -2.60157,27.91407 -0.17187,12.50781 -0.34765,25.44921 -2.3789,32.03906 -0.60547,1.95312 -1.38672,3.74219 -2.95703,3.59765 -2.21485,-0.19531 -2.92969,-3.6914 -4.58204,-17.48828 -0.6875,-5.73047 -1.39843,-11.65234 -2.23046,-13.94531 -0.10938,-0.28906 -0.20313,-0.51953 -0.28516,-0.69922 -0.88672,2.00391 -1.91016,7.51172 -2.62109,11.33594 -0.98438,5.28125 -1.91407,10.26953 -3.07813,12.44531 -0.89844,1.67188 -2.32422,3.85156 -4.31641,3.42969 -2.71484,-0.57031 -3.52734,-6.04297 -3.76953,-9.25391 0,-27.01562 -3.53515,-30.16015 -4.24218,-30.51562 l -0.11329,0.0859 -0.17187,-0.0391 c -2.52344,1.10157 -2.66016,9.86328 -2.78906,18.33594 -0.10157,6.21484 -0.21094,13.25781 -1.11719,19.84766 -1.17578,8.54297 -2.59766,10.1914 -4.36719,10.08984 -4.07422,-0.27734 -4.1914,-14.30859 -4.1914,-15.90625 0,-0.5 0.0117,-1.08984 0.0273,-1.74219 0.0781,-3.26562 0.21875,-9.33984 -1.78906,-11.2539 -0.26563,-0.25391 -0.64063,-0.54688 -0.9336,-0.46485 -1.42968,0.35938 -2.91406,5.00391 -3.40625,6.53125 -0.15625,0.48438 -0.28125,0.88282 -0.38672,1.15625 -0.082,0.22657 -0.1875,0.54688 -0.3125,0.9336 -1.08203,3.28515 -2.3125,6.5625 -4.41406,7.37109 -0.77734,0.30078 -1.58984,0.23438 -2.35156,-0.19531 -1.01172,-0.57422 -1.83594,-1.7461 -2.60547,-3.69531 -0.42187,-1.07813 -0.78125,-2.17188 -1.14844,-3.26954 -0.44531,-1.33984 -0.90234,-2.72656 -1.46875,-4.04296 -0.44531,-1.02344 -1.55468,-1.48438 -2.96875,-1.23438 -2.9375,0.52344 -3.42968,3.49219 -3.84375,7.96094 -0.0742,0.77734 -0.14453,1.53906 -0.24218,2.25781 -0.0117,0.21094 -0.53125,6.76953 -0.86329,8.85547 -0.91796,5.71875 -2.125,7.97266 -4.1289,7.80859 -4.94531,-0.42187 -7.21485,-22.11328 -7.09375,-31.27734 0.0937,-6.99609 -1.17188,-9.55078 -1.92969,-9.95703 -0.0781,-0.0352 -0.19922,-0.10156 -0.48828,0.10156 -0.89453,0.60547 -1.69141,2.49219 -1.44531,4.47266 2.72265,21.5664 0.71484,46.26562 -4.20313,51.82812 -1.55078,1.75 -3.66015,1.72656 -5.1289,0.25 -4.29688,-4.3125 -4.47657,-21.84765 -4.27344,-48.10937 0.11719,-14.35157 0.26953,-34.00782 -2.01563,-35.5586 -2.23437,0.92578 -2.45312,17.16407 -2.60156,27.91407 -0.17187,12.50781 -0.34766,25.44921 -2.38281,32.03906 -0.60547,1.95312 -1.38672,3.74219 -2.95313,3.59765 -2.21875,-0.19531 -2.92968,-3.6914 -4.58593,-17.48828 -0.6875,-5.73047 -1.39844,-11.65234 -2.23047,-13.94531 -0.10547,-0.28906 -0.19922,-0.51953 -0.28516,-0.69922 -0.88281,2.00391 -1.90625,7.51172 -2.61719,11.33594 -0.98437,5.28125 -1.91406,10.26953 -3.08203,12.44531 -0.89844,1.67188 -2.32422,3.85156 -4.3125,3.42969 -2.71484,-0.57031 -3.52734,-6.04297 -3.76953,-9.25391 -0.004,-27.01562 -3.53516,-30.16015 -4.24219,-30.51562 l -0.11328,0.0859 -0.17578,-0.0391 c -2.51953,1.10157 -2.65625,9.86328 -2.78906,18.33594 -0.0977,6.21484 -0.20703,13.25781 -1.11328,19.84766 -1.17578,8.54297 -2.58594,10.20703 -4.36328,10.08984 -4.08204,-0.27734 -4.19922,-14.30859 -4.19922,-15.90625 0,-0.5 0.0156,-1.08984 0.0312,-1.74219 0.0781,-3.26562 0.21875,-9.33984 -1.78907,-11.2539 -0.26562,-0.25391 -0.64062,-0.54688 -0.93359,-0.46485 -1.42969,0.35938 -2.91797,5.00391 -3.40234,6.53125 -0.15625,0.48047 -0.28907,0.88282 -0.38672,1.15625 -0.0859,0.22266 -0.19141,0.54297 -0.31641,0.92969 -1.08203,3.28516 -2.3125,6.56641 -4.41015,7.375 -0.78125,0.30078 -1.59766,0.23438 -2.35547,-0.19531 -1.01172,-0.57422 -1.83985,-1.7461 -2.60547,-3.69531 -0.42188,-1.07813 -0.78516,-2.17188 -1.14844,-3.26954 -0.44531,-1.33984 -0.90625,-2.72656 -1.47265,-4.04296 -0.44141,-1.02344 -1.55469,-1.48438 -2.96875,-1.23438 -3.38282,0.60156 -4.1836,4.79688 -4.82813,9.80469 l -0.11328,0.89062 -2.55859,-0.33984 0.12109,-0.875 c 0.55859,-4.39063 1.41016,-11.02734 6.92969,-12.00391 2.59765,-0.46093 4.86718,0.61719 5.78125,2.74219 0.61328,1.42188 1.09375,2.85938 1.55468,4.25391 0.34375,1.05078 0.69532,2.10156 1.10157,3.14062 0.71484,1.8125 1.26953,2.28125 1.47656,2.39453 1.29297,-0.40234 2.61328,-4.42187 3.05078,-5.74609 0.13672,-0.42578 0.25391,-0.77734 0.34766,-1.02734 0.0898,-0.2461 0.20703,-0.60547 0.34765,-1.03907 1.16407,-3.64062 2.625,-7.58203 5.21875,-8.23828 0.79297,-0.20312 2.01953,-0.17578 3.35156,1.09766 2.82813,2.69922 2.67969,9 2.58204,13.17187 -0.0156,0.625 -0.0312,1.19532 -0.0312,1.67969 0,6.65625 0.98828,11.30859 1.74218,12.90625 0.39063,-0.81641 1.0586,-2.79297 1.69532,-7.4375 0.88281,-6.4375 0.99609,-13.39844 1.08984,-19.53906 0.17187,-10.86719 0.29297,-18.7461 4.22656,-20.59766 0.58594,-0.35937 1.5586,-0.55469 2.58594,-0.0352 3.80469,1.91406 5.65234,12.61328 5.65234,32.70703 0.23828,3.10547 1.07422,6.375 1.76172,6.84375 0.004,-0.0703 0.5625,-0.41407 1.48047,-2.13282 0.98047,-1.82421 1.95703,-7.07421 2.81641,-11.70312 1.90234,-10.20313 2.76562,-13.78516 5.01562,-13.97266 1.71485,-0.16797 2.50781,2.01172 2.83985,2.92969 0.9375,2.57031 1.63281,8.37109 2.36718,14.51563 0.57422,4.76562 1.39063,11.57031 2.22266,14.32421 0.0898,-0.24218 0.19141,-0.53125 0.30078,-0.88671 1.92578,-6.23829 2.10156,-18.98438 2.26953,-31.31641 0.23438,-17.12891 0.53516,-27.74219 3.66016,-29.95703 0.69531,-0.49219 1.54297,-0.61328 2.37109,-0.33594 3.66016,1.21484 3.94141,11.94531 3.73438,37.99609 -0.14844,18.89063 -0.33203,42.40235 3.52734,46.27735 0.33594,0.33984 0.57422,0.33984 0.66016,0.33984 0.17968,0 0.4375,-0.17187 0.71093,-0.48047 3.90625,-4.41797 6.37891,-27.61718 3.57813,-49.80468 -0.34766,-2.76172 0.71875,-5.66407 2.53906,-6.91407 1.00391,-0.6914 2.16016,-0.78125 3.16016,-0.24609 2.27734,1.21094 3.38281,5.33203 3.29297,12.25391 -0.16016,12.08593 2.74218,26.23046 4.63672,28.48828 0.30078,-0.5 0.89453,-1.8711 1.46484,-5.46094 0.32031,-1.98438 0.84766,-8.65234 0.85547,-8.71875 0.0937,-0.75391 0.16406,-1.48438 0.23047,-2.22656 0.39062,-4.16407 0.87109,-9.34375 5.95703,-10.2461 2.59375,-0.46093 4.86328,0.61328 5.78125,2.74219 0.61328,1.42188 1.08984,2.85938 1.55078,4.25391 0.35156,1.05078 0.70312,2.10156 1.10937,3.14062 0.71094,1.8125 1.26954,2.28125 1.47266,2.39453 1.29297,-0.40234 2.61719,-4.42187 3.05078,-5.74218 0.14063,-0.42579 0.25781,-0.78125 0.34766,-1.03125 0.0937,-0.24219 0.20703,-0.60547 0.34375,-1.03907 1.16797,-3.64062 2.6289,-7.58203 5.22656,-8.23828 0.78516,-0.20312 2.01563,-0.17578 3.34766,1.09766 2.82812,2.69922 2.67968,9 2.58593,13.17187 -0.0195,0.625 -0.0352,1.19532 -0.0352,1.67969 0,6.65625 0.98828,11.30859 1.74219,12.90625 0.38671,-0.81641 1.05468,-2.79297 1.69921,-7.4375 0.88282,-6.4375 0.98829,-13.39844 1.08985,-19.53906 0.16797,-10.86719 0.28906,-18.7461 4.22265,-20.59766 0.58594,-0.35937 1.5586,-0.55469 2.58985,-0.0352 3.80078,1.91406 5.65234,12.61328 5.65234,32.70703 0.23828,3.10547 1.07422,6.375 1.75781,6.84375 0.008,-0.0703 0.5586,-0.41407 1.48438,-2.13282 0.98047,-1.82421 1.95312,-7.07421 2.81641,-11.70312 1.89453,-10.20313 2.76171,-13.78516 5.01171,-13.97266 1.71875,-0.16797 2.51172,2.01172 2.84375,2.92969 0.9336,2.57031 1.62891,8.37109 2.3711,14.51563 0.5664,4.76562 1.38281,11.57031 2.21875,14.32421 0.0859,-0.24218 0.1875,-0.53125 0.29687,-0.88671 1.92578,-6.23829 2.09766,-18.98438 2.26953,-31.31641 0.23047,-17.12891 0.53516,-27.74219 3.66016,-29.95703 0.69922,-0.49219 1.54297,-0.61328 2.37109,-0.33594 3.66407,1.21484 3.94532,11.94531 3.73438,37.99609 -0.14844,18.89063 -0.33203,42.40235 3.52344,46.27735 0.34375,0.33984 0.57812,0.33984 0.66797,0.33984 0.17578,0 0.43359,-0.17187 0.70312,-0.48047 3.91406,-4.41797 6.38281,-27.61718 3.58203,-49.80468 -0.36328,-2.89063 0.45703,-5.80469 1.95313,-6.92579 0.7539,-0.57031 1.67187,-0.6875 2.51562,-0.33203 2.17969,0.92969 3.65625,4.91407 4.51563,12.1875 0.35937,3.04688 0.67968,6.33985 0.98828,9.58985 0.67969,7.09375 1.60156,16.65234 2.84765,18.7539 0.38282,-0.48828 1.16407,-1.80859 2.32422,-5.34765 l 2.44922,0.80078 c -1.80078,5.47265 -3.21094,7.53515 -5.04687,7.32422 -2.85547,-0.31641 -3.67969,-6.08594 -5.13672,-21.28516 -0.3086,-3.23437 -0.625,-6.50781 -0.98438,-9.53906 -1.09375,-9.27735 -2.95312,-10.11719 -2.97265,-10.125 -0.36328,0.18359 -1.20703,2.11328 -0.89453,4.57422 2.71484,21.5664 0.71484,46.26953 -4.20704,51.82812 -0.79296,0.89453 -1.68359,1.34766 -2.63671,1.34766"
|
|
94
|
-
fill-opacity="1"
|
|
95
|
-
fill-rule="nonzero"
|
|
96
|
-
id="path23"
|
|
97
|
-
/>
|
|
98
|
-
</g>
|
|
99
|
-
</svg>
|
|
16
|
+
<img class="h-12 w-12" src="https://analogjs.org/img/logos/analog-logo.svg" alt="AnalogJs logo. Two red triangles and a white analog wave in front"/>
|
|
100
17
|
<a
|
|
101
|
-
class="rounded-2xl bg-zinc-200 px-4 py-1.5 text-sm font-medium"
|
|
18
|
+
class="rounded-2xl bg-zinc-200 px-4 py-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
102
19
|
target="_blank"
|
|
103
20
|
href="https://twitter.com/analogjs"
|
|
104
21
|
>Follow along on Twitter</a
|
|
@@ -106,7 +23,8 @@ import { AsyncPipe, DatePipe, NgFor, NgIf } from '@angular/common';
|
|
|
106
23
|
<h1
|
|
107
24
|
class="font-heading font-medium text-3xl sm:text-5xl md:text-6xl lg:text-7xl"
|
|
108
25
|
>
|
|
109
|
-
<span class="text-[#DD0031]">Analog.</span> The fullstack Angular
|
|
26
|
+
<span class="text-[#DD0031]">Analog.</span> The fullstack Angular
|
|
27
|
+
meta-framework
|
|
110
28
|
</h1>
|
|
111
29
|
<p
|
|
112
30
|
class="max-w-[42rem] leading-normal text-muted-foreground sm:text-xl sm:leading-8"
|
|
@@ -122,9 +40,9 @@ import { AsyncPipe, DatePipe, NgFor, NgIf } from '@angular/common';
|
|
|
122
40
|
><a
|
|
123
41
|
target="_blank"
|
|
124
42
|
rel="noreferrer"
|
|
125
|
-
class="inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:bg-zinc-
|
|
43
|
+
class="inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:bg-zinc-100 hover:text-zinc-950 h-11 px-8 rounded-md"
|
|
126
44
|
href="https://github.com/analogjs/analog"
|
|
127
|
-
>GitHub</a
|
|
45
|
+
>Star on GitHub</a
|
|
128
46
|
>
|
|
129
47
|
</div>
|
|
130
48
|
</div>
|
|
@@ -141,7 +59,7 @@ import { AsyncPipe, DatePipe, NgFor, NgIf } from '@angular/common';
|
|
|
141
59
|
</p>
|
|
142
60
|
<button
|
|
143
61
|
(click)="increment()"
|
|
144
|
-
|
|
62
|
+
class="inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:bg-zinc-100 hover:text-zinc-950 h-11 px-8 rounded-md"
|
|
145
63
|
>
|
|
146
64
|
Count: <span class="ml-1 font-mono">{{ count }}</span>
|
|
147
65
|
</button>
|
|
@@ -18,92 +18,11 @@ import { Note } from '../../note';
|
|
|
18
18
|
<main class="flex-1 mx-auto">
|
|
19
19
|
<section class="space-y-6 pb-8 pt-6 md:pb-12 md:pt-10 lg:py-32">
|
|
20
20
|
<div
|
|
21
|
-
class="
|
|
21
|
+
class="flex max-w-[64rem] flex-col items-center gap-4 text-center"
|
|
22
22
|
>
|
|
23
|
-
<svg
|
|
24
|
-
class="mx-auto h-16 w-16 -mb-4"
|
|
25
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
27
|
-
width="362.26562"
|
|
28
|
-
zoomAndPan="magnify"
|
|
29
|
-
viewBox="0 0 271.62214 192.65233"
|
|
30
|
-
height="256.86978"
|
|
31
|
-
preserveAspectRatio="xMidYMid meet"
|
|
32
|
-
version="1.0"
|
|
33
|
-
id="svg27"
|
|
34
|
-
>
|
|
35
|
-
<defs id="defs11">
|
|
36
|
-
<clipPath id="id1">
|
|
37
|
-
<path
|
|
38
|
-
d="M 127.29688,75.375 H 347.57031 V 267.52734 H 127.29688 Z m 0,0"
|
|
39
|
-
clip-rule="nonzero"
|
|
40
|
-
id="path2"
|
|
41
|
-
/>
|
|
42
|
-
</clipPath>
|
|
43
|
-
<clipPath id="id2">
|
|
44
|
-
<path
|
|
45
|
-
d="M 75.871094,104 H 263.33594 V 268.03125 H 75.871094 Z m 0,0"
|
|
46
|
-
clip-rule="nonzero"
|
|
47
|
-
id="path5"
|
|
48
|
-
/>
|
|
49
|
-
</clipPath>
|
|
50
|
-
<clipPath id="id3">
|
|
51
|
-
<path
|
|
52
|
-
d="m 105,169.02344 h 210 v 87.875 H 105 Z m 0,0"
|
|
53
|
-
clip-rule="nonzero"
|
|
54
|
-
id="path8"
|
|
55
|
-
/>
|
|
56
|
-
</clipPath>
|
|
57
|
-
</defs>
|
|
58
|
-
<g
|
|
59
|
-
clip-path="url(#id1)"
|
|
60
|
-
id="g15"
|
|
61
|
-
transform="translate(-75.931091,-75.378906)"
|
|
62
|
-
>
|
|
63
|
-
<path
|
|
64
|
-
fill="#c30f2e"
|
|
65
|
-
d="M 237.43359,75.378906 347.57031,267.52734 H 127.29688 L 237.43359,75.378906"
|
|
66
|
-
fill-opacity="1"
|
|
67
|
-
fill-rule="nonzero"
|
|
68
|
-
id="path13"
|
|
69
|
-
/>
|
|
70
|
-
</g>
|
|
71
|
-
<g
|
|
72
|
-
clip-path="url(#id2)"
|
|
73
|
-
id="g19"
|
|
74
|
-
transform="translate(-75.931091,-75.378906)"
|
|
75
|
-
>
|
|
76
|
-
<path
|
|
77
|
-
fill="#dd0330"
|
|
78
|
-
d="m 169.60156,104 93.73047,164.03125 H 75.871094 L 169.60156,104"
|
|
79
|
-
fill-opacity="1"
|
|
80
|
-
fill-rule="nonzero"
|
|
81
|
-
id="path17"
|
|
82
|
-
/>
|
|
83
|
-
</g>
|
|
84
|
-
<path
|
|
85
|
-
fill="#ffffff"
|
|
86
|
-
d="M 252.96344,143.58984 H 19.221253 v -2.56641 H 252.96344 v 2.56641"
|
|
87
|
-
fill-opacity="1"
|
|
88
|
-
fill-rule="nonzero"
|
|
89
|
-
id="path21"
|
|
90
|
-
/>
|
|
91
|
-
<g
|
|
92
|
-
clip-path="url(#id3)"
|
|
93
|
-
id="g25"
|
|
94
|
-
transform="translate(-75.931091,-75.378906)"
|
|
95
|
-
>
|
|
96
|
-
<path
|
|
97
|
-
fill="#ffffff"
|
|
98
|
-
d="m 292.78516,256.51172 c -0.91407,0 -1.77344,-0.37891 -2.49219,-1.09766 -4.29297,-4.3125 -4.48047,-21.84765 -4.27344,-48.10937 0.11719,-14.35157 0.27344,-34.00782 -2.01562,-35.5586 -2.23438,0.92578 -2.45704,17.16407 -2.60157,27.91407 -0.17187,12.50781 -0.34765,25.44921 -2.3789,32.03906 -0.60547,1.95312 -1.38672,3.74219 -2.95703,3.59765 -2.21485,-0.19531 -2.92969,-3.6914 -4.58204,-17.48828 -0.6875,-5.73047 -1.39843,-11.65234 -2.23046,-13.94531 -0.10938,-0.28906 -0.20313,-0.51953 -0.28516,-0.69922 -0.88672,2.00391 -1.91016,7.51172 -2.62109,11.33594 -0.98438,5.28125 -1.91407,10.26953 -3.07813,12.44531 -0.89844,1.67188 -2.32422,3.85156 -4.31641,3.42969 -2.71484,-0.57031 -3.52734,-6.04297 -3.76953,-9.25391 0,-27.01562 -3.53515,-30.16015 -4.24218,-30.51562 l -0.11329,0.0859 -0.17187,-0.0391 c -2.52344,1.10157 -2.66016,9.86328 -2.78906,18.33594 -0.10157,6.21484 -0.21094,13.25781 -1.11719,19.84766 -1.17578,8.54297 -2.59766,10.1914 -4.36719,10.08984 -4.07422,-0.27734 -4.1914,-14.30859 -4.1914,-15.90625 0,-0.5 0.0117,-1.08984 0.0273,-1.74219 0.0781,-3.26562 0.21875,-9.33984 -1.78906,-11.2539 -0.26563,-0.25391 -0.64063,-0.54688 -0.9336,-0.46485 -1.42968,0.35938 -2.91406,5.00391 -3.40625,6.53125 -0.15625,0.48438 -0.28125,0.88282 -0.38672,1.15625 -0.082,0.22657 -0.1875,0.54688 -0.3125,0.9336 -1.08203,3.28515 -2.3125,6.5625 -4.41406,7.37109 -0.77734,0.30078 -1.58984,0.23438 -2.35156,-0.19531 -1.01172,-0.57422 -1.83594,-1.7461 -2.60547,-3.69531 -0.42187,-1.07813 -0.78125,-2.17188 -1.14844,-3.26954 -0.44531,-1.33984 -0.90234,-2.72656 -1.46875,-4.04296 -0.44531,-1.02344 -1.55468,-1.48438 -2.96875,-1.23438 -2.9375,0.52344 -3.42968,3.49219 -3.84375,7.96094 -0.0742,0.77734 -0.14453,1.53906 -0.24218,2.25781 -0.0117,0.21094 -0.53125,6.76953 -0.86329,8.85547 -0.91796,5.71875 -2.125,7.97266 -4.1289,7.80859 -4.94531,-0.42187 -7.21485,-22.11328 -7.09375,-31.27734 0.0937,-6.99609 -1.17188,-9.55078 -1.92969,-9.95703 -0.0781,-0.0352 -0.19922,-0.10156 -0.48828,0.10156 -0.89453,0.60547 -1.69141,2.49219 -1.44531,4.47266 2.72265,21.5664 0.71484,46.26562 -4.20313,51.82812 -1.55078,1.75 -3.66015,1.72656 -5.1289,0.25 -4.29688,-4.3125 -4.47657,-21.84765 -4.27344,-48.10937 0.11719,-14.35157 0.26953,-34.00782 -2.01563,-35.5586 -2.23437,0.92578 -2.45312,17.16407 -2.60156,27.91407 -0.17187,12.50781 -0.34766,25.44921 -2.38281,32.03906 -0.60547,1.95312 -1.38672,3.74219 -2.95313,3.59765 -2.21875,-0.19531 -2.92968,-3.6914 -4.58593,-17.48828 -0.6875,-5.73047 -1.39844,-11.65234 -2.23047,-13.94531 -0.10547,-0.28906 -0.19922,-0.51953 -0.28516,-0.69922 -0.88281,2.00391 -1.90625,7.51172 -2.61719,11.33594 -0.98437,5.28125 -1.91406,10.26953 -3.08203,12.44531 -0.89844,1.67188 -2.32422,3.85156 -4.3125,3.42969 -2.71484,-0.57031 -3.52734,-6.04297 -3.76953,-9.25391 -0.004,-27.01562 -3.53516,-30.16015 -4.24219,-30.51562 l -0.11328,0.0859 -0.17578,-0.0391 c -2.51953,1.10157 -2.65625,9.86328 -2.78906,18.33594 -0.0977,6.21484 -0.20703,13.25781 -1.11328,19.84766 -1.17578,8.54297 -2.58594,10.20703 -4.36328,10.08984 -4.08204,-0.27734 -4.19922,-14.30859 -4.19922,-15.90625 0,-0.5 0.0156,-1.08984 0.0312,-1.74219 0.0781,-3.26562 0.21875,-9.33984 -1.78907,-11.2539 -0.26562,-0.25391 -0.64062,-0.54688 -0.93359,-0.46485 -1.42969,0.35938 -2.91797,5.00391 -3.40234,6.53125 -0.15625,0.48047 -0.28907,0.88282 -0.38672,1.15625 -0.0859,0.22266 -0.19141,0.54297 -0.31641,0.92969 -1.08203,3.28516 -2.3125,6.56641 -4.41015,7.375 -0.78125,0.30078 -1.59766,0.23438 -2.35547,-0.19531 -1.01172,-0.57422 -1.83985,-1.7461 -2.60547,-3.69531 -0.42188,-1.07813 -0.78516,-2.17188 -1.14844,-3.26954 -0.44531,-1.33984 -0.90625,-2.72656 -1.47265,-4.04296 -0.44141,-1.02344 -1.55469,-1.48438 -2.96875,-1.23438 -3.38282,0.60156 -4.1836,4.79688 -4.82813,9.80469 l -0.11328,0.89062 -2.55859,-0.33984 0.12109,-0.875 c 0.55859,-4.39063 1.41016,-11.02734 6.92969,-12.00391 2.59765,-0.46093 4.86718,0.61719 5.78125,2.74219 0.61328,1.42188 1.09375,2.85938 1.55468,4.25391 0.34375,1.05078 0.69532,2.10156 1.10157,3.14062 0.71484,1.8125 1.26953,2.28125 1.47656,2.39453 1.29297,-0.40234 2.61328,-4.42187 3.05078,-5.74609 0.13672,-0.42578 0.25391,-0.77734 0.34766,-1.02734 0.0898,-0.2461 0.20703,-0.60547 0.34765,-1.03907 1.16407,-3.64062 2.625,-7.58203 5.21875,-8.23828 0.79297,-0.20312 2.01953,-0.17578 3.35156,1.09766 2.82813,2.69922 2.67969,9 2.58204,13.17187 -0.0156,0.625 -0.0312,1.19532 -0.0312,1.67969 0,6.65625 0.98828,11.30859 1.74218,12.90625 0.39063,-0.81641 1.0586,-2.79297 1.69532,-7.4375 0.88281,-6.4375 0.99609,-13.39844 1.08984,-19.53906 0.17187,-10.86719 0.29297,-18.7461 4.22656,-20.59766 0.58594,-0.35937 1.5586,-0.55469 2.58594,-0.0352 3.80469,1.91406 5.65234,12.61328 5.65234,32.70703 0.23828,3.10547 1.07422,6.375 1.76172,6.84375 0.004,-0.0703 0.5625,-0.41407 1.48047,-2.13282 0.98047,-1.82421 1.95703,-7.07421 2.81641,-11.70312 1.90234,-10.20313 2.76562,-13.78516 5.01562,-13.97266 1.71485,-0.16797 2.50781,2.01172 2.83985,2.92969 0.9375,2.57031 1.63281,8.37109 2.36718,14.51563 0.57422,4.76562 1.39063,11.57031 2.22266,14.32421 0.0898,-0.24218 0.19141,-0.53125 0.30078,-0.88671 1.92578,-6.23829 2.10156,-18.98438 2.26953,-31.31641 0.23438,-17.12891 0.53516,-27.74219 3.66016,-29.95703 0.69531,-0.49219 1.54297,-0.61328 2.37109,-0.33594 3.66016,1.21484 3.94141,11.94531 3.73438,37.99609 -0.14844,18.89063 -0.33203,42.40235 3.52734,46.27735 0.33594,0.33984 0.57422,0.33984 0.66016,0.33984 0.17968,0 0.4375,-0.17187 0.71093,-0.48047 3.90625,-4.41797 6.37891,-27.61718 3.57813,-49.80468 -0.34766,-2.76172 0.71875,-5.66407 2.53906,-6.91407 1.00391,-0.6914 2.16016,-0.78125 3.16016,-0.24609 2.27734,1.21094 3.38281,5.33203 3.29297,12.25391 -0.16016,12.08593 2.74218,26.23046 4.63672,28.48828 0.30078,-0.5 0.89453,-1.8711 1.46484,-5.46094 0.32031,-1.98438 0.84766,-8.65234 0.85547,-8.71875 0.0937,-0.75391 0.16406,-1.48438 0.23047,-2.22656 0.39062,-4.16407 0.87109,-9.34375 5.95703,-10.2461 2.59375,-0.46093 4.86328,0.61328 5.78125,2.74219 0.61328,1.42188 1.08984,2.85938 1.55078,4.25391 0.35156,1.05078 0.70312,2.10156 1.10937,3.14062 0.71094,1.8125 1.26954,2.28125 1.47266,2.39453 1.29297,-0.40234 2.61719,-4.42187 3.05078,-5.74218 0.14063,-0.42579 0.25781,-0.78125 0.34766,-1.03125 0.0937,-0.24219 0.20703,-0.60547 0.34375,-1.03907 1.16797,-3.64062 2.6289,-7.58203 5.22656,-8.23828 0.78516,-0.20312 2.01563,-0.17578 3.34766,1.09766 2.82812,2.69922 2.67968,9 2.58593,13.17187 -0.0195,0.625 -0.0352,1.19532 -0.0352,1.67969 0,6.65625 0.98828,11.30859 1.74219,12.90625 0.38671,-0.81641 1.05468,-2.79297 1.69921,-7.4375 0.88282,-6.4375 0.98829,-13.39844 1.08985,-19.53906 0.16797,-10.86719 0.28906,-18.7461 4.22265,-20.59766 0.58594,-0.35937 1.5586,-0.55469 2.58985,-0.0352 3.80078,1.91406 5.65234,12.61328 5.65234,32.70703 0.23828,3.10547 1.07422,6.375 1.75781,6.84375 0.008,-0.0703 0.5586,-0.41407 1.48438,-2.13282 0.98047,-1.82421 1.95312,-7.07421 2.81641,-11.70312 1.89453,-10.20313 2.76171,-13.78516 5.01171,-13.97266 1.71875,-0.16797 2.51172,2.01172 2.84375,2.92969 0.9336,2.57031 1.62891,8.37109 2.3711,14.51563 0.5664,4.76562 1.38281,11.57031 2.21875,14.32421 0.0859,-0.24218 0.1875,-0.53125 0.29687,-0.88671 1.92578,-6.23829 2.09766,-18.98438 2.26953,-31.31641 0.23047,-17.12891 0.53516,-27.74219 3.66016,-29.95703 0.69922,-0.49219 1.54297,-0.61328 2.37109,-0.33594 3.66407,1.21484 3.94532,11.94531 3.73438,37.99609 -0.14844,18.89063 -0.33203,42.40235 3.52344,46.27735 0.34375,0.33984 0.57812,0.33984 0.66797,0.33984 0.17578,0 0.43359,-0.17187 0.70312,-0.48047 3.91406,-4.41797 6.38281,-27.61718 3.58203,-49.80468 -0.36328,-2.89063 0.45703,-5.80469 1.95313,-6.92579 0.7539,-0.57031 1.67187,-0.6875 2.51562,-0.33203 2.17969,0.92969 3.65625,4.91407 4.51563,12.1875 0.35937,3.04688 0.67968,6.33985 0.98828,9.58985 0.67969,7.09375 1.60156,16.65234 2.84765,18.7539 0.38282,-0.48828 1.16407,-1.80859 2.32422,-5.34765 l 2.44922,0.80078 c -1.80078,5.47265 -3.21094,7.53515 -5.04687,7.32422 -2.85547,-0.31641 -3.67969,-6.08594 -5.13672,-21.28516 -0.3086,-3.23437 -0.625,-6.50781 -0.98438,-9.53906 -1.09375,-9.27735 -2.95312,-10.11719 -2.97265,-10.125 -0.36328,0.18359 -1.20703,2.11328 -0.89453,4.57422 2.71484,21.5664 0.71484,46.26953 -4.20704,51.82812 -0.79296,0.89453 -1.68359,1.34766 -2.63671,1.34766"
|
|
99
|
-
fill-opacity="1"
|
|
100
|
-
fill-rule="nonzero"
|
|
101
|
-
id="path23"
|
|
102
|
-
/>
|
|
103
|
-
</g>
|
|
104
|
-
</svg>
|
|
23
|
+
<img class="h-12 w-12" src="https://analogjs.org/img/logos/analog-logo.svg" alt="AnalogJs logo. Two red triangles and a white analog wave in front"/>
|
|
105
24
|
<a
|
|
106
|
-
class="rounded-2xl bg-zinc-200 px-4 py-1.5 text-sm font-medium"
|
|
25
|
+
class="rounded-2xl bg-zinc-200 px-4 py-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
107
26
|
target="_blank"
|
|
108
27
|
href="https://twitter.com/analogjs"
|
|
109
28
|
>Follow along on Twitter</a
|
|
@@ -128,14 +47,14 @@ import { Note } from '../../note';
|
|
|
128
47
|
><a
|
|
129
48
|
target="_blank"
|
|
130
49
|
rel="noreferrer"
|
|
131
|
-
class="inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:bg-zinc-
|
|
50
|
+
class="inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:bg-zinc-100 hover:text-zinc-950 h-11 px-8 rounded-md"
|
|
132
51
|
href="https://github.com/analogjs/analog"
|
|
133
|
-
>GitHub</a
|
|
52
|
+
>Star on GitHub</a
|
|
134
53
|
>
|
|
135
54
|
</div>
|
|
136
55
|
</div>
|
|
137
56
|
</section>
|
|
138
|
-
<section id="trpc-demo" class="
|
|
57
|
+
<section id="trpc-demo" class="py-8 md:py-12 lg:py-24">
|
|
139
58
|
<div
|
|
140
59
|
class="mx-auto flex max-w-[58rem] flex-col items-center justify-center gap-4 text-center"
|
|
141
60
|
>
|
|
@@ -143,7 +62,7 @@ import { Note } from '../../note';
|
|
|
143
62
|
Leave a note
|
|
144
63
|
</h2>
|
|
145
64
|
<p
|
|
146
|
-
class="max-w-[85%] leading-normal
|
|
65
|
+
class="max-w-[85%] leading-normal sm:text-lg sm:leading-7"
|
|
147
66
|
>
|
|
148
67
|
This is an example of how to you can use tRPC to superpower you
|
|
149
68
|
client server interaction.
|
|
@@ -158,28 +77,26 @@ import { Note } from '../../note';
|
|
|
158
77
|
<input
|
|
159
78
|
required
|
|
160
79
|
autocomplete="off"
|
|
161
|
-
data-testid="newNoteInput"
|
|
162
80
|
name="newNote"
|
|
163
81
|
[(ngModel)]="newNote"
|
|
164
|
-
class="
|
|
82
|
+
class="w-full inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:text-zinc-950 h-11 px-2 rounded-md"
|
|
165
83
|
/>
|
|
166
84
|
<button
|
|
167
|
-
|
|
168
|
-
class="ml-2 inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:bg-zinc-50 hover:text-zinc-950 px-8 h-10 rounded-md"
|
|
85
|
+
class="ml-2 inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background border border-input hover:bg-zinc-100 hover:text-zinc-950 h-11 px-8 rounded-md"
|
|
169
86
|
>
|
|
170
87
|
+
|
|
171
88
|
</button>
|
|
172
89
|
</form>
|
|
173
90
|
<div class="mt-4" *ngIf="notes$ | async as notes; else loading">
|
|
174
91
|
<div
|
|
175
|
-
class="note mb-4 p-4 font-normal border border-
|
|
92
|
+
class="note mb-4 p-4 font-normal border border-input rounded-md"
|
|
176
93
|
*ngFor="let note of notes; trackBy: noteTrackBy; let i = index"
|
|
177
94
|
>
|
|
178
95
|
<div class="flex items-center justify-between">
|
|
179
96
|
<p class="text-sm text-zinc-400">{{ note.createdAt | date }}</p>
|
|
180
97
|
<button
|
|
181
98
|
[attr.data-testid]="'removeNoteAtIndexBtn' + i"
|
|
182
|
-
class="text-xs
|
|
99
|
+
class="text-xs inline-flex items-center justify-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background hover:bg-zinc-100 hover:text-zinc-950 h-6 w-6 rounded-md"
|
|
183
100
|
(click)="removeNote(note.id)"
|
|
184
101
|
>
|
|
185
102
|
x
|
|
@@ -229,7 +146,7 @@ export class AnalogWelcomeComponent {
|
|
|
229
146
|
return;
|
|
230
147
|
}
|
|
231
148
|
this._trpc.note.create
|
|
232
|
-
.mutate({
|
|
149
|
+
.mutate({ note: this.newNote })
|
|
233
150
|
.pipe(take(1))
|
|
234
151
|
.subscribe(() => this.triggerRefresh$.next());
|
|
235
152
|
this.newNote = '';
|
|
@@ -13,6 +13,7 @@ const add_tailwind_config_1 = require("./lib/add-tailwind-config");
|
|
|
13
13
|
const add_trpc_1 = require("./lib/add-trpc");
|
|
14
14
|
const add_home_page_1 = require("./lib/add-home-page");
|
|
15
15
|
const minimum_supported_versions_1 = require("./versions/minimum-supported-versions");
|
|
16
|
+
const add_eslint_1 = require("./lib/add-eslint");
|
|
16
17
|
function normalizeOptions(tree, options, nxVersion) {
|
|
17
18
|
var _a, _b;
|
|
18
19
|
const appsDir = (0, devkit_1.getWorkspaceLayout)(tree).appsDir;
|
|
@@ -65,6 +66,7 @@ function appGenerator(tree, options) {
|
|
|
65
66
|
yield (0, add_trpc_1.addTrpc)(tree, normalizedOptions.projectRoot, nxVersion, normalizedOptions);
|
|
66
67
|
}
|
|
67
68
|
(0, add_home_page_1.addHomePage)(tree, normalizedOptions);
|
|
69
|
+
yield (0, add_eslint_1.addEslint)(tree, normalizedOptions);
|
|
68
70
|
if (!normalizedOptions.skipFormat) {
|
|
69
71
|
yield (0, devkit_1.formatFiles)(tree);
|
|
70
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/generators/app/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAQoB;AAEpB,mCAAuC;AACvC,6DAAuE;AACvE,+EAAyE;AACzE,2EAAsE;AACtE,mFAA+E;AAC/E,+CAA2C;AAC3C,mEAA8D;AAC9D,6CAAyC;AACzC,uDAAkD;AAClD,sFAG+C;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/generators/app/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAQoB;AAEpB,mCAAuC;AACvC,6DAAuE;AACvE,+EAAyE;AACzE,2EAAsE;AACtE,mFAA+E;AAC/E,+CAA2C;AAC3C,mEAA8D;AAC9D,6CAAyC;AACzC,uDAAkD;AAClD,sFAG+C;AAC/C,iDAA6C;AAc7C,SAAS,gBAAgB,CACvB,I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Ac,CACf,CAAC;SACH;QAED,IAAI,iBAAiB,CAAC,OAAO,EAAE;YAC7B,MAAM,IAAA,kBAAO,EACX,IAAI,EACJ,iBAAiB,CAAC,WAAW,EAC7B,SAAS,EACT,iBAAiB,CAClB,CAAC;SACH;QAED,IAAA,2BAAW,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAErC,MAAM,IAAA,sBAAS,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEzC,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE;YACjC,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA;AAnFD,oCAmFC;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -55,16 +55,6 @@ function addAnalogProjectConfig(tree, projectRoot, projectName, parsedTags, name
|
|
|
55
55
|
browserTarget: `${projectName}:build`,
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
|
-
lint: {
|
|
59
|
-
executor: `${nxPackageNamespace}/linter:eslint`,
|
|
60
|
-
outputs: ['{options.outputFile}'],
|
|
61
|
-
options: {
|
|
62
|
-
lintFilePatterns: [
|
|
63
|
-
`${appsDir}/${projectName}/**/*.ts`,
|
|
64
|
-
`${appsDir}/${projectName}/**/*.html`,
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
58
|
test: {
|
|
69
59
|
executor: `${nxPackageNamespace}/vite:test`,
|
|
70
60
|
outputs: [`${appsDir}/${projectName}/coverage`],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-analog-project-config.js","sourceRoot":"","sources":["../../../../../../../../../../packages/nx-plugin/src/generators/app/lib/add-analog-project-config.ts"],"names":[],"mappings":";;;AACA,uCAAqD;AAErD,SAAgB,sBAAsB,CACpC,IAAU,EACV,WAAmB,EACnB,WAAmB,EACn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EAAE;gBACJ,QAAQ,EAAE,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"add-analog-project-config.js","sourceRoot":"","sources":["../../../../../../../../../../packages/nx-plugin/src/generators/app/lib/add-analog-project-config.ts"],"names":[],"mappings":";;;AACA,uCAAqD;AAErD,SAAgB,sBAAsB,CACpC,IAAU,EACV,WAAmB,EACnB,WAAmB,EACnB,UAAoB,EACpB,IAAY,EACZ,OAAe,EACf,kBAA0B;IAE1B,MAAM,oBAAoB,GAAyB;QACjD,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,aAAa;QAC1B,UAAU,EAAE,GAAG,WAAW,MAAM;QAChC,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,QAAQ,EAAE,GAAG,kBAAkB,aAAa;gBAC5C,OAAO,EAAE;oBACP,sBAAsB;oBACtB,QAAQ,OAAO,IAAI,WAAW,SAAS;oBACvC,QAAQ,OAAO,IAAI,WAAW,MAAM;oBACpC,QAAQ,OAAO,IAAI,WAAW,SAAS;iBACxC;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,GAAG,OAAO,IAAI,WAAW,cAAc;oBAC7C,UAAU,EAAE,GAAG,OAAO,IAAI,WAAW,iBAAiB;oBACtD,UAAU,EAAE,QAAQ,OAAO,IAAI,WAAW,SAAS;iBACpD;gBACD,oBAAoB,EAAE,YAAY;gBAClC,cAAc,EAAE;oBACd,WAAW,EAAE;wBACX,IAAI,EAAE,aAAa;qBACpB;oBACD,UAAU,EAAE;wBACV,SAAS,EAAE,KAAK;wBAChB,IAAI,EAAE,YAAY;qBACnB;iBACF;aACF;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE,GAAG,kBAAkB,kBAAkB;gBACjD,oBAAoB,EAAE,aAAa;gBACnC,OAAO,EAAE;oBACP,WAAW,EAAE,GAAG,WAAW,QAAQ;oBACnC,IAAI,EAAE,IAAI;iBACX;gBACD,cAAc,EAAE;oBACd,WAAW,EAAE;wBACX,WAAW,EAAE,GAAG,WAAW,oBAAoB;wBAC/C,GAAG,EAAE,IAAI;qBACV;oBACD,UAAU,EAAE;wBACV,WAAW,EAAE,GAAG,WAAW,mBAAmB;qBAC/C;iBACF;aACF;YACD,cAAc,EAAE;gBACd,QAAQ,EAAE,4CAA4C;gBACtD,OAAO,EAAE;oBACP,aAAa,EAAE,GAAG,WAAW,QAAQ;iBACtC;aACF;YACD,IAAI,EAAE;gBACJ,QAAQ,EAAE,GAAG,kBAAkB,YAAY;gBAC3C,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,WAAW,WAAW,CAAC;aAChD;SACF;QACD,IAAI,EAAE,UAAU;KACjB,CAAC;IAEF,IAAA,gCAAuB,EAAC,IAAI,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAC;AAC5D,CAAC;AAtED,wDAsEC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addEslint = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const linter_1 = require("@nx/linter");
|
|
6
|
+
function addEslint(tree, options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
yield (0, linter_1.lintProjectGenerator)(tree, {
|
|
9
|
+
linter: linter_1.Linter.EsLint,
|
|
10
|
+
project: options.projectName,
|
|
11
|
+
eslintFilePatterns: [`${options.projectRoot}/**/*.{ts,html}`],
|
|
12
|
+
skipFormat: true,
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
exports.addEslint = addEslint;
|
|
17
|
+
//# sourceMappingURL=add-eslint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-eslint.js","sourceRoot":"","sources":["../../../../../../../../../../packages/nx-plugin/src/generators/app/lib/add-eslint.ts"],"names":[],"mappings":";;;;AACA,uCAA0D;AAG1D,SAAsB,SAAS,CAC7B,IAAU,EACV,OAA0B;;QAE1B,MAAM,IAAA,6BAAoB,EAAC,IAAI,EAAE;YAC/B,MAAM,EAAE,eAAM,CAAC,MAAM;YACrB,OAAO,EAAE,OAAO,CAAC,WAAW;YAC5B,kBAAkB,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,iBAAiB,CAAC;YAC7D,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;IACL,CAAC;CAAA;AAVD,8BAUC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const V16_X_NX_DEVKIT = "^16.4.0";
|
|
2
2
|
export declare const V16_X_NX_ANGULAR = "^16.4.0";
|
|
3
|
-
export declare const V16_X_ANALOG_JS_CONTENT = "^0.2.0-beta.
|
|
4
|
-
export declare const V16_X_ANALOG_JS_ROUTER = "^0.2.0-beta.
|
|
5
|
-
export declare const V16_X_ANALOG_JS_TRPC = "^0.2.0-beta.
|
|
6
|
-
export declare const V16_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^0.2.0-beta.
|
|
3
|
+
export declare const V16_X_ANALOG_JS_CONTENT = "^0.2.0-beta.26";
|
|
4
|
+
export declare const V16_X_ANALOG_JS_ROUTER = "^0.2.0-beta.26";
|
|
5
|
+
export declare const V16_X_ANALOG_JS_TRPC = "^0.2.0-beta.26";
|
|
6
|
+
export declare const V16_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^0.2.0-beta.26";
|
|
7
7
|
export declare const V16_X_TRPC_CLIENT = "^10.25.0";
|
|
8
8
|
export declare const V16_X_TRPC_SERVER = "^10.25.0";
|
|
9
9
|
export declare const V16_X_ISOMORPHIC_FETCH = "^3.0.0";
|
|
@@ -13,7 +13,7 @@ export declare const V16_X_MARKED = "^5.0.2";
|
|
|
13
13
|
export declare const V16_X_MARKED_GFM_HEADING_ID = "^3.0.4";
|
|
14
14
|
export declare const V16_X_MARKED_HIGHLIGHT = "^2.0.1";
|
|
15
15
|
export declare const V16_X_PRISMJS = "^1.29.0";
|
|
16
|
-
export declare const V16_X_ANALOG_JS_PLATFORM = "^0.2.0-beta.
|
|
16
|
+
export declare const V16_X_ANALOG_JS_PLATFORM = "^0.2.0-beta.26";
|
|
17
17
|
export declare const V16_X_NX_VITE = "^16.4.0";
|
|
18
18
|
export declare const V16_X_JSDOM = "^22.0.0";
|
|
19
19
|
export declare const V16_X_VITE = "^4.3.9";
|
|
@@ -5,10 +5,10 @@ exports.V16_X_ZOD = exports.V16_X_VITEST = exports.V16_X_VITE_TSCONFIG_PATHS = e
|
|
|
5
5
|
// dependencies
|
|
6
6
|
exports.V16_X_NX_DEVKIT = '^16.4.0';
|
|
7
7
|
exports.V16_X_NX_ANGULAR = '^16.4.0';
|
|
8
|
-
exports.V16_X_ANALOG_JS_CONTENT = '^0.2.0-beta.
|
|
9
|
-
exports.V16_X_ANALOG_JS_ROUTER = '^0.2.0-beta.
|
|
10
|
-
exports.V16_X_ANALOG_JS_TRPC = '^0.2.0-beta.
|
|
11
|
-
exports.V16_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = '^0.2.0-beta.
|
|
8
|
+
exports.V16_X_ANALOG_JS_CONTENT = '^0.2.0-beta.26';
|
|
9
|
+
exports.V16_X_ANALOG_JS_ROUTER = '^0.2.0-beta.26';
|
|
10
|
+
exports.V16_X_ANALOG_JS_TRPC = '^0.2.0-beta.26';
|
|
11
|
+
exports.V16_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = '^0.2.0-beta.26';
|
|
12
12
|
exports.V16_X_TRPC_CLIENT = '^10.25.0';
|
|
13
13
|
exports.V16_X_TRPC_SERVER = '^10.25.0';
|
|
14
14
|
exports.V16_X_ISOMORPHIC_FETCH = '^3.0.0';
|
|
@@ -19,7 +19,7 @@ exports.V16_X_MARKED_GFM_HEADING_ID = '^3.0.4';
|
|
|
19
19
|
exports.V16_X_MARKED_HIGHLIGHT = '^2.0.1';
|
|
20
20
|
exports.V16_X_PRISMJS = '^1.29.0';
|
|
21
21
|
// devDependencies
|
|
22
|
-
exports.V16_X_ANALOG_JS_PLATFORM = '^0.2.0-beta.
|
|
22
|
+
exports.V16_X_ANALOG_JS_PLATFORM = '^0.2.0-beta.26';
|
|
23
23
|
exports.V16_X_NX_VITE = '^16.4.0';
|
|
24
24
|
exports.V16_X_JSDOM = '^22.0.0';
|
|
25
25
|
exports.V16_X_VITE = '^4.3.9';
|
package/src/lib/options.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PluginOptions } from '@analogjs/vite-plugin-angular';
|
|
2
|
-
import { NitroConfig } from 'nitropack';
|
|
2
|
+
import { NitroConfig, PrerenderRoute } from 'nitropack';
|
|
3
3
|
import { SitemapConfig } from '@analogjs/vite-plugin-nitro';
|
|
4
4
|
export interface PrerenderOptions {
|
|
5
5
|
/**
|
|
@@ -11,6 +11,8 @@ export interface PrerenderOptions {
|
|
|
11
11
|
*/
|
|
12
12
|
routes?: string[] | (() => Promise<(string | undefined)[]>);
|
|
13
13
|
sitemap?: SitemapConfig;
|
|
14
|
+
/** List of functions that run for each route after pre-rendering is complete. */
|
|
15
|
+
postRenderingHooks?: ((routes: PrerenderRoute) => Promise<void>)[];
|
|
14
16
|
}
|
|
15
17
|
export interface Options {
|
|
16
18
|
ssr?: boolean;
|