@quilted/create 0.1.34 → 0.1.36
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 +12 -0
- package/build/cjs/shared/package-manager.cjs +4 -2
- package/build/esm/shared/package-manager.mjs +4 -2
- package/package.json +1 -1
- package/templates/app-basic/features/Start/Start.tsx +7 -0
- package/templates/app-basic/server.tsx +9 -5
- package/templates/app-single-file/App.tsx +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @quilted/create
|
|
2
2
|
|
|
3
|
+
## 0.1.36
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5bf437ea`](https://github.com/lemonmade/quilt/commit/5bf437ea344d3818f249480c9db90c4ce418b256) Thanks [@lemonmade](https://github.com/lemonmade)! - Async load app in server render by default
|
|
8
|
+
|
|
9
|
+
## 0.1.35
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`84e74cb1`](https://github.com/lemonmade/quilt/commit/84e74cb1748ef4c427d6a4dfb854fa6898868918) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix default navigation performance experience
|
|
14
|
+
|
|
3
15
|
## 0.1.34
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -43,12 +43,14 @@ function createPackageManagerRunner(type, {
|
|
|
43
43
|
},
|
|
44
44
|
async install() {
|
|
45
45
|
node_child_process.execSync(`${type} install`, {
|
|
46
|
-
cwd: root
|
|
46
|
+
cwd: root,
|
|
47
|
+
stdio: 'inherit'
|
|
47
48
|
});
|
|
48
49
|
},
|
|
49
50
|
async run(command, args) {
|
|
50
51
|
node_child_process.execSync(`${type} ${command} ${args.join(' ')}`, {
|
|
51
|
-
cwd: root
|
|
52
|
+
cwd: root,
|
|
53
|
+
stdio: 'inherit'
|
|
52
54
|
});
|
|
53
55
|
}
|
|
54
56
|
};
|
|
@@ -23,12 +23,14 @@ function createPackageManagerRunner(type, {
|
|
|
23
23
|
},
|
|
24
24
|
async install() {
|
|
25
25
|
execSync(`${type} install`, {
|
|
26
|
-
cwd: root
|
|
26
|
+
cwd: root,
|
|
27
|
+
stdio: 'inherit'
|
|
27
28
|
});
|
|
28
29
|
},
|
|
29
30
|
async run(command, args) {
|
|
30
31
|
execSync(`${type} ${command} ${args.join(' ')}`, {
|
|
31
|
-
cwd: root
|
|
32
|
+
cwd: root,
|
|
33
|
+
stdio: 'inherit'
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
36
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import {usePerformanceNavigation} from '@quilted/quilt';
|
|
2
|
+
|
|
1
3
|
import styles from './Start.module.css';
|
|
2
4
|
|
|
3
5
|
export function Start() {
|
|
6
|
+
// This hook indicates that the page has loaded. It is used as part of Quilt’s
|
|
7
|
+
// navigation performance tracking feature. If you have disabled this feature,
|
|
8
|
+
// you can remove this hook.
|
|
9
|
+
usePerformanceNavigation();
|
|
10
|
+
|
|
4
11
|
return <div className={styles.Start}>Hello world!</div>;
|
|
5
12
|
}
|
|
@@ -5,15 +5,19 @@ import {
|
|
|
5
5
|
} from '@quilted/quilt/server';
|
|
6
6
|
import createAssetManifest from '@quilted/quilt/magic/app/asset-manifest';
|
|
7
7
|
|
|
8
|
-
import App from './App';
|
|
9
|
-
|
|
10
8
|
const router = createRequestRouter();
|
|
11
9
|
|
|
12
10
|
// For all GET requests, render our React application.
|
|
13
11
|
router.get(
|
|
14
|
-
createServerRenderingRequestHandler(
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
createServerRenderingRequestHandler(
|
|
13
|
+
async () => {
|
|
14
|
+
const {default: App} = await import('./App');
|
|
15
|
+
return <App />;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
assets: createAssetManifest(),
|
|
19
|
+
},
|
|
20
|
+
),
|
|
17
21
|
);
|
|
18
22
|
|
|
19
23
|
export default router;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
QuiltApp,
|
|
3
3
|
useCurrentUrl,
|
|
4
|
+
usePerformanceNavigation,
|
|
4
5
|
usePerformanceNavigationEvent,
|
|
5
6
|
type Routes,
|
|
6
7
|
} from '@quilted/quilt';
|
|
@@ -33,6 +34,11 @@ export default function App() {
|
|
|
33
34
|
// This component will be rendered for the root URL of your application. Feel
|
|
34
35
|
// free to edit it, rename it, remove it entirely, or move it to a dedicated file.
|
|
35
36
|
function Start() {
|
|
37
|
+
// This hook indicates that the page has loaded. It is used as part of Quilt’s
|
|
38
|
+
// navigation performance tracking feature. If you have disabled this feature,
|
|
39
|
+
// you can remove this hook.
|
|
40
|
+
usePerformanceNavigation();
|
|
41
|
+
|
|
36
42
|
return <div>Hello world!</div>;
|
|
37
43
|
}
|
|
38
44
|
|