@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.
Files changed (87) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +5 -5
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +7 -6
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +3 -3
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/aws/files/cdk/lib/vike-stack.ts +1 -1
  8. package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
  9. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
  10. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  11. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
  12. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
  13. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  14. package/dist/boilerplates/@batijs/d1/files/$README.md.js +5 -5
  15. package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
  16. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  17. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
  18. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
  19. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  20. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +5 -5
  21. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
  22. package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +5 -5
  23. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +3 -3
  24. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
  25. package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
  26. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
  27. package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
  28. package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +5 -5
  29. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +3 -3
  30. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  31. package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
  32. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +3 -3
  33. package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
  34. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
  35. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
  36. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +5 -5
  37. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +3 -3
  38. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +5 -5
  39. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
  40. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  41. package/dist/boilerplates/@batijs/prettier/files/.prettierignore +4 -0
  42. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  43. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +5 -5
  44. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
  45. package/dist/boilerplates/@batijs/react/files/$README.md.js +6 -5
  46. package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -3
  47. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  48. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  49. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +3 -3
  50. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  51. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +5 -5
  52. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +3 -3
  53. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  54. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  55. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +5 -5
  56. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
  57. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  58. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  59. package/dist/boilerplates/@batijs/shared/files/$README.md.js +33 -11
  60. package/dist/boilerplates/@batijs/shared/files/.gitignore +4 -0
  61. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
  62. package/dist/boilerplates/@batijs/solid/files/$README.md.js +5 -5
  63. package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
  64. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  65. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  66. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +3 -3
  67. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  68. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +5 -5
  69. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
  70. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
  71. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
  72. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  73. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
  74. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
  75. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +12 -12
  76. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
  77. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
  78. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  79. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  80. package/dist/boilerplates/@batijs/vue/files/$README.md.js +5 -5
  81. package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -3
  82. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  83. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  84. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
  85. package/dist/{chunk-BX6YHROU.js → chunk-A2ICK2V5.js} +115424 -112276
  86. package/dist/index.js +91 -17
  87. 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
- JLe,
8
- Vtt,
9
- Xus,
7
+ M8e,
8
+ YGr,
9
+ ags,
10
10
  export_which,
11
- hrs,
12
- sWr
13
- } from "./chunk-BX6YHROU.js";
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 = JLe(previousContent);
38
- const currentAst = JLe(fileContent);
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 hrs(currentAst.generate().code, meta, {
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 hrs(code, meta, {
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 Vtt(fileContent, {
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.288",
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 = Xus();
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 = sWr("\u2192", blueBright);
2610
- const book0 = sWr("\u{1F4DA}", blueBright);
2611
- const list3 = sWr("-", void 0, 3);
2612
- const cmd3 = sWr("$", gray, 3);
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.288",
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.288",
24
- "@batijs/build": "0.0.288"
23
+ "@batijs/compile": "0.0.290",
24
+ "@batijs/build": "0.0.290"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/features": "0.0.288",
28
- "@batijs/core": "0.0.288"
27
+ "@batijs/core": "0.0.290",
28
+ "@batijs/features": "0.0.290"
29
29
  },
30
30
  "bin": "./dist/index.js",
31
31
  "exports": {