@batijs/cli 0.0.312 → 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 +3 -3
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  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/biome/files/$package.json.js +3 -3
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
  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 +3 -3
  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 +3 -3
  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 +3 -3
  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 +3 -3
  21. package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +6 -4
  22. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +3 -3
  23. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
  24. package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
  25. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
  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 +3 -3
  29. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  30. package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
  31. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +3 -3
  32. package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
  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 +3 -3
  37. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  38. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
  39. package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +3 -3
  40. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  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 +3 -3
  44. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  45. package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -3
  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 +3 -3
  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 +3 -3
  52. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  53. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +7 -7
  54. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  55. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
  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 +3 -3
  61. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  62. package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
  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 +3 -3
  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 +3 -3
  69. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
  70. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
  71. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  72. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
  73. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +12 -12
  74. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
  75. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
  76. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  77. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  78. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  79. package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -3
  80. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  81. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  82. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
  83. package/dist/boilerplates/boilerplates.json +2 -1
  84. package/dist/{chunk-NDHDR3WS.js → chunk-BOFKQILG.js} +35464 -35484
  85. package/dist/index.js +20 -94
  86. package/package.json +5 -5
  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
- Hus,
8
- bXr,
9
- eit,
7
+ Kus,
8
+ Xnt,
10
9
  export_which,
11
- iTs,
12
- v5e
13
- } from "./chunk-NDHDR3WS.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 = v5e(previousContent);
38
- const currentAst = v5e(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 Hus(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 Hus(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 eit(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.312",
2486
+ version: "0.0.313",
2561
2487
  type: "module",
2562
2488
  scripts: {
2563
2489
  "check-types": "tsc --noEmit",
@@ -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 = iTs();
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 = bXr("\u2192", blueBright);
2699
- const book0 = bXr("\u{1F4DA}", blueBright);
2700
- const list3 = bXr("-", void 0, 3);
2701
- const cmd3 = bXr("$", 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.312",
3
+ "version": "0.0.313",
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.7.2",
21
21
  "unplugin-purge-polyfills": "^0.0.7",
22
22
  "vite": "^5.4.11",
23
- "@batijs/build": "0.0.312",
24
- "@batijs/compile": "0.0.312"
23
+ "@batijs/compile": "0.0.313",
24
+ "@batijs/build": "0.0.313"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/core": "0.0.312",
28
- "@batijs/features": "0.0.312"
27
+ "@batijs/features": "0.0.313",
28
+ "@batijs/core": "0.0.313"
29
29
  },
30
30
  "bin": "./dist/index.js",
31
31
  "exports": {
@@ -1,146 +0,0 @@
1
- # Logs
2
- logs
3
- *.log
4
- npm-debug.log*
5
- yarn-debug.log*
6
- yarn-error.log*
7
- lerna-debug.log*
8
- .pnpm-debug.log*
9
-
10
- # Diagnostic reports (https://nodejs.org/api/report.html)
11
- report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12
-
13
- # Runtime data
14
- pids
15
- *.pid
16
- *.seed
17
- *.pid.lock
18
-
19
- # Directory for instrumented libs generated by jscoverage/JSCover
20
- lib-cov
21
-
22
- # Coverage directory used by tools like istanbul
23
- coverage
24
- *.lcov
25
-
26
- # nyc test coverage
27
- .nyc_output
28
-
29
- # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30
- .grunt
31
-
32
- # Bower dependency directory (https://bower.io/)
33
- bower_components
34
-
35
- # node-waf configuration
36
- .lock-wscript
37
-
38
- # Compiled binary addons (https://nodejs.org/api/addons.html)
39
- build/Release
40
-
41
- # Dependency directories
42
- node_modules/
43
- jspm_packages/
44
-
45
- # Snowpack dependency directory (https://snowpack.dev/)
46
- web_modules/
47
-
48
- # TypeScript cache
49
- *.tsbuildinfo
50
-
51
- # Optional npm cache directory
52
- .npm
53
-
54
- # Optional eslint cache
55
- .eslintcache
56
-
57
- # Optional stylelint cache
58
- .stylelintcache
59
-
60
- # Microbundle cache
61
- .rpt2_cache/
62
- .rts2_cache_cjs/
63
- .rts2_cache_es/
64
- .rts2_cache_umd/
65
-
66
- # Optional REPL history
67
- .node_repl_history
68
-
69
- # Output of 'npm pack'
70
- *.tgz
71
-
72
- # Yarn Integrity file
73
- .yarn-integrity
74
-
75
- # dotenv environment variable files
76
- .env
77
- .env.development.local
78
- .env.test.local
79
- .env.production.local
80
- .env.local
81
-
82
- # parcel-bundler cache (https://parceljs.org/)
83
- .cache
84
- .parcel-cache
85
-
86
- # firebase-admin service-account
87
- firebase
88
-
89
- # Next.js build output
90
- .next
91
- out
92
-
93
- # Nuxt.js build / generate output
94
- .nuxt
95
- dist
96
-
97
- # Gatsby files
98
- .cache/
99
- # Comment in the public line in if your project uses Gatsby and not Next.js
100
- # https://nextjs.org/blog/next-9-1#public-directory-support
101
- # public
102
-
103
- # vuepress build output
104
- .vuepress/dist
105
-
106
- # vuepress v2.x temp and cache directory
107
- .temp
108
-
109
- # Docusaurus cache and generated files
110
- .docusaurus
111
-
112
- # Serverless directories
113
- .serverless/
114
-
115
- # FuseBox cache
116
- .fusebox/
117
-
118
- # DynamoDB Local files
119
- .dynamodb/
120
-
121
- # TernJS port file
122
- .tern-port
123
-
124
- # Stores VSCode versions used for testing VSCode extensions
125
- .vscode-test
126
-
127
- # yarn v2
128
- .yarn/cache
129
- .yarn/unplugged
130
- .yarn/build-state.yml
131
- .yarn/install-state.gz
132
- .pnp.*
133
-
134
- # Cloudflare
135
- .wrangler/
136
-
137
- # Sentry Vite Plugin
138
- .env.sentry-build-plugin
139
-
140
- # aws-cdk
141
- .cdk.staging
142
- cdk.out
143
-
144
- ## Panda
145
- styled-system
146
- styled-system-studio