@canonical/summon-application 0.36.0 → 0.38.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/README.md +57 -7
- package/dist/esm/application/react/index.js +97 -35
- package/dist/esm/application/react/index.js.map +1 -1
- package/dist/esm/application/react/templates/.storybook/decorators/withRouter.tsx +3 -2
- package/dist/esm/application/react/templates/.storybook/preview.ts.ejs +4 -2
- package/dist/esm/application/react/templates/README.md.ejs +88 -5
- package/dist/esm/application/react/templates/index.html.ejs +25 -3
- package/dist/esm/application/react/templates/package.json.ejs +22 -1
- package/dist/esm/application/react/templates/src/client/entry.tsx.ejs +76 -17
- package/dist/esm/application/react/templates/src/domains/account/AccountPage.tsx.ejs +4 -5
- package/dist/esm/application/react/templates/src/domains/account/LoginPage.tsx.ejs +4 -5
- package/dist/esm/application/react/templates/src/domains/catalog/CatalogPage.tsx.ejs +16 -5
- package/dist/esm/application/react/templates/src/domains/catalog/ProductList.tsx.ejs +2 -2
- package/dist/esm/application/react/templates/src/domains/contact/ContactPage.tsx.ejs +4 -5
- package/dist/esm/application/react/templates/src/domains/marketing/GuidePage.tsx.ejs +4 -10
- package/dist/esm/application/react/templates/src/domains/marketing/HomePage.tsx.ejs +13 -5
- package/dist/esm/application/react/templates/src/formatDocumentTitle.ts.ejs +21 -0
- package/dist/esm/application/react/templates/src/i18n/ar.ts +4 -5
- package/dist/esm/application/react/templates/src/i18n/en.ts +4 -5
- package/dist/esm/application/react/templates/src/i18n/fr.ts +4 -5
- package/dist/esm/application/react/templates/src/lib/ExampleComponent/styles.css +13 -3
- package/dist/esm/application/react/templates/src/lib/index.ts.ejs +1 -1
- package/dist/esm/application/react/templates/src/routes.tsx.ejs +25 -3
- package/dist/esm/application/react/templates/src/server/entry.tsx.ejs +50 -16
- package/dist/esm/application/react/templates/src/styles/app.css +23 -13
- package/dist/esm/application/react/templates/src/styles/index.css.ejs +27 -0
- package/dist/esm/application/react/templates/test/e2e/servers.e2e.ts.ejs +58 -2
- package/dist/esm/application/react/templates/tsconfig.json.ejs +3 -0
- package/dist/esm/application/react/templates/vite-plugin-ds-icons.ts +69 -0
- package/dist/esm/application/react/templates/vite.config.ts.ejs +57 -3
- package/dist/esm/domain/index.js +3 -4
- package/dist/esm/domain/index.js.map +1 -1
- package/dist/esm/route/index.js +2 -3
- package/dist/esm/route/index.js.map +1 -1
- package/dist/types/application/react/index.d.ts +1 -0
- package/dist/types/application/react/index.d.ts.map +1 -1
- package/dist/types/domain/index.d.ts.map +1 -1
- package/dist/types/route/index.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import react from "@vitejs/plugin-react";
|
|
2
2
|
import browserslist from "browserslist";
|
|
3
3
|
import { browserslistToTargets } from "lightningcss";
|
|
4
|
+
<% if (spa) { -%>
|
|
5
|
+
import { defineConfig, type UserConfig } from "vite";
|
|
6
|
+
<% } else { -%>
|
|
4
7
|
import { defineConfig } from "vite";
|
|
8
|
+
<% } -%>
|
|
5
9
|
<% if (relay) { -%>
|
|
6
10
|
import relay from "vite-plugin-relay-lite";
|
|
7
11
|
<% } -%>
|
|
12
|
+
import { dsIcons } from "./vite-plugin-ds-icons.js";
|
|
8
13
|
|
|
9
14
|
// Path aliases (#lib, #domains, #styles) are declared as Node subpath imports
|
|
10
15
|
// in package.json "imports" and resolved natively by Vite — no resolver plugin.
|
|
11
16
|
const PORT = Number(process.env.PORT) || undefined;
|
|
12
17
|
|
|
18
|
+
<% if (spa) { -%>
|
|
19
|
+
// Every command (`dev`, `build:client`, `preview`) serves the same client
|
|
20
|
+
// build (`--outDir dist/client`); there is no second, server-mode pass, so
|
|
21
|
+
// the config takes no mode. It is a named const because a zero-arg config
|
|
22
|
+
// function gets no contextual type from Vite, so every string literal below
|
|
23
|
+
// would widen (`transformer: string`, `cssMinify: string`, ...) and
|
|
24
|
+
// defineConfig would reject the object.
|
|
25
|
+
const config: UserConfig = {
|
|
26
|
+
<% } else { -%>
|
|
13
27
|
// `build:server` runs `vite build --mode server` to compile the two server
|
|
14
28
|
// renderers in a single pass. Each is a separate, individually-instantiated
|
|
15
29
|
// Lego brick, so they are named Rollup inputs — the build emits
|
|
@@ -18,6 +32,7 @@ const PORT = Number(process.env.PORT) || undefined;
|
|
|
18
32
|
// (`dev`, `build:client`, `preview`) uses the default mode and the SPA client
|
|
19
33
|
// build (`--ssrManifest --outDir dist/client`).
|
|
20
34
|
export default defineConfig(({ mode }) => ({
|
|
35
|
+
<% } -%>
|
|
21
36
|
<% if (relay) { -%>
|
|
22
37
|
// Relay's `graphql\`...\`` tags must be rewritten into imports of the
|
|
23
38
|
// compiler-generated artifacts. `@vitejs/plugin-react` v6 is OXC-based (no
|
|
@@ -35,12 +50,24 @@ export default defineConfig(({ mode }) => ({
|
|
|
35
50
|
// artifacts are committed and regenerated explicitly via the `relay` /
|
|
36
51
|
// `relay:watch` scripts.
|
|
37
52
|
<% } -%>
|
|
38
|
-
|
|
53
|
+
// dsIcons() serves the @canonical/ds-assets icons at /icons in dev and
|
|
54
|
+
// copies them into the client build output — design-system components
|
|
55
|
+
// fetch glyphs at runtime from `/icons/<name>.svg#<name>`, and an
|
|
56
|
+
// unserved icon renders empty with no error.
|
|
57
|
+
plugins: [dsIcons(), relay({ codegen: false }), react()],
|
|
39
58
|
<% } else { -%>
|
|
40
|
-
|
|
59
|
+
// dsIcons() serves the @canonical/ds-assets icons at /icons in dev and
|
|
60
|
+
// copies them into the client build output — design-system components
|
|
61
|
+
// fetch glyphs at runtime from `/icons/<name>.svg#<name>`, and an
|
|
62
|
+
// unserved icon renders empty with no error.
|
|
63
|
+
plugins: [dsIcons(), react()],
|
|
41
64
|
<% } -%>
|
|
65
|
+
<% if (spa) { -%>
|
|
66
|
+
// Honour the PORT env var for `dev` and `preview` alike.
|
|
67
|
+
<% } else { -%>
|
|
42
68
|
// Honour the PORT env var for `dev` (SPA) and `preview` so all server scripts
|
|
43
69
|
// — including the SSR ones, which already read PORT — respond to it uniformly.
|
|
70
|
+
<% } -%>
|
|
44
71
|
server: { port: PORT },
|
|
45
72
|
preview: { port: PORT },
|
|
46
73
|
// CSS delivery is the app's job, not the libraries': @canonical/* packages
|
|
@@ -56,10 +83,16 @@ export default defineConfig(({ mode }) => ({
|
|
|
56
83
|
lightningcss: { targets: browserslistToTargets(browserslist()) },
|
|
57
84
|
},
|
|
58
85
|
build: {
|
|
86
|
+
<% if (spa) { -%>
|
|
87
|
+
// Minify CSS with Lightning CSS too (instead of the esbuild default), so
|
|
88
|
+
// a single tool owns both downleveling and minification.
|
|
89
|
+
<% } else { -%>
|
|
59
90
|
// Minify CSS with Lightning CSS too (instead of the esbuild default), so
|
|
60
91
|
// a single tool owns both downleveling and minification — in the client
|
|
61
92
|
// build and the server build alike.
|
|
93
|
+
<% } -%>
|
|
62
94
|
cssMinify: "lightningcss",
|
|
95
|
+
<% if (!spa) { -%>
|
|
63
96
|
...(mode === "server"
|
|
64
97
|
? {
|
|
65
98
|
ssr: true,
|
|
@@ -72,8 +105,20 @@ export default defineConfig(({ mode }) => ({
|
|
|
72
105
|
},
|
|
73
106
|
}
|
|
74
107
|
: undefined),
|
|
108
|
+
<% } -%>
|
|
75
109
|
},
|
|
110
|
+
<%# The `ssr` key stays in the SPA arm on purpose: this app never runs a -%>
|
|
111
|
+
<%# server, but vitest resolves modules through Vite's SSR (Node-style) -%>
|
|
112
|
+
<%# pipeline, so the same externalisation rules apply to `bun run test`. -%>
|
|
76
113
|
ssr: {
|
|
114
|
+
<% if (spa) { -%>
|
|
115
|
+
// Read by vitest, not by a server: it loads modules through Vite's SSR
|
|
116
|
+
// (Node-style) resolver, which ignores packages that declare only a
|
|
117
|
+
// "module" entry (ERR_RESOLVE_PACKAGE_ENTRY_FAIL) and cannot load the CSS
|
|
118
|
+
// side-effect imports in their built output (ERR_UNKNOWN_FILE_EXTENSION).
|
|
119
|
+
// Bundling the whole @canonical scope sidesteps both, for any current or
|
|
120
|
+
// future dependency.
|
|
121
|
+
<% } else { -%>
|
|
77
122
|
// Bundle @canonical/* for SSR rather than externalising them, for two
|
|
78
123
|
// reasons: (1) some packages declare only a "module" entry (no
|
|
79
124
|
// "main"/"exports"), which Vite's SSR (Node-style) resolver ignores —
|
|
@@ -82,7 +127,8 @@ export default defineConfig(({ mode }) => ({
|
|
|
82
127
|
// which Node cannot load (ERR_UNKNOWN_FILE_EXTENSION) but Vite's SSR
|
|
83
128
|
// transform no-ops. The regex covers the whole scope so any current or
|
|
84
129
|
// future @canonical dependency is handled.
|
|
85
|
-
<%
|
|
130
|
+
<% } -%>
|
|
131
|
+
<% if (relay && !spa) { -%>
|
|
86
132
|
//
|
|
87
133
|
// The Relay packages (react-relay, relay-runtime, relay-runtime-network,
|
|
88
134
|
// graphql) stay externalised like react itself. Three packaging defects
|
|
@@ -98,4 +144,12 @@ export default defineConfig(({ mode }) => ({
|
|
|
98
144
|
<% } -%>
|
|
99
145
|
noExternal: [/^@canonical\//],
|
|
100
146
|
},
|
|
147
|
+
<% if (spa) { -%>
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// Exported as a config FUNCTION, not the object: vitest.config.ts resolves
|
|
151
|
+
// it with viteConfig({ command, mode }) before merging its own settings in.
|
|
152
|
+
export default defineConfig(() => config);
|
|
153
|
+
<% } else { -%>
|
|
101
154
|
}));
|
|
155
|
+
<% } -%>
|
package/dist/esm/domain/index.js
CHANGED
|
@@ -22,14 +22,13 @@ const prompts = [
|
|
|
22
22
|
];
|
|
23
23
|
function buildMainPage(domainName) {
|
|
24
24
|
const title = toTitleCase(domainName);
|
|
25
|
-
return `import {
|
|
25
|
+
return `import { Head } from "@canonical/react-head";
|
|
26
26
|
import type { ReactElement } from "react";
|
|
27
27
|
|
|
28
28
|
export default function MainPage(): ReactElement {
|
|
29
|
-
useHead({ title: "${title}" });
|
|
30
|
-
|
|
31
29
|
return (
|
|
32
30
|
<section aria-labelledby="main-title">
|
|
31
|
+
<Head title="${title}" />
|
|
33
32
|
<h1 id="main-title">${title}</h1>
|
|
34
33
|
<p>This is the main page for the ${domainName} domain.</p>
|
|
35
34
|
</section>
|
|
@@ -59,7 +58,7 @@ export const generator = {
|
|
|
59
58
|
description: "Create a domain folder with routes and a MainPage",
|
|
60
59
|
version: packageVersion(),
|
|
61
60
|
help: `Creates a domain directory under src/domains/ with:
|
|
62
|
-
- MainPage.tsx — example page component with
|
|
61
|
+
- MainPage.tsx — example page component with <Head>
|
|
63
62
|
- routes.ts — route barrel exporting the domain's routes
|
|
64
63
|
|
|
65
64
|
Add more routes with: summon route <domain>/<route-name>`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAKlC,OAAO,EACL,MAAM,EACN,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,EACT,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAMtD,MAAM,OAAO,GAAuB;IAClC;QACE,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,oCAAoC;QAC7C,OAAO,EAAE,SAAS;QAClB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,mBAAmB,CAAC;YAC5B,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,CAAC;YACd,OAAO,EAAE,SAAS;SACnB,CAAC;QACF,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;AAEF,SAAS,aAAa,CAAC,UAAkB;IACv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package/dist/esm/route/index.js
CHANGED
|
@@ -24,14 +24,13 @@ function buildPage(routeName) {
|
|
|
24
24
|
const pageName = `${toPascalCase(routeName)}Page`;
|
|
25
25
|
const title = toTitleCase(routeName);
|
|
26
26
|
const slugId = toCamelCase(routeName);
|
|
27
|
-
return `import {
|
|
27
|
+
return `import { Head } from "@canonical/react-head";
|
|
28
28
|
import type { ReactElement } from "react";
|
|
29
29
|
|
|
30
30
|
export default function ${pageName}(): ReactElement {
|
|
31
|
-
useHead({ title: "${title}" });
|
|
32
|
-
|
|
33
31
|
return (
|
|
34
32
|
<section aria-labelledby="${slugId}-title">
|
|
33
|
+
<Head title="${title}" />
|
|
35
34
|
<h1 id="${slugId}-title">${title}</h1>
|
|
36
35
|
</section>
|
|
37
36
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/route/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAKlC,OAAO,EACL,MAAM,EACN,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,SAAS,EACT,aAAa,EACb,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM5D,MAAM,OAAO,GAAuB;IAClC;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,4CAA4C;QACrD,OAAO,EAAE,cAAc;QACvB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,mBAAmB,CAAC;YAC5B,KAAK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OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,CACxC,WAAW;gBACT,CAAC,CAAC,IAAI,CAAC;oBACH,IAAI,EAAE,mBAAmB;oBACzB,OAAO,EAAE,SAAS,QAAQ,2EAA2E;iBACtG,CAAC;gBACJ,CAAC,CAAC,QAAQ,CACb,CACN,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/application/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAwBhC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/application/react/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAwBhC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;AA+FD,eAAO,MAAM,SAAS,EAAE,mBAAmB,CAAC,uBAAuB,CAokBlE,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAgBhC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAgBhC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAqDD,eAAO,MAAM,SAAS,EAAE,mBAAmB,CAAC,aAAa,CA+CxD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/route/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAgBhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/route/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAgBhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAqCD,eAAO,MAAM,SAAS,EAAE,mBAAmB,CAAC,YAAY,CAmGvD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/summon-application",
|
|
3
3
|
"description": "Summon generators for application scaffolding: domain, route, and wrapper",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.38.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"test": "vitest run"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@canonical/summon-core": "^0.
|
|
40
|
-
"@canonical/task": "^0.
|
|
41
|
-
"@canonical/utils": "^0.
|
|
39
|
+
"@canonical/summon-core": "^0.38.0",
|
|
40
|
+
"@canonical/task": "^0.38.0",
|
|
41
|
+
"@canonical/utils": "^0.38.0",
|
|
42
42
|
"typescript": "^5.9.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@biomejs/biome": "2.
|
|
46
|
-
"@canonical/biome-config": "^0.
|
|
47
|
-
"@canonical/webarchitect": "^0.
|
|
45
|
+
"@biomejs/biome": "2.5.13",
|
|
46
|
+
"@canonical/biome-config": "^0.38.0",
|
|
47
|
+
"@canonical/webarchitect": "^0.38.0",
|
|
48
48
|
"@types/node": "^26.0.0",
|
|
49
49
|
"vitest": "^4.0.18"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "4d10a68a9b299af6fe3d1d7d053e54ca128944ad"
|
|
52
52
|
}
|