@canonical/summon-core 0.36.0 → 0.37.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.
@@ -20,7 +20,7 @@ const COMPONENT_ANSWERS = {
20
20
  withSsrTests: false,
21
21
  };
22
22
  /**
23
- * The design-system generator fixtures — the five trees pragma's `create` verbs
23
+ * The design-system generator fixtures — the seven trees pragma's `create` verbs
24
24
  * and summon's `execute` must agree on byte for byte.
25
25
  */
26
26
  export const CONFORMANCE_FIXTURES = [
@@ -63,6 +63,38 @@ export const CONFORMANCE_FIXTURES = [
63
63
  runInstall: false,
64
64
  },
65
65
  },
66
+ {
67
+ // The SPA arm. Nothing else in CI produces a client-only tree, so without
68
+ // this fixture `--rendering spa` would be exercised only by hand: here
69
+ // three independent producers build it and diff it byte for byte.
70
+ name: "application-spa",
71
+ generator: "application",
72
+ answers: {
73
+ appPath: "my-app",
74
+ forms: true,
75
+ intl: false,
76
+ relay: false,
77
+ rendering: "spa",
78
+ runInstall: false,
79
+ },
80
+ },
81
+ {
82
+ // The SPA arm with every feature on. The bare fixture above renders none
83
+ // of the combination-only gates — `relay && spa` (an environment with no
84
+ // payloads to seed), `intl && spa` (negotiation with no server to have
85
+ // done it), the four-way provider stack in the client entry, and the
86
+ // nested intl/spa gates in the e2e template. This one renders all of them.
87
+ name: "application-spa-all",
88
+ generator: "application",
89
+ answers: {
90
+ appPath: "my-app",
91
+ forms: true,
92
+ intl: true,
93
+ relay: true,
94
+ rendering: "spa",
95
+ runInstall: false,
96
+ },
97
+ },
66
98
  ];
67
99
  /**
68
100
  * Look up a fixture by name.
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../../src/testing/conformance/fixtures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,mFAAmF;AACnF,MAAM,iBAAiB,GAAG;IACxB,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;IACjB,YAAY,E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}
1
+ {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../../src/testing/conformance/fixtures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,mFAAmF;AACnF,MAAM,iBAAiB,GAAG;IACxB,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,KAAK;CACX,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAkC;IACjE;QACE,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,iBAAiB;QAC5B,OAAO,EAAE,EAAE,aAAa,EAAE,uBAAuB,EAAE,GAAG,iBAAiB,EAAE;KAC1E;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,SAAS,EAAE,kBAAkB;QAC7B,OAAO,EAAE,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,EAAE;KACnE;IACD;QACE,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,eAAe;QAC1B,OAAO,EAAE,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,EAAE;KACnE;IACD;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE;YACP,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,YAAY;YACzB,SAAS,EAAE,KAAK;YAChB,aAAa,EAAE,KAAK;YACpB,OAAO,EAAE,KAAK;YACd,cAAc,EAAE,KAAK;YACrB,UAAU,EAAE,KAAK;SAClB;KACF;IACD;QACE,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,aAAa;QACxB,OAAO,EAAE;YACP,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE,KAAK;SAClB;KACF;IACD;QACE,0EAA0E;QAC1E,uEAAuE;QACvE,kEAAkE;QAClE,IAAI,EAAE,iBAAiB;QACvB,SAAS,EAAE,aAAa;QACxB,OAAO,EAAE;YACP,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,KAAK;SAClB;KACF;IACD;QACE,yEAAyE;QACzE,yEAAyE;QACzE,uEAAuE;QACvE,qEAAqE;QACrE,2EAA2E;QAC3E,IAAI,EAAE,qBAAqB;QAC3B,SAAS,EAAE,aAAa;QACxB,OAAO,EAAE;YACP,OAAO,EAAE,QAAQ;YACjB,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;YACX,SAAS,EAAE,KAAK;YAChB,UAAU,EAAE,KAAK;SAClB;KACF;CACF,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IACxE,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,GAAG,CAAC,CAAC;IACtE,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -23,7 +23,7 @@ export interface ConformanceFixture {
23
23
  readonly answers: Readonly<Record<string, unknown>>;
24
24
  }
25
25
  /**
26
- * The design-system generator fixtures — the five trees pragma's `create` verbs
26
+ * The design-system generator fixtures — the seven trees pragma's `create` verbs
27
27
  * and summon's `execute` must agree on byte for byte.
28
28
  */
29
29
  export declare const CONFORMANCE_FIXTURES: readonly ConformanceFixture[];
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../src/testing/conformance/fixtures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACrD;AASD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,kBAAkB,EAwC7D,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAIxD"}
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../src/testing/conformance/fixtures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oFAAoF;IACpF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACrD;AASD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,kBAAkB,EAwE7D,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAIxD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@canonical/summon-core",
3
3
  "description": "Code generation framework: generator definitions, templates, stamps, discovery. Built on @canonical/task.",
4
- "version": "0.36.0",
4
+ "version": "0.37.0",
5
5
  "type": "module",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/types/index.d.ts",
@@ -63,9 +63,9 @@
63
63
  },
64
64
  "devDependencies": {
65
65
  "@biomejs/biome": "2.4.9",
66
- "@canonical/biome-config": "^0.36.0",
67
- "@canonical/typescript-config": "^0.36.0",
68
- "@canonical/webarchitect": "^0.36.0",
66
+ "@canonical/biome-config": "^0.37.0",
67
+ "@canonical/typescript-config": "^0.37.0",
68
+ "@canonical/webarchitect": "^0.37.0",
69
69
  "@types/bun": "^1.3.10",
70
70
  "@types/ejs": "^3.1.5",
71
71
  "@types/node": "^26.0.0",
@@ -75,15 +75,18 @@
75
75
  "vitest": "^4.0.18"
76
76
  },
77
77
  "dependencies": {
78
- "@canonical/task": "^0.36.0",
79
- "@canonical/utils": "^0.36.0",
80
- "chalk": "^5.6.2",
81
- "commander": "^14.0.3",
78
+ "@canonical/task": "^0.37.0",
79
+ "@canonical/utils": "^0.37.0",
80
+ "chalk": "^6.0.0",
81
+ "commander": "^15.0.0",
82
82
  "ejs": "^5.0.0",
83
83
  "ink": "^6.8.0",
84
84
  "ink-select-input": "^6.2.0",
85
85
  "ink-text-input": "^6.0.0",
86
86
  "react": "^19.2.4"
87
87
  },
88
- "gitHead": "78eb47ac10104e914eeacd331795e14b832703d4"
88
+ "engines": {
89
+ "node": ">=22.18 <23 || >=23.6"
90
+ },
91
+ "gitHead": "ac8383bdb4be1bcd6fa6c4960a1e3d78c0279688"
89
92
  }