@batijs/cli 0.0.499 → 0.0.501

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 (99) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/{$README.md.js → $TODO.md.js} +7 -7
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +6 -46
  5. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +59 -0
  6. package/dist/boilerplates/@batijs/aws/files/$package.json.js +3 -3
  7. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  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/compiled/files/$package.json.js +3 -3
  11. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  12. package/dist/boilerplates/@batijs/d1/files/{$README.md.js → $TODO.md.js} +8 -10
  13. package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
  14. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  15. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
  16. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  17. package/dist/boilerplates/@batijs/drizzle/files/{$README.md.js → $TODO.md.js} +7 -7
  18. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
  19. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
  20. package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
  21. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
  22. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  23. package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
  24. package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
  25. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +5 -5
  26. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +7 -13
  27. package/dist/boilerplates/@batijs/mantine/files/{layouts/Layout.tsx → pages/+Layout.tsx} +7 -2
  28. package/dist/boilerplates/@batijs/photon/files/$README.md.js +3 -3
  29. package/dist/boilerplates/@batijs/photon/files/$package.json.js +3 -3
  30. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +25 -0
  31. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
  32. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  33. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  34. package/dist/boilerplates/@batijs/prisma/files/{$README.md.js → $TODO.md.js} +8 -11
  35. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
  36. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  37. package/dist/boilerplates/@batijs/react/files/$package.json.js +9 -9
  38. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  39. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  40. package/dist/boilerplates/@batijs/react/files/{layouts/Layout.tsx → pages/+Layout.tsx} +1 -1
  41. package/dist/boilerplates/@batijs/react/files/pages/+config.ts +0 -4
  42. package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +1 -3
  43. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +3 -3
  44. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  45. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -9
  46. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +30 -0
  47. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +3 -3
  48. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  49. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +4 -4
  50. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  51. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
  52. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  53. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  54. package/dist/boilerplates/@batijs/shared/files/$README.md.js +8 -9
  55. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +32 -0
  56. package/dist/boilerplates/@batijs/shared/hooks/after.js +11 -9
  57. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
  58. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  59. package/dist/boilerplates/@batijs/solid/files/$package.json.js +9 -9
  60. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  61. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  62. package/dist/boilerplates/@batijs/solid/files/{layouts/Layout.tsx → pages/+Layout.tsx} +1 -1
  63. package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +0 -4
  64. package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +0 -2
  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 → $TODO.md.js} +8 -8
  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/tailwindcss/files/$vite.config.ts.js +5 -5
  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/trpc/client.d.ts +1 -1
  75. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
  76. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
  77. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  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/files/pages/+Head.vue +1 -1
  83. package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +0 -4
  84. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
  85. package/dist/boilerplates/boilerplates.json +11 -0
  86. package/dist/{chunk-EHN5UPTR.js → chunk-SXCPSC7N.js} +26951 -26979
  87. package/dist/index.js +25 -82
  88. package/package.json +5 -5
  89. package/dist/boilerplates/@batijs/mantine/files/layouts/theme.ts +0 -9
  90. package/dist/boilerplates/@batijs/mantine/types/layouts/theme.d.ts +0 -3
  91. /package/dist/boilerplates/@batijs/mantine/files/{layouts/style.css → pages/Layout.css} +0 -0
  92. /package/dist/boilerplates/@batijs/mantine/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
  93. /package/dist/boilerplates/@batijs/react/files/{layouts → pages}/Layout.css +0 -0
  94. /package/dist/boilerplates/@batijs/react/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
  95. /package/dist/boilerplates/@batijs/shadcn-ui/files/{layouts → pages}/!tailwind.css +0 -0
  96. /package/dist/boilerplates/@batijs/solid/files/{layouts → pages}/Layout.css +0 -0
  97. /package/dist/boilerplates/@batijs/solid/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
  98. /package/dist/boilerplates/@batijs/tailwindcss/files/{layouts → pages}/tailwind.css +0 -0
  99. /package/dist/boilerplates/@batijs/vue/files/{layouts/Layout.vue → pages/+Layout.vue} +0 -0
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Efs,
6
+ EBs,
7
+ Pit,
7
8
  Sme,
8
- Tir,
9
9
  export_which,
10
- jBs,
11
- kit,
12
- vfs
13
- } from "./chunk-EHN5UPTR.js";
10
+ ffs,
11
+ gir,
12
+ ufs
13
+ } from "./chunk-SXCPSC7N.js";
14
14
  import "./chunk-IAWYWZSL.js";
15
15
  import {
16
16
  __commonJS,
@@ -11057,7 +11057,7 @@ async function mergeDts({
11057
11057
  currentAst.$ast.body.splice(index, 0, node);
11058
11058
  }
11059
11059
  }
11060
- const res = await vfs(currentAst.generate().code, meta, {
11060
+ const res = await ufs(currentAst.generate().code, meta, {
11061
11061
  filepath
11062
11062
  });
11063
11063
  return clearExports(res.code, meta);
@@ -11081,7 +11081,7 @@ async function executeOperationFile(op, {
11081
11081
  }) {
11082
11082
  const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
11083
11083
  const filepath = relative(op.source, op.sourceAbsolute);
11084
- const result = await vfs(code, meta, {
11084
+ const result = await ufs(code, meta, {
11085
11085
  filepath
11086
11086
  });
11087
11087
  let fileContent = result.code;
@@ -11165,7 +11165,7 @@ async function transformFileAfterExec(filepath, fileContent) {
11165
11165
  case ".js":
11166
11166
  case ".tsx":
11167
11167
  case ".jsx":
11168
- return kit(fileContent, {
11168
+ return Pit(fileContent, {
11169
11169
  filepath
11170
11170
  });
11171
11171
  case ".env":
@@ -16932,7 +16932,7 @@ var createDefaultQueryTester = function(query, options) {
16932
16932
  // package.json
16933
16933
  var package_default = {
16934
16934
  name: "@batijs/cli",
16935
- version: "0.0.499",
16935
+ version: "0.0.501",
16936
16936
  type: "module",
16937
16937
  scripts: {
16938
16938
  "check-types": "tsc --noEmit",
@@ -17027,7 +17027,7 @@ printInit();
17027
17027
  var __filename = fileURLToPath(import.meta.url);
17028
17028
  var __dirname = dirname(__filename);
17029
17029
  var isWin2 = process.platform === "win32";
17030
- var pm = Efs();
17030
+ var pm = ffs();
17031
17031
  function boilerplatesDir() {
17032
17032
  if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
17033
17033
  return join(__dirname, "boilerplates");
@@ -17060,83 +17060,26 @@ function findDescription(key) {
17060
17060
  return `Include ${feat.label}`;
17061
17061
  }
17062
17062
  }
17063
- var hasAdditionalSteps = {
17064
- // UI Frameworks - work out of the box
17065
- react: false,
17066
- vue: false,
17067
- solid: false,
17068
- vike: false,
17069
- // Always included, invisible in CLI
17070
- // CSS - work out of the box
17071
- tailwindcss: false,
17072
- "compiled-css": false,
17073
- // UI Component Libraries - work out of the box or minimal setup
17074
- daisyui: false,
17075
- // Works with Tailwind out of the box
17076
- "shadcn-ui": false,
17077
- // Components can be added via CLI but not required
17078
- mantine: false,
17079
- // Theme is pre-configured, minimal setup
17080
- // Auth - require configuration
17081
- auth0: true,
17082
- // Requires Auth0 account, client ID/secret, callback URLs
17083
- authjs: true,
17084
- // Requires provider configuration and secret setup
17085
- // Data fetching - work out of the box
17086
- telefunc: false,
17087
- trpc: false,
17088
- "ts-rest": false,
17089
- // Server frameworks - work out of the box
17090
- hono: false,
17091
- h3: false,
17092
- express: false,
17093
- fastify: false,
17094
- // Database - require setup
17095
- drizzle: true,
17096
- // Requires DATABASE_URL and migration commands
17097
- sqlite: true,
17098
- // Requires DATABASE_URL and migration setup
17099
- prisma: true,
17100
- // Requires prisma init and schema setup
17101
- // Deployment platforms - work out of the box
17102
- cloudflare: false,
17103
- vercel: false,
17104
- aws: true,
17105
- // Requires AWS CDK deployment setup
17106
- // Analytics - minimal setup (just domain update)
17107
- "google-analytics": false,
17108
- "plausible.io": false,
17109
- // Just needs domain update in script tag
17110
- segment: false,
17111
- // Error tracking - requires configuration
17112
- sentry: true,
17113
- // Requires Sentry DSN and build plugin configuration
17114
- // Development tools - work out of the box
17115
- eslint: false,
17116
- biome: false,
17117
- prettier: false,
17118
- // Disabled features
17119
- logrocket: false,
17120
- // Currently disabled
17121
- netlify: false
17122
- // Deployment platform
17123
- };
17124
- function hasRemainingSteps(flags2) {
17125
- assert(features.every((f2) => f2.flag in hasAdditionalSteps));
17126
- return flags2.some((flag) => hasAdditionalSteps[flag] === true);
17063
+ async function hasRemainingSteps(dist) {
17064
+ try {
17065
+ await access(join(dist, "TODO.md"));
17066
+ return true;
17067
+ } catch {
17068
+ return false;
17069
+ }
17127
17070
  }
17128
17071
  function printInit() {
17129
- const v = jBs();
17072
+ const v = EBs();
17130
17073
  const version = v.semver.at(-1);
17131
17074
  assert(version);
17132
17075
  console.log(`
17133
17076
  \u{1F528} ${cyan("Vike Scaffolder")} \u{1F528} ${gray(`v${version}`)}
17134
17077
  `);
17135
17078
  }
17136
- function printOK(dist, flags2) {
17079
+ async function printOK(dist, flags2) {
17137
17080
  const indent = 1;
17138
- const list = Tir("-", gray, indent);
17139
- const cmd = Tir("$", gray, indent);
17081
+ const list = gir("-", gray, indent);
17082
+ const cmd = gir("$", gray, indent);
17140
17083
  const distPretty = prettifyDist(dist);
17141
17084
  console.log(`${green(`${bold("\u2713")} Project created: ${bold(distPretty)}`)}`);
17142
17085
  console.log(list("Vike"));
@@ -17170,8 +17113,8 @@ ${bold("Next steps:")}`);
17170
17113
  break;
17171
17114
  }
17172
17115
  }
17173
- if (hasRemainingSteps(flags2)) {
17174
- console.log(Tir("-", gray, indent)(`Check README.md for remaining steps`));
17116
+ if (await hasRemainingSteps(dist)) {
17117
+ console.log(gir("\u2022\uFE0F", gray, indent)(`Check ${bold("TODO.md")} for remaining steps`));
17175
17118
  }
17176
17119
  console.log("\nHappy coding! \u{1F680}\n");
17177
17120
  }
@@ -17466,7 +17409,7 @@ async function run() {
17466
17409
  if (!args["skip-git"]) {
17467
17410
  gitInit(args.project);
17468
17411
  }
17469
- printOK(args.project, flags2);
17412
+ await printOK(args.project, flags2);
17470
17413
  }
17471
17414
  });
17472
17415
  await runMain(main2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.499",
3
+ "version": "0.0.501",
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.9.3",
21
21
  "unplugin-purge-polyfills": "^0.1.0",
22
22
  "vite": "^7.2.2",
23
- "@batijs/build": "0.0.499",
24
- "@batijs/compile": "0.0.499"
23
+ "@batijs/build": "0.0.501",
24
+ "@batijs/compile": "0.0.501"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/core": "0.0.499",
28
- "@batijs/features": "0.0.499"
27
+ "@batijs/core": "0.0.501",
28
+ "@batijs/features": "0.0.501"
29
29
  },
30
30
  "bin": "./cli.js",
31
31
  "exports": {
@@ -1,9 +0,0 @@
1
- import type { MantineThemeOverride } from "@mantine/core";
2
- import { createTheme } from "@mantine/core";
3
-
4
- const theme: MantineThemeOverride = createTheme({
5
- /** Put your mantine theme override here */
6
- primaryColor: "violet",
7
- });
8
-
9
- export default theme;
@@ -1,3 +0,0 @@
1
- import type { MantineThemeOverride } from "@mantine/core";
2
- declare const theme: MantineThemeOverride;
3
- export default theme;