@batijs/cli 0.0.653 → 0.0.654
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/{asset-package.json-Si0Lg6sw.js → asset-package.json-B9hqkASo.js} +1 -1
- package/dist/{asset-package.json-Cr9kL--9.js → asset-package.json-BTRRukgq.js} +1 -1
- package/dist/{asset-package.json-CK8Focys.js → asset-package.json-D0F4ITHn.js} +1 -1
- package/dist/{asset-package.json-DP7v-FYq.js → asset-package.json-DbnTcIM5.js} +1 -1
- package/dist/boilerplates/@batijs/auth0/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/authjs/bati.config.mjs +16 -2
- package/dist/boilerplates/@batijs/aws/bati.config.mjs +13 -1
- package/dist/boilerplates/@batijs/better-auth/bati.config.mjs +17 -2
- package/dist/boilerplates/@batijs/biome/bati.config.mjs +16 -2
- package/dist/boilerplates/@batijs/cloudflare/bati.config.mjs +15 -1
- package/dist/boilerplates/@batijs/compiled/bati.config.mjs +13 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/d1/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/d1-kysely/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.mjs +18 -4
- package/dist/boilerplates/@batijs/docker-compose/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/dokploy/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/drizzle/bati.config.mjs +17 -1
- package/dist/boilerplates/@batijs/edgeone/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/elysia/bati.config.mjs +15 -2
- package/dist/boilerplates/@batijs/elysia/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/elysia/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/eslint/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/express/bati.config.mjs +15 -2
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/fastify/bati.config.mjs +15 -2
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/google-analytics/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/hono/bati.config.mjs +15 -2
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/asset-package.json.mjs +1 -1
- package/dist/boilerplates/@batijs/kysely/bati.config.mjs +16 -2
- package/dist/boilerplates/@batijs/mantine/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/netlify/bati.config.mjs +18 -4
- package/dist/boilerplates/@batijs/oxlint/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/plausible.io/bati.config.mjs +18 -4
- package/dist/boilerplates/@batijs/pnpm/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/postgres/bati.config.mjs +13 -1
- package/dist/boilerplates/@batijs/prettier/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/prisma/bati.config.mjs +20 -2
- package/dist/boilerplates/@batijs/react/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/react-better-auth/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/react-sentry/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/sentry/bati.config.mjs +14 -1
- package/dist/boilerplates/@batijs/shadcn-ui/bati.config.mjs +19 -4
- package/dist/boilerplates/@batijs/shared/bati.config.mjs +94 -1
- package/dist/boilerplates/@batijs/shared-agents/bati.config.mjs +17 -0
- package/dist/boilerplates/@batijs/shared-agents/hooks/after.mjs +15 -0
- package/dist/boilerplates/@batijs/shared-agents/hooks/asset-boilerplates/shared-agents/agents-md.mjs +70 -0
- package/dist/boilerplates/@batijs/shared-agents/hooks/asset-boilerplates/shared-agents/compose.mjs +44 -0
- package/dist/boilerplates/@batijs/shared-agents/hooks/asset-packages/features/dist/features-CStxEDu3.mjs +690 -0
- package/dist/boilerplates/@batijs/shared-agents/hooks/asset-packages/features/dist/index.mjs +160 -0
- package/dist/boilerplates/@batijs/shared-db/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/shared-env/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/shared-server/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/shared-todo/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/solid/bati.config.mjs +18 -4
- package/dist/boilerplates/@batijs/solid-better-auth/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/sqlite/bati.config.mjs +13 -1
- package/dist/boilerplates/@batijs/storybook/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/tailwindcss/bati.config.mjs +27 -2
- package/dist/boilerplates/@batijs/telefunc/bati.config.mjs +20 -4
- package/dist/boilerplates/@batijs/trpc/bati.config.mjs +19 -4
- package/dist/boilerplates/@batijs/ts-rest/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/universal-deploy/bati.config.mjs +21 -4
- package/dist/boilerplates/@batijs/vercel/bati.config.mjs +13 -1
- package/dist/boilerplates/@batijs/vue/bati.config.mjs +14 -2
- package/dist/boilerplates/@batijs/vue-better-auth/bati.config.mjs +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/bati.config.mjs +1 -1
- package/dist/boilerplates/boilerplates.json +6 -0
- package/dist/index.js +6 -2
- package/package.json +5 -5
- package/dist/{asset-package.json-uf2g2h8M.js → asset-package.json-C5reKTg3.js} +1 -1
|
@@ -3,7 +3,7 @@ function e(e, t) {
|
|
|
3
3
|
if (!e) throw Error(t);
|
|
4
4
|
}
|
|
5
5
|
function t(t) {
|
|
6
|
-
return `enforce` in t && e(t.enforce === `pre` || t.enforce === `post`, `'enforce' must be 'pre' or 'post', was ${t.enforce}`), `if` in t && e(typeof t.if == `function`, `'if' must be a function`), `nextSteps` in t && e(typeof t.nextSteps == `function`, `'nextSteps' must be a function`), `knip` in t && (e(typeof t.knip == `object` && t.knip !== null, `'knip' must be an object`), `entry` in t.knip && e(Array.isArray(t.knip.entry), `'knip.entry' must be an array`), `ignoreDependencies` in t.knip && e(Array.isArray(t.knip.ignoreDependencies), `'knip.ignoreDependencies' must be an array`), `ignore` in t.knip && e(Array.isArray(t.knip.ignore), `'knip.ignore' must be an array`), `vite` in t.knip && e(typeof t.knip.vite == `boolean`, `'knip.vite' must be a boolean`)), `env` in t && e(typeof t.env == `function`, `'env' must be a function of meta`), `deploy` in t && e(Array.isArray(t.deploy) || typeof t.deploy == `function`, `'deploy' must be an array or a function of meta`), t;
|
|
6
|
+
return `enforce` in t && e(t.enforce === `pre` || t.enforce === `post`, `'enforce' must be 'pre' or 'post', was ${t.enforce}`), `if` in t && e(typeof t.if == `function`, `'if' must be a function`), `nextSteps` in t && e(typeof t.nextSteps == `function`, `'nextSteps' must be a function`), `knip` in t && (e(typeof t.knip == `object` && t.knip !== null, `'knip' must be an object`), `entry` in t.knip && e(Array.isArray(t.knip.entry), `'knip.entry' must be an array`), `ignoreDependencies` in t.knip && e(Array.isArray(t.knip.ignoreDependencies), `'knip.ignoreDependencies' must be an array`), `ignore` in t.knip && e(Array.isArray(t.knip.ignore), `'knip.ignore' must be an array`), `vite` in t.knip && e(typeof t.knip.vite == `boolean`, `'knip.vite' must be a boolean`)), `env` in t && e(typeof t.env == `function`, `'env' must be a function of meta`), `deploy` in t && e(Array.isArray(t.deploy) || typeof t.deploy == `function`, `'deploy' must be an array or a function of meta`), `skills` in t && e(typeof t.skills == `function`, `'skills' must be a function of meta`), t;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region bati.config.ts
|
package/dist/index.js
CHANGED
|
@@ -2638,7 +2638,7 @@ function kebabCase(str, joiner) {
|
|
|
2638
2638
|
//#endregion
|
|
2639
2639
|
//#region package.json
|
|
2640
2640
|
var name = "@batijs/cli";
|
|
2641
|
-
var version = "0.0.
|
|
2641
|
+
var version = "0.0.654";
|
|
2642
2642
|
var description = "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want";
|
|
2643
2643
|
//#endregion
|
|
2644
2644
|
//#region rules.ts
|
|
@@ -3055,7 +3055,11 @@ async function run() {
|
|
|
3055
3055
|
env,
|
|
3056
3056
|
deploy
|
|
3057
3057
|
}, meta);
|
|
3058
|
-
|
|
3058
|
+
const skills = meta.BATI.hasAiAgent ? filteredBoilerplates.flatMap((b) => b.config.skills?.(meta) ?? []) : [];
|
|
3059
|
+
for (const onafter of hooksMap.get("after") ?? []) await onafter(args.project, meta, {
|
|
3060
|
+
skills,
|
|
3061
|
+
env
|
|
3062
|
+
});
|
|
3059
3063
|
if (args.knip) await generateKnipConfig(args.project, filteredBoilerplates);
|
|
3060
3064
|
if (!args["skip-git"]) gitInit(args.project);
|
|
3061
3065
|
const nextSteps = filteredBoilerplates.flatMap((b) => b.config.nextSteps?.(meta, pm.run, colorette_exports)).filter(Boolean);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.654",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"check-types": "tsc --noEmit",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"repository": "https://github.com/vikejs/bati",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@batijs/build": "0.0.
|
|
17
|
-
"@batijs/compile": "0.0.
|
|
16
|
+
"@batijs/build": "0.0.654",
|
|
17
|
+
"@batijs/compile": "0.0.654",
|
|
18
18
|
"@inquirer/prompts": "^8.5.2",
|
|
19
19
|
"@types/node": "^20.19.37",
|
|
20
20
|
"@types/which": "^3.0.4",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"vite": "^8.0.16"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@batijs/core": "0.0.
|
|
34
|
-
"@batijs/features": "0.0.
|
|
33
|
+
"@batijs/core": "0.0.654",
|
|
34
|
+
"@batijs/features": "0.0.654"
|
|
35
35
|
},
|
|
36
36
|
"bin": "./cli.js",
|
|
37
37
|
"exports": {
|
|
@@ -15,9 +15,9 @@ var package_default = {
|
|
|
15
15
|
author: "",
|
|
16
16
|
license: "MIT",
|
|
17
17
|
devDependencies: {
|
|
18
|
-
"@compiled/react": "^0.21.3",
|
|
19
18
|
"@batijs/compile": "workspace:*",
|
|
20
19
|
"@batijs/core": "workspace:*",
|
|
20
|
+
"@compiled/react": "^0.21.3",
|
|
21
21
|
"@types/node": "^20.19.37",
|
|
22
22
|
"vite": "^8.0.16",
|
|
23
23
|
"vite-plugin-compiled-react": "^1.3.1"
|