@quilted/create 0.3.0 → 0.3.2

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/build/esm/_virtual/index7.mjs +2 -2
  3. package/build/esm/_virtual/index8.mjs +2 -2
  4. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +1 -1
  5. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +1 -1
  6. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +1 -1
  7. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +1 -1
  8. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +1 -1
  9. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +1 -1
  10. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +1 -1
  11. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +1 -1
  12. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +1 -1
  13. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.mjs +1 -1
  14. package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +1 -1
  15. package/build/esnext/_virtual/index7.esnext +2 -2
  16. package/build/esnext/_virtual/index8.esnext +2 -2
  17. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +1 -1
  18. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +1 -1
  19. package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +1 -1
  20. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.esnext +1 -1
  21. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.esnext +1 -1
  22. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.esnext +1 -1
  23. package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +2 -2
  24. package/package.json +1 -1
  25. package/templates/app-basic/App.tsx +8 -3
  26. package/templates/app-basic/browser.css +10 -0
  27. package/templates/app-basic/browser.tsx +8 -12
  28. package/templates/app-basic/context/browser.ts +10 -0
  29. package/templates/app-basic/context/navigation.ts +17 -0
  30. package/templates/app-basic/{shared/context.ts → context/preact.ts} +1 -1
  31. package/templates/app-basic/context/server.ts +10 -0
  32. package/templates/app-basic/context/types.ts +5 -0
  33. package/templates/app-basic/foundation/frame/Frame.module.css +0 -11
  34. package/templates/app-basic/server.tsx +5 -14
  35. package/templates/app-basic/tests/render/render.tsx +8 -5
  36. package/templates/app-basic/tests/render/types.ts +2 -2
  37. package/templates/app-basic/tsconfig.json +2 -4
  38. package/templates/app-graphql/App.tsx +4 -3
  39. package/templates/app-graphql/browser.css +10 -0
  40. package/templates/app-graphql/browser.tsx +9 -23
  41. package/templates/app-graphql/context/browser.ts +21 -0
  42. package/templates/app-graphql/context/navigation.ts +17 -0
  43. package/templates/{app-trpc/shared/context.ts → app-graphql/context/preact.ts} +1 -1
  44. package/templates/app-graphql/context/server.ts +23 -0
  45. package/templates/app-graphql/context/types.ts +10 -0
  46. package/templates/app-graphql/server.tsx +4 -24
  47. package/templates/app-graphql/tests/render/render.tsx +13 -10
  48. package/templates/app-graphql/tests/render/types.ts +9 -4
  49. package/templates/app-graphql/tsconfig.json +1 -1
  50. package/templates/app-trpc/App.tsx +5 -7
  51. package/templates/app-trpc/browser.css +10 -0
  52. package/templates/app-trpc/browser.tsx +9 -23
  53. package/templates/app-trpc/context/browser.ts +20 -0
  54. package/templates/app-trpc/context/navigation.ts +17 -0
  55. package/templates/{app-graphql/shared/context.ts → app-trpc/context/preact.ts} +1 -1
  56. package/templates/app-trpc/context/server.ts +18 -0
  57. package/templates/app-trpc/context/trpc.ts +6 -0
  58. package/templates/app-trpc/context/types.ts +11 -0
  59. package/templates/app-trpc/features/home/Home.tsx +1 -1
  60. package/templates/app-trpc/server.tsx +4 -19
  61. package/templates/app-trpc/tests/render/render.tsx +11 -6
  62. package/templates/app-trpc/tests/render/types.ts +2 -2
  63. package/templates/app-trpc/tsconfig.json +1 -1
  64. package/templates/github/_github/workflows/actions/prepare/action.yml +6 -3
  65. package/templates/github/_github/workflows/ci.yml +7 -4
  66. package/templates/workspace/package.json +5 -5
  67. package/templates/app-basic/shared/navigation.ts +0 -15
  68. package/templates/app-graphql/shared/graphql.ts +0 -22
  69. package/templates/app-graphql/shared/navigation.ts +0 -15
  70. package/templates/app-trpc/shared/navigation.ts +0 -15
  71. package/templates/app-trpc/shared/trpc.ts +0 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @quilted/create
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`be4e753`](https://github.com/lemonmade/quilt/commit/be4e7532de2bdda83302c2eb8bc2a0a09aeae07e) Thanks [@lemonmade](https://github.com/lemonmade)! - Refactor app template context structure: replace `shared/` directory with `context/` directory
8
+
9
+ The `shared/` directory, which used TypeScript declaration merging to build up the `AppContext` interface across multiple files, has been replaced with a `context/` directory that defines the full interface explicitly in a single `types.ts` file. This makes the shape of the application context immediately visible without needing to trace module augmentations.
10
+
11
+ The new structure separates each concern into its own file: `types.ts` owns the interface, `navigation.ts` provides the router and route helpers, `preact.ts` holds the Preact context binding, `browser.ts` exports `BrowserAppContext`, and `server.ts` exports `ServerAppContext`. The context classes have been extracted from `browser.tsx` and `server.tsx` into these dedicated files, keeping the entry points lean.
12
+
13
+ Navigation is now accessed as `context.navigation.router` instead of `context.router`, grouping router state under a `navigation` namespace. A `browser.css` file has also been added to each app template for global CSS resets.
14
+
15
+ ## 0.3.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [`eef99d6`](https://github.com/lemonmade/quilt/commit/eef99d6c3daeffdc7b9bf7d48fb13d211ff96af0) Thanks [@lemonmade](https://github.com/lemonmade)! - Update template dependencies
20
+
21
+ - [`e97d495`](https://github.com/lemonmade/quilt/commit/e97d4958f87addc7845057a44e7434e0152b718c) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix more template issues
22
+
3
23
  ## 0.3.0
4
24
 
5
25
  ### Minor Changes
@@ -1,3 +1,3 @@
1
- var utils = {};
1
+ var dirGlob = {exports: {}};
2
2
 
3
- export { utils as __exports };
3
+ export { dirGlob as __module };
@@ -1,3 +1,3 @@
1
- var dirGlob = {exports: {}};
1
+ var utils = {};
2
2
 
3
- export { dirGlob as __module };
3
+ export { utils as __exports };
@@ -1,4 +1,4 @@
1
- import { __exports as out } from '../../../../../../../_virtual/index10.mjs';
1
+ import { __exports as out } from '../../../../../../../_virtual/index11.mjs';
2
2
  import { __require as requireAsync } from './providers/async.mjs';
3
3
  import { __require as requireSync } from './providers/sync.mjs';
4
4
  import { __require as requireSettings } from './settings.mjs';
@@ -1,4 +1,4 @@
1
- import { __exports as async } from '../../../../../../../../_virtual/async3.mjs';
1
+ import { __exports as async } from '../../../../../../../../_virtual/async4.mjs';
2
2
 
3
3
  var hasRequiredAsync;
4
4
  function requireAsync() {
@@ -1,4 +1,4 @@
1
- import { __exports as sync } from '../../../../../../../../_virtual/sync3.mjs';
1
+ import { __exports as sync } from '../../../../../../../../_virtual/sync4.mjs';
2
2
 
3
3
  var hasRequiredSync;
4
4
  function requireSync() {
@@ -1,4 +1,4 @@
1
- import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
1
+ import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
2
2
  import { __require as requireFs } from './adapters/fs.mjs';
3
3
 
4
4
  var hasRequiredSettings;
@@ -1,4 +1,4 @@
1
- import { __exports as out } from '../../../../../../../_virtual/index11.mjs';
1
+ import { __exports as out } from '../../../../../../../_virtual/index10.mjs';
2
2
  import { __require as requireAsync } from './providers/async.mjs';
3
3
  import { __require as requireStream } from './providers/stream.mjs';
4
4
  import { __require as requireSync } from './providers/sync.mjs';
@@ -1,4 +1,4 @@
1
- import { __exports as async } from '../../../../../../../../_virtual/async4.mjs';
1
+ import { __exports as async } from '../../../../../../../../_virtual/async3.mjs';
2
2
  import { __require as requireAsync$1 } from '../readers/async.mjs';
3
3
 
4
4
  var hasRequiredAsync;
@@ -1,4 +1,4 @@
1
- import { __exports as sync } from '../../../../../../../../_virtual/sync4.mjs';
1
+ import { __exports as sync } from '../../../../../../../../_virtual/sync3.mjs';
2
2
  import { __require as requireSync$1 } from '../readers/sync.mjs';
3
3
 
4
4
  var hasRequiredSync;
@@ -1,4 +1,4 @@
1
- import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
1
+ import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
2
2
  import path__default from 'node:path';
3
3
  import { __require as requireOut } from '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __module as dirGlob } from '../../../../../_virtual/index8.mjs';
1
+ import { __module as dirGlob } from '../../../../../_virtual/index7.mjs';
2
2
  import path__default from 'node:path';
3
3
  import { __require as requirePathType } from '../../../path-type@4.0.0/node_modules/path-type/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as utils } from '../../../../../../../_virtual/index7.mjs';
1
+ import { __exports as utils } from '../../../../../../../_virtual/index8.mjs';
2
2
  import { __require as requireArray } from './array.mjs';
3
3
  import { __require as requireErrno } from './errno.mjs';
4
4
  import { __require as requireFs } from './fs.mjs';