@batijs/cli 0.0.288 → 0.0.290
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/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +7 -6
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/cdk/lib/vike-stack.ts +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/.prettierignore +4 -0
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$README.md.js +6 -5
- package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +33 -11
- package/dist/boilerplates/@batijs/shared/files/.gitignore +4 -0
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +12 -12
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
- package/dist/{chunk-BX6YHROU.js → chunk-A2ICK2V5.js} +115424 -112276
- package/dist/index.js +91 -17
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
consola
|
|
5
5
|
} from "./chunk-FWD3UPBV.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
M8e,
|
|
8
|
+
YGr,
|
|
9
|
+
ags,
|
|
10
10
|
export_which,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
11
|
+
lnt,
|
|
12
|
+
tas
|
|
13
|
+
} from "./chunk-A2ICK2V5.js";
|
|
14
14
|
import "./chunk-LU7IBQI7.js";
|
|
15
15
|
|
|
16
16
|
// index.ts
|
|
@@ -34,8 +34,8 @@ async function mergeDts({
|
|
|
34
34
|
filepath,
|
|
35
35
|
meta
|
|
36
36
|
}) {
|
|
37
|
-
const previousAst =
|
|
38
|
-
const currentAst =
|
|
37
|
+
const previousAst = M8e(previousContent);
|
|
38
|
+
const currentAst = M8e(fileContent);
|
|
39
39
|
for (const imp of previousAst.imports.$items) {
|
|
40
40
|
currentAst.imports[imp.local] = imp;
|
|
41
41
|
}
|
|
@@ -52,7 +52,7 @@ async function mergeDts({
|
|
|
52
52
|
currentAst.$ast.body.splice(index, 0, node);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
const res = await
|
|
55
|
+
const res = await tas(currentAst.generate().code, meta, {
|
|
56
56
|
filepath
|
|
57
57
|
});
|
|
58
58
|
return res.code;
|
|
@@ -63,7 +63,7 @@ async function executeOperationFile(op, {
|
|
|
63
63
|
}) {
|
|
64
64
|
const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
|
|
65
65
|
const filepath = relative(op.source, op.sourceAbsolute);
|
|
66
|
-
const result = await
|
|
66
|
+
const result = await tas(code, meta, {
|
|
67
67
|
filepath
|
|
68
68
|
});
|
|
69
69
|
let fileContent = result.code;
|
|
@@ -97,7 +97,7 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
97
97
|
case ".js":
|
|
98
98
|
case ".tsx":
|
|
99
99
|
case ".jsx":
|
|
100
|
-
return
|
|
100
|
+
return lnt(fileContent, {
|
|
101
101
|
filepath
|
|
102
102
|
});
|
|
103
103
|
case ".env":
|
|
@@ -991,6 +991,80 @@ var flags = features.map((f) => f.flag);
|
|
|
991
991
|
var cliFlags = features.filter((f) => !f.invisibleCli).map((f) => f.flag);
|
|
992
992
|
|
|
993
993
|
// ../features/dist/index.js
|
|
994
|
+
var categories = [
|
|
995
|
+
{
|
|
996
|
+
label: "Frontend Framework",
|
|
997
|
+
group: "Frontend",
|
|
998
|
+
description: `Flexible, robust, community-driven, and fast Vite-based frontend framework.`,
|
|
999
|
+
required: true
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
label: "UI Framework",
|
|
1003
|
+
group: "Frontend",
|
|
1004
|
+
description: `It\u2019s recommended to choose a frontend lib to kickstart a new Vike project,
|
|
1005
|
+
as they each come with a wide range of integrations. You can at any time eject and take control over integration code
|
|
1006
|
+
so that it doesn\u2019t get in your way.`,
|
|
1007
|
+
required: true
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
label: "CSS",
|
|
1011
|
+
group: "Frontend",
|
|
1012
|
+
description: `These CSS libraries are deeply integrated with UI frameworks.
|
|
1013
|
+
They showcase their respective recommended usage and how they integrate with Vite and Vike.`
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
label: "UI Component Libraries",
|
|
1017
|
+
group: "Frontend",
|
|
1018
|
+
description: `These UI Component Libraries are deeply integrated with UI frameworks.
|
|
1019
|
+
They showcase their respective recommended usage and how they integrate with Vite and Vike.`
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
label: "Auth",
|
|
1023
|
+
group: "Data",
|
|
1024
|
+
description: `Ready to use self-hosted or cloud-based Auth solutions.
|
|
1025
|
+
Requires to also select a Server of your choosing.`
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
label: "Data fetching",
|
|
1029
|
+
group: "Data",
|
|
1030
|
+
description: `Data fetching libraries to help you interact with your backend.
|
|
1031
|
+
Selecting one of those usually requires you to also choose a Server.`
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
label: "Server",
|
|
1035
|
+
group: "Data",
|
|
1036
|
+
description: `Mostly required by other integrations such as Auth or RPC,
|
|
1037
|
+
it's recommended to only install a Server if you really need to, as Vike doesn't require one to operate.`
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
label: "Database",
|
|
1041
|
+
group: "Data",
|
|
1042
|
+
description: `Helping you get started with a database solution.`
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
label: "Hosting",
|
|
1046
|
+
group: "Deployment",
|
|
1047
|
+
description: `Quickly host your Vike project with a Serverless or VPS (coming soon) solution.`
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
label: "Linter",
|
|
1051
|
+
multiple: true,
|
|
1052
|
+
group: "Utilities",
|
|
1053
|
+
description: `Well known linting and formatting tools, pre-configured to match their recommended usage,
|
|
1054
|
+
tailored for Vike.`
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
label: "Analytics",
|
|
1058
|
+
group: "Utilities",
|
|
1059
|
+
description: `Keep track of your website traffic with these ready-to-get-started Analytics solutions.`
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
label: "Error tracking",
|
|
1063
|
+
group: "Utilities",
|
|
1064
|
+
description: `Coming soon: Error Tracking solution for frontend and backend`
|
|
1065
|
+
}
|
|
1066
|
+
];
|
|
1067
|
+
var categoryLabelOrder = categories.map((category) => category.label);
|
|
994
1068
|
var BatiSet = class extends Set {
|
|
995
1069
|
#servers;
|
|
996
1070
|
// eslint-disable-next-line no-unused-private-class-members
|
|
@@ -2468,7 +2542,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
2468
2542
|
// package.json
|
|
2469
2543
|
var package_default = {
|
|
2470
2544
|
name: "@batijs/cli",
|
|
2471
|
-
version: "0.0.
|
|
2545
|
+
version: "0.0.290",
|
|
2472
2546
|
type: "module",
|
|
2473
2547
|
scripts: {
|
|
2474
2548
|
"check-types": "tsc --noEmit",
|
|
@@ -2572,7 +2646,7 @@ Choose one of them, or simply remove selected Server`
|
|
|
2572
2646
|
var __filename = fileURLToPath(import.meta.url);
|
|
2573
2647
|
var __dirname = dirname(__filename);
|
|
2574
2648
|
var isWin2 = process.platform === "win32";
|
|
2575
|
-
var pm =
|
|
2649
|
+
var pm = ags();
|
|
2576
2650
|
function boilerplatesDir() {
|
|
2577
2651
|
if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
|
|
2578
2652
|
return join(__dirname, "boilerplates");
|
|
@@ -2606,10 +2680,10 @@ function findDescription(key) {
|
|
|
2606
2680
|
}
|
|
2607
2681
|
}
|
|
2608
2682
|
function printOK(dist, flags2) {
|
|
2609
|
-
const arrow0 =
|
|
2610
|
-
const book0 =
|
|
2611
|
-
const list3 =
|
|
2612
|
-
const cmd3 =
|
|
2683
|
+
const arrow0 = YGr("\u2192", blueBright);
|
|
2684
|
+
const book0 = YGr("\u{1F4DA}", blueBright);
|
|
2685
|
+
const list3 = YGr("-", void 0, 3);
|
|
2686
|
+
const cmd3 = YGr("$", gray, 3);
|
|
2613
2687
|
console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
|
|
2614
2688
|
console.log(list3(green("Vike")));
|
|
2615
2689
|
for (const key of flags2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.290",
|
|
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",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"typescript": "^5.6.2",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
22
22
|
"vite": "^5.4.7",
|
|
23
|
-
"@batijs/compile": "0.0.
|
|
24
|
-
"@batijs/build": "0.0.
|
|
23
|
+
"@batijs/compile": "0.0.290",
|
|
24
|
+
"@batijs/build": "0.0.290"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/
|
|
28
|
-
"@batijs/
|
|
27
|
+
"@batijs/core": "0.0.290",
|
|
28
|
+
"@batijs/features": "0.0.290"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./dist/index.js",
|
|
31
31
|
"exports": {
|