@batijs/cli 0.0.196 → 0.0.197
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.
|
@@ -3,32 +3,38 @@ import { loadReadme } from "@batijs/core";
|
|
|
3
3
|
async function getReadme(props) {
|
|
4
4
|
const content = await loadReadme(props);
|
|
5
5
|
const about = `
|
|
6
|
+
|
|
6
7
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [React](https://react.dev/learn).
|
|
7
8
|
|
|
8
9
|
### \`/pages/+config.ts\`
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
Such \`+\` files are [the interface](https://vike.dev/config) between Vike and your code. It defines:
|
|
10
12
|
- A default [\`<Layout>\` component](https://vike.dev/Layout) (that wraps your [\`<Page>\` components](https://vike.dev/Page)).
|
|
11
13
|
- A default [\`title\`](https://vike.dev/head).
|
|
12
14
|
- Default [\`<head>\` tags](https://vike.dev/head).
|
|
13
15
|
|
|
14
16
|
### Routing
|
|
17
|
+
|
|
15
18
|
[Vike's built-in router](https://vike.dev/routing) lets you choose between:
|
|
16
19
|
- [Filesystem Routing](https://vike.dev/filesystem-routing) (the URL of a page is determined based on where its \`+Page.jsx\` file is located on the filesystem)
|
|
17
20
|
- [Route Strings](https://vike.dev/route-string)
|
|
18
21
|
- [Route Functions](https://vike.dev/route-function)
|
|
19
22
|
|
|
20
23
|
### \`/pages/_error/+Page.jsx\`
|
|
24
|
+
|
|
21
25
|
The [error page](https://vike.dev/error-page) which is rendered when errors occur.
|
|
22
26
|
|
|
23
27
|
### \`/pages/+onPageTransitionStart.ts\` and \`/pages/+onPageTransitionEnd.ts\`
|
|
28
|
+
|
|
24
29
|
The [\`onPageTransitionStart()\` hook](https://vike.dev/onPageTransitionStart), together with [\`onPageTransitionEnd()\`](https://vike.dev/onPageTransitionEnd), enables you to implement page transition animations.
|
|
25
30
|
|
|
26
31
|
### SSR
|
|
32
|
+
|
|
27
33
|
SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all your pages or only for some pages.
|
|
28
34
|
|
|
29
35
|
### HTML Streaming
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
|
|
37
|
+
You can enable/disable [HTML streaming](https://vike.dev/streaming) for all your pages, or only for some pages while still using it for others.`;
|
|
32
38
|
content.addAbout(about);
|
|
33
39
|
return content.finalize();
|
|
34
40
|
}
|
|
@@ -3,32 +3,38 @@ import { loadReadme } from "@batijs/core";
|
|
|
3
3
|
async function getReadme(props) {
|
|
4
4
|
const content = await loadReadme(props);
|
|
5
5
|
const about = `
|
|
6
|
+
|
|
6
7
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [SolidJS](https://www.solidjs.com/guides/getting-started).
|
|
7
8
|
|
|
8
9
|
### \`/pages/+config.ts\`
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
Such \`+\` files are [the interface](https://vike.dev/config) between Vike and your code. It defines:
|
|
10
12
|
- A default [\`<Layout>\` component](https://vike.dev/Layout) (that wraps your [\`<Page>\` components](https://vike.dev/Page)).
|
|
11
13
|
- A default [\`title\`](https://vike.dev/head).
|
|
12
14
|
- Default [\`<head>\` tags](https://vike.dev/head).
|
|
13
15
|
|
|
14
16
|
### Routing
|
|
17
|
+
|
|
15
18
|
[Vike's built-in router](https://vike.dev/routing) lets you choose between:
|
|
16
19
|
- [Filesystem Routing](https://vike.dev/filesystem-routing) (the URL of a page is determined based on where its \`+Page.jsx\` file is located on the filesystem)
|
|
17
20
|
- [Route Strings](https://vike.dev/route-string)
|
|
18
21
|
- [Route Functions](https://vike.dev/route-function)
|
|
19
22
|
|
|
20
23
|
### \`/pages/_error/+Page.jsx\`
|
|
24
|
+
|
|
21
25
|
The [error page](https://vike.dev/error-page) which is rendered when errors occur.
|
|
22
26
|
|
|
23
27
|
### \`/pages/+onPageTransitionStart.ts\` and \`/pages/+onPageTransitionEnd.ts\`
|
|
28
|
+
|
|
24
29
|
The [\`onPageTransitionStart()\` hook](https://vike.dev/onPageTransitionStart), together with [\`onPageTransitionEnd()\`](https://vike.dev/onPageTransitionEnd), enables you to implement page transition animations.
|
|
25
30
|
|
|
26
31
|
### SSR
|
|
32
|
+
|
|
27
33
|
SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all your pages or only for some pages.
|
|
28
34
|
|
|
29
35
|
### HTML Streaming
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
|
|
37
|
+
You can enable/disable [HTML streaming](https://vike.dev/streaming) for all your pages, or only for some pages while still using it for others.`;
|
|
32
38
|
content.addAbout(about);
|
|
33
39
|
return content.finalize();
|
|
34
40
|
}
|
|
@@ -3,32 +3,38 @@ import { loadReadme } from "@batijs/core";
|
|
|
3
3
|
async function getReadme(props) {
|
|
4
4
|
const content = await loadReadme(props);
|
|
5
5
|
const about = `
|
|
6
|
+
|
|
6
7
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [Vue](https://vuejs.org/guide/quick-start.html).
|
|
7
8
|
|
|
8
9
|
### \`/pages/+config.ts\`
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
Such \`+\` files are [the interface](https://vike.dev/config) between Vike and your code. It defines:
|
|
10
12
|
- A default [\`<Layout>\` component](https://vike.dev/Layout) (that wraps your [\`<Page>\` components](https://vike.dev/Page)).
|
|
11
13
|
- A default [\`title\`](https://vike.dev/head).
|
|
12
14
|
- Default [\`<head>\` tags](https://vike.dev/head).
|
|
13
15
|
|
|
14
16
|
### Routing
|
|
17
|
+
|
|
15
18
|
[Vike's built-in router](https://vike.dev/routing) lets you choose between:
|
|
16
19
|
- [Filesystem Routing](https://vike.dev/filesystem-routing) (the URL of a page is determined based on where its \`+Page.vue\` file is located on the filesystem)
|
|
17
20
|
- [Route Strings](https://vike.dev/route-string)
|
|
18
21
|
- [Route Functions](https://vike.dev/route-function)
|
|
19
22
|
|
|
20
23
|
### \`/pages/_error/+Page.vue\`
|
|
24
|
+
|
|
21
25
|
The [error page](https://vike.dev/error-page) which is rendered when errors occur.
|
|
22
26
|
|
|
23
27
|
### \`/pages/+onPageTransitionStart.ts\` and \`/pages/+onPageTransitionEnd.ts\`
|
|
28
|
+
|
|
24
29
|
The [\`onPageTransitionStart()\` hook](https://vike.dev/onPageTransitionStart), together with [\`onPageTransitionEnd()\`](https://vike.dev/onPageTransitionEnd), enables you to implement page transition animations.
|
|
25
30
|
|
|
26
31
|
### SSR
|
|
32
|
+
|
|
27
33
|
SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all your pages or only for some pages.
|
|
28
34
|
|
|
29
35
|
### HTML Streaming
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
|
|
37
|
+
You can enable/disable [HTML streaming](https://vike.dev/streaming) for all your pages, or only for some pages while still using it for others.`;
|
|
32
38
|
content.addAbout(about);
|
|
33
39
|
return content.finalize();
|
|
34
40
|
}
|
package/dist/index.js
CHANGED
|
@@ -1564,7 +1564,7 @@ var import_which_pm_runs = __toESM(require_which_pm_runs(), 1);
|
|
|
1564
1564
|
// package.json
|
|
1565
1565
|
var package_default = {
|
|
1566
1566
|
name: "@batijs/cli",
|
|
1567
|
-
version: "0.0.
|
|
1567
|
+
version: "0.0.197",
|
|
1568
1568
|
type: "module",
|
|
1569
1569
|
scripts: {
|
|
1570
1570
|
"check-types": "tsc --noEmit",
|
|
@@ -1685,7 +1685,7 @@ function printOK(dist, flags) {
|
|
|
1685
1685
|
continue;
|
|
1686
1686
|
console.log(list3(green(feature.label)));
|
|
1687
1687
|
}
|
|
1688
|
-
console.log("\n" + bold(arrow0("Ready to start
|
|
1688
|
+
console.log("\n" + bold(arrow0("Ready to start your app:")));
|
|
1689
1689
|
console.log(cmd3(`cd ${dist}`));
|
|
1690
1690
|
switch (pm?.name) {
|
|
1691
1691
|
case "bun": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.197",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"typescript": "^5.4.5",
|
|
22
22
|
"vite": "^5.2.11",
|
|
23
23
|
"which-pm-runs": "^1.1.0",
|
|
24
|
-
"@batijs/build": "0.0.
|
|
25
|
-
"@batijs/compile": "0.0.
|
|
24
|
+
"@batijs/build": "0.0.197",
|
|
25
|
+
"@batijs/compile": "0.0.197"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@batijs/core": "0.0.
|
|
29
|
-
"@batijs/features": "0.0.
|
|
28
|
+
"@batijs/core": "0.0.197",
|
|
29
|
+
"@batijs/features": "0.0.197"
|
|
30
30
|
},
|
|
31
31
|
"bin": "./dist/index.js",
|
|
32
32
|
"exports": {
|