@batijs/cli 0.0.311 → 0.0.313

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 (88) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +5 -5
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +4 -4
  9. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  10. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
  11. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
  12. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  13. package/dist/boilerplates/@batijs/d1/files/$README.md.js +12 -8
  14. package/dist/boilerplates/@batijs/d1/files/$package.json.js +4 -4
  15. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  16. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
  17. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +4 -4
  18. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  19. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
  20. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +4 -4
  21. package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +6 -4
  22. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +4 -4
  23. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
  24. package/dist/boilerplates/@batijs/express/files/$package.json.js +4 -4
  25. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +4 -4
  26. package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
  27. package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
  28. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +4 -4
  29. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  30. package/dist/boilerplates/@batijs/h3/files/$package.json.js +4 -4
  31. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +4 -4
  32. package/dist/boilerplates/@batijs/hono/files/$package.json.js +4 -4
  33. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
  34. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
  35. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
  36. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +4 -4
  37. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  38. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +4 -4
  39. package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +4 -4
  40. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
  41. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  42. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +6 -4
  43. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +4 -4
  44. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  45. package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
  46. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  47. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  48. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +4 -4
  49. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  50. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  51. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
  52. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  53. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  54. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  55. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +4 -4
  56. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  57. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  58. package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
  59. package/dist/boilerplates/@batijs/shared/hooks/after.js +21 -0
  60. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -4
  61. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  62. package/dist/boilerplates/@batijs/solid/files/$package.json.js +4 -4
  63. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  64. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  65. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +4 -4
  66. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  67. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
  68. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
  69. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +4 -4
  70. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
  71. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  72. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
  73. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
  74. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -4
  75. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  76. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  77. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  78. package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -4
  79. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  80. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  81. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +4 -4
  82. package/dist/boilerplates/boilerplates.json +2 -1
  83. package/dist/{chunk-XBRZBI3K.js → chunk-BOFKQILG.js} +105869 -106391
  84. package/dist/index.js +21 -95
  85. package/dist/{jiti-GY3WFVF7-AVYYESPC.js → jiti-QYPC42DC-IKOSD6A6.js} +1106 -1102
  86. package/package.json +6 -6
  87. package/dist/boilerplates/@batijs/shared/files/.gitignore +0 -146
  88. /package/dist/boilerplates/@batijs/{prettier/files/.prettierignore → shared/files/gitignore} +0 -0
package/dist/index.js CHANGED
@@ -4,13 +4,13 @@ import {
4
4
  consola
5
5
  } from "./chunk-FWD3UPBV.js";
6
6
  import {
7
- YQr,
8
- Zit,
7
+ Kus,
8
+ Xnt,
9
9
  export_which,
10
- lSs,
11
- t_s,
12
- vRe
13
- } from "./chunk-XBRZBI3K.js";
10
+ rTs,
11
+ y5e,
12
+ yXr
13
+ } from "./chunk-BOFKQILG.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 = vRe(previousContent);
38
- const currentAst = vRe(fileContent);
37
+ const previousAst = y5e(previousContent);
38
+ const currentAst = y5e(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 t_s(currentAst.generate().code, meta, {
55
+ const res = await Kus(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 t_s(code, meta, {
66
+ const result = await Kus(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 Zit(fileContent, {
100
+ return Xnt(fileContent, {
101
101
  filepath
102
102
  });
103
103
  case ".env":
@@ -1006,80 +1006,6 @@ var flags = features.map((f) => f.flag);
1006
1006
  var cliFlags = features.filter((f) => !f.invisibleCli).map((f) => f.flag);
1007
1007
 
1008
1008
  // ../features/dist/index.js
1009
- var categories = [
1010
- {
1011
- label: "Frontend Framework",
1012
- group: "Frontend",
1013
- description: `Flexible, robust, community-driven, and fast Vite-based frontend framework.`,
1014
- required: true
1015
- },
1016
- {
1017
- label: "UI Framework",
1018
- group: "Frontend",
1019
- description: `It\u2019s recommended to choose a frontend lib to kickstart a new Vike project,
1020
- as they each come with a wide range of integrations. You can at any time eject and take control over integration code
1021
- so that it doesn\u2019t get in your way.`,
1022
- required: true
1023
- },
1024
- {
1025
- label: "CSS",
1026
- group: "Frontend",
1027
- description: `These CSS libraries are deeply integrated with UI frameworks.
1028
- They showcase their respective recommended usage and how they integrate with Vite and Vike.`
1029
- },
1030
- {
1031
- label: "UI Component Libraries",
1032
- group: "Frontend",
1033
- description: `These UI Component Libraries are deeply integrated with UI frameworks.
1034
- They showcase their respective recommended usage and how they integrate with Vite and Vike.`
1035
- },
1036
- {
1037
- label: "Auth",
1038
- group: "Data",
1039
- description: `Ready to use self-hosted or cloud-based Auth solutions.
1040
- Requires to also select a Server of your choosing.`
1041
- },
1042
- {
1043
- label: "Data fetching",
1044
- group: "Data",
1045
- description: `Data fetching libraries to help you interact with your backend.
1046
- Selecting one of those usually requires you to also choose a Server.`
1047
- },
1048
- {
1049
- label: "Server",
1050
- group: "Data",
1051
- description: `Mostly required by other integrations such as Auth or RPC,
1052
- it's recommended to only install a Server if you really need to, as Vike doesn't require one to operate.`
1053
- },
1054
- {
1055
- label: "Database",
1056
- group: "Data",
1057
- description: `Helping you get started with a database solution.`
1058
- },
1059
- {
1060
- label: "Hosting",
1061
- group: "Deployment",
1062
- description: `Quickly host your Vike project with a Serverless or VPS (coming soon) solution.`
1063
- },
1064
- {
1065
- label: "Linter",
1066
- multiple: true,
1067
- group: "Utilities",
1068
- description: `Well known linting and formatting tools, pre-configured to match their recommended usage,
1069
- tailored for Vike.`
1070
- },
1071
- {
1072
- label: "Analytics",
1073
- group: "Utilities",
1074
- description: `Keep track of your website traffic with these ready-to-get-started Analytics solutions.`
1075
- },
1076
- {
1077
- label: "Error tracking",
1078
- group: "Utilities",
1079
- description: `Coming soon: Error Tracking solution for frontend and backend`
1080
- }
1081
- ];
1082
- var categoryLabelOrder = categories.map((category) => category.label);
1083
1009
  var BatiSet = class extends Set {
1084
1010
  #servers;
1085
1011
  // eslint-disable-next-line no-unused-private-class-members
@@ -2557,7 +2483,7 @@ var createDefaultQueryTester = function(query, options) {
2557
2483
  // package.json
2558
2484
  var package_default = {
2559
2485
  name: "@batijs/cli",
2560
- version: "0.0.311",
2486
+ version: "0.0.313",
2561
2487
  type: "module",
2562
2488
  scripts: {
2563
2489
  "check-types": "tsc --noEmit",
@@ -2573,7 +2499,7 @@ var package_default = {
2573
2499
  devDependencies: {
2574
2500
  "@batijs/build": "workspace:*",
2575
2501
  "@batijs/compile": "workspace:*",
2576
- "@types/node": "^18.19.65",
2502
+ "@types/node": "^18.19.67",
2577
2503
  "@types/which": "^3.0.4",
2578
2504
  citty: "^0.1.6",
2579
2505
  colorette: "^2.0.20",
@@ -2661,7 +2587,7 @@ Choose one of them, or simply remove selected Server`
2661
2587
  var __filename = fileURLToPath(import.meta.url);
2662
2588
  var __dirname = dirname(__filename);
2663
2589
  var isWin2 = process.platform === "win32";
2664
- var pm = lSs();
2590
+ var pm = rTs();
2665
2591
  function boilerplatesDir() {
2666
2592
  if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
2667
2593
  return join(__dirname, "boilerplates");
@@ -2695,10 +2621,10 @@ function findDescription(key) {
2695
2621
  }
2696
2622
  }
2697
2623
  function printOK(dist, flags2) {
2698
- const arrow0 = YQr("\u2192", blueBright);
2699
- const book0 = YQr("\u{1F4DA}", blueBright);
2700
- const list3 = YQr("-", void 0, 3);
2701
- const cmd3 = YQr("$", gray, 3);
2624
+ const arrow0 = yXr("\u2192", blueBright);
2625
+ const book0 = yXr("\u{1F4DA}", blueBright);
2626
+ const list3 = yXr("-", void 0, 3);
2627
+ const cmd3 = yXr("$", gray, 3);
2702
2628
  console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
2703
2629
  console.log(list3(green("Vike")));
2704
2630
  for (const key of flags2) {
@@ -2983,13 +2909,13 @@ async function run() {
2983
2909
  },
2984
2910
  meta
2985
2911
  );
2912
+ for (const onafter of hooksMap.get("after") ?? []) {
2913
+ await onafter(args.project, meta);
2914
+ }
2986
2915
  if (!args["skip-git"]) {
2987
2916
  gitInit(args.project);
2988
2917
  }
2989
2918
  printOK(args.project, flags2);
2990
- for (const onafter of hooksMap.get("after") ?? []) {
2991
- await onafter(meta);
2992
- }
2993
2919
  }
2994
2920
  });
2995
2921
  await runMain(main2);