@quilted/create 0.3.0 โ 0.3.1
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/CHANGELOG.md +8 -0
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esnext/_virtual/index7.esnext +2 -2
- package/build/esnext/_virtual/index8.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.esnext +1 -1
- package/package.json +1 -1
- package/templates/app-basic/tests/render/render.tsx +3 -3
- package/templates/app-graphql/tests/render/render.tsx +3 -3
- package/templates/app-trpc/tests/render/render.tsx +3 -3
- package/templates/github/_github/workflows/actions/prepare/action.yml +6 -3
- package/templates/github/_github/workflows/ci.yml +7 -4
- package/templates/workspace/package.json +5 -5
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var utils = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { utils as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var dirGlob = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { dirGlob as __module };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as settings } from '../../../../../../../_virtual/
|
|
1
|
+
import { __exports as settings } from '../../../../../../../_virtual/settings2.esnext';
|
|
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.esnext';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as dirGlob } from '../../../../../_virtual/
|
|
1
|
+
import { __module as dirGlob } from '../../../../../_virtual/index8.esnext';
|
|
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.esnext';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as utils } from '../../../../../../../_virtual/
|
|
1
|
+
import { __exports as utils } from '../../../../../../../_virtual/index7.esnext';
|
|
2
2
|
import { __require as requireArray } from './array.esnext';
|
|
3
3
|
import { __require as requireErrno } from './errno.esnext';
|
|
4
4
|
import { __require as requireFs } from './fs.esnext';
|
|
@@ -3516,10 +3516,10 @@ function z2(e, t) {
|
|
|
3516
3516
|
return V2(e) & t;
|
|
3517
3517
|
}
|
|
3518
3518
|
function F2(e, t, a) {
|
|
3519
|
-
return e.kind >= 0 && e.kind <= 165 ? 0 : (e.modifierFlagsCache & 536870912 || (e.modifierFlagsCache = T1(e) | 536870912), W2(e.modifierFlagsCache));
|
|
3519
|
+
return e.kind >= 0 && e.kind <= 165 ? 0 : (e.modifierFlagsCache & 536870912 || (e.modifierFlagsCache = T1(e) | 536870912), a || t && ea(e) ? (!(e.modifierFlagsCache & 268435456) && e.parent && (e.modifierFlagsCache |= b1(e) | 268435456), v1(e.modifierFlagsCache)) : W2(e.modifierFlagsCache));
|
|
3520
3520
|
}
|
|
3521
3521
|
function V2(e) {
|
|
3522
|
-
return F2(e);
|
|
3522
|
+
return F2(e, false);
|
|
3523
3523
|
}
|
|
3524
3524
|
function b1(e) {
|
|
3525
3525
|
let t = 0;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {Navigation, TestRouter} from '@quilted/quilt/navigation/testing';
|
|
7
7
|
import {Localization} from '@quilted/quilt/localize';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import {AppContextPreact} from '~/shared/context.ts';
|
|
10
10
|
|
|
11
11
|
import {RenderOptions, RenderContext, RenderActions} from './types.ts';
|
|
12
12
|
|
|
@@ -31,13 +31,13 @@ export const renderApp = createRender<
|
|
|
31
31
|
const {router, browser} = context;
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
|
-
<
|
|
34
|
+
<AppContextPreact.Provider value={context}>
|
|
35
35
|
<BrowserDetailsContext.Provider value={browser}>
|
|
36
36
|
<Localization locale={locale}>
|
|
37
37
|
<Navigation router={router}>{element}</Navigation>
|
|
38
38
|
</Localization>
|
|
39
39
|
</BrowserDetailsContext.Provider>
|
|
40
|
-
</
|
|
40
|
+
</AppContextPreact.Provider>
|
|
41
41
|
);
|
|
42
42
|
},
|
|
43
43
|
async afterRender() {
|
|
@@ -9,7 +9,7 @@ import {Navigation, TestRouter} from '@quilted/quilt/navigation/testing';
|
|
|
9
9
|
import {Localization} from '@quilted/quilt/localize';
|
|
10
10
|
import {GraphQLCache} from '@quilted/quilt/graphql';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import {AppContextPreact} from '~/shared/context.ts';
|
|
13
13
|
|
|
14
14
|
import {GraphQLTesting, GraphQLController} from '../graphql.ts';
|
|
15
15
|
|
|
@@ -46,7 +46,7 @@ export const renderApp = createRender<
|
|
|
46
46
|
const {router, browser, graphql, graphQLController} = context;
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
|
-
<
|
|
49
|
+
<AppContextPreact.Provider value={context}>
|
|
50
50
|
<BrowserDetailsContext.Provider value={browser}>
|
|
51
51
|
<Localization locale={locale}>
|
|
52
52
|
<Navigation router={router}>
|
|
@@ -59,7 +59,7 @@ export const renderApp = createRender<
|
|
|
59
59
|
</Navigation>
|
|
60
60
|
</Localization>
|
|
61
61
|
</BrowserDetailsContext.Provider>
|
|
62
|
-
</
|
|
62
|
+
</AppContextPreact.Provider>
|
|
63
63
|
);
|
|
64
64
|
},
|
|
65
65
|
async afterRender(wrapper) {
|
|
@@ -9,7 +9,7 @@ import {Localization} from '@quilted/quilt/localize';
|
|
|
9
9
|
import {QueryClient, QueryClientProvider} from '@tanstack/react-query';
|
|
10
10
|
|
|
11
11
|
import {trpc} from '~/shared/trpc.ts';
|
|
12
|
-
import {
|
|
12
|
+
import {AppContextPreact} from '~/shared/context.ts';
|
|
13
13
|
|
|
14
14
|
import {RenderOptions, RenderContext, RenderActions} from './types.ts';
|
|
15
15
|
|
|
@@ -39,7 +39,7 @@ export const renderApp = createRender<
|
|
|
39
39
|
const {router, browser, trpc: trpcClient, queryClient} = context;
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
|
-
<
|
|
42
|
+
<AppContextPreact.Provider value={context}>
|
|
43
43
|
<BrowserDetailsContext.Provider value={browser}>
|
|
44
44
|
<Localization locale={locale}>
|
|
45
45
|
<Navigation router={router}>
|
|
@@ -51,7 +51,7 @@ export const renderApp = createRender<
|
|
|
51
51
|
</Navigation>
|
|
52
52
|
</Localization>
|
|
53
53
|
</BrowserDetailsContext.Provider>
|
|
54
|
-
</
|
|
54
|
+
</AppContextPreact.Provider>
|
|
55
55
|
);
|
|
56
56
|
},
|
|
57
57
|
async afterRender() {
|
|
@@ -2,12 +2,15 @@ name: Prepare repo
|
|
|
2
2
|
runs:
|
|
3
3
|
using: 'composite'
|
|
4
4
|
steps:
|
|
5
|
-
- uses: pnpm/action-setup@
|
|
6
|
-
- uses: actions/setup-node@
|
|
5
|
+
- uses: pnpm/action-setup@v4.0.0
|
|
6
|
+
- uses: actions/setup-node@v4
|
|
7
7
|
with:
|
|
8
8
|
cache: pnpm
|
|
9
9
|
registry-url: 'https://registry.npmjs.org'
|
|
10
10
|
node-version-file: '.nvmrc'
|
|
11
|
+
- name: Enable Corepack
|
|
12
|
+
run: corepack enable && pnpm -v
|
|
13
|
+
shell: bash
|
|
11
14
|
- name: Install dependencies
|
|
12
|
-
run: pnpm install
|
|
15
|
+
run: pnpm install --frozen-lockfile
|
|
13
16
|
shell: bash
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
name: CI
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
4
|
+
pull_request:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
7
|
-
- '!main'
|
|
6
|
+
- main
|
|
8
7
|
workflow_call:
|
|
9
8
|
inputs:
|
|
10
9
|
build:
|
|
@@ -16,6 +15,7 @@ jobs:
|
|
|
16
15
|
lint:
|
|
17
16
|
name: Lint ๐
|
|
18
17
|
runs-on: ubuntu-latest
|
|
18
|
+
timeout-minutes: 5
|
|
19
19
|
steps:
|
|
20
20
|
- uses: actions/checkout@v4
|
|
21
21
|
- uses: ./.github/workflows/actions/prepare
|
|
@@ -24,6 +24,7 @@ jobs:
|
|
|
24
24
|
type-check:
|
|
25
25
|
name: Type check ๐งฎ
|
|
26
26
|
runs-on: ubuntu-latest
|
|
27
|
+
timeout-minutes: 5
|
|
27
28
|
steps:
|
|
28
29
|
- uses: actions/checkout@v4
|
|
29
30
|
- uses: ./.github/workflows/actions/prepare
|
|
@@ -32,6 +33,7 @@ jobs:
|
|
|
32
33
|
unit-tests:
|
|
33
34
|
name: Unit tests ๐งช
|
|
34
35
|
runs-on: ubuntu-latest
|
|
36
|
+
timeout-minutes: 5
|
|
35
37
|
steps:
|
|
36
38
|
- uses: actions/checkout@v4
|
|
37
39
|
- uses: ./.github/workflows/actions/prepare
|
|
@@ -39,8 +41,9 @@ jobs:
|
|
|
39
41
|
|
|
40
42
|
build:
|
|
41
43
|
name: Build ๐
|
|
42
|
-
if: ${{ inputs.build || github.event_name == '
|
|
44
|
+
if: ${{ inputs.build || github.event_name == 'pull_request' }}
|
|
43
45
|
runs-on: ubuntu-latest
|
|
46
|
+
timeout-minutes: 5
|
|
44
47
|
steps:
|
|
45
48
|
- uses: actions/checkout@v4
|
|
46
49
|
- uses: ./.github/workflows/actions/prepare
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"typescript:watch": "tsx watch --conditions quilt:source"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@quilted/rollup": "^0.
|
|
17
|
-
"@quilted/vite": "^0.
|
|
16
|
+
"@quilted/rollup": "^0.4.0",
|
|
17
|
+
"@quilted/vite": "^0.3.0",
|
|
18
18
|
"@quilted/typescript": "^0.4.0",
|
|
19
|
-
"rollup": "^4.
|
|
19
|
+
"rollup": "^4.46.0",
|
|
20
20
|
"prettier": "^3.3.0",
|
|
21
21
|
"tsx": "^4.19.0",
|
|
22
22
|
"typescript": "^5.7.0",
|
|
23
|
-
"vite": "^
|
|
24
|
-
"vitest": "^3.
|
|
23
|
+
"vite": "^7.1.0",
|
|
24
|
+
"vitest": "^3.2.0"
|
|
25
25
|
},
|
|
26
26
|
"prettier": {
|
|
27
27
|
"arrowParens": "always",
|