@batijs/cli 0.0.507 → 0.0.508
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/boilerplates/@batijs/auth0/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +6 -5
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/todo/TodoList.tsx +6 -5
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +6 -5
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/{chunk-O6UZH2O7.js → chunk-V25N3ODX.js} +1 -1
- package/dist/index.js +2 -2
- package/package.json +5 -5
|
@@ -22,19 +22,20 @@ export function TodoList() {
|
|
|
22
22
|
onSubmit={async (ev) => {
|
|
23
23
|
ev.preventDefault();
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
const text = newTodo;
|
|
26
|
+
setTodoItems((prev) => [...prev, { text }]);
|
|
26
27
|
setNewTodo("");
|
|
27
28
|
if (BATI.hasServer) {
|
|
28
29
|
if (BATI.has("telefunc")) {
|
|
29
|
-
await onNewTodo({ text
|
|
30
|
+
await onNewTodo({ text });
|
|
30
31
|
} else if (BATI.has("trpc")) {
|
|
31
|
-
await trpc.onNewTodo.mutate(
|
|
32
|
+
await trpc.onNewTodo.mutate(text);
|
|
32
33
|
} else if (BATI.has("ts-rest")) {
|
|
33
|
-
await client.createTodo({ body: { text
|
|
34
|
+
await client.createTodo({ body: { text } });
|
|
34
35
|
} else {
|
|
35
36
|
const response = await fetch("/api/todo/create", {
|
|
36
37
|
method: "POST",
|
|
37
|
-
body: JSON.stringify({ text
|
|
38
|
+
body: JSON.stringify({ text }),
|
|
38
39
|
headers: {
|
|
39
40
|
"Content-Type": "application/json",
|
|
40
41
|
},
|
|
@@ -19,19 +19,20 @@ export function TodoList() {
|
|
|
19
19
|
onSubmit={async (ev) => {
|
|
20
20
|
ev.preventDefault();
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const text = untrack(newTodo);
|
|
23
|
+
setTodoItems((prev) => [...prev, { text }]);
|
|
23
24
|
setNewTodo("");
|
|
24
25
|
if (BATI.hasServer) {
|
|
25
26
|
if (BATI.has("telefunc")) {
|
|
26
|
-
await onNewTodo({ text
|
|
27
|
+
await onNewTodo({ text });
|
|
27
28
|
} else if (BATI.has("trpc")) {
|
|
28
|
-
await trpc.onNewTodo.mutate(
|
|
29
|
+
await trpc.onNewTodo.mutate(text);
|
|
29
30
|
} else if (BATI.has("ts-rest")) {
|
|
30
|
-
await client.createTodo({ body: { text
|
|
31
|
+
await client.createTodo({ body: { text } });
|
|
31
32
|
} else {
|
|
32
33
|
const response = await fetch("/api/todo/create", {
|
|
33
34
|
method: "POST",
|
|
34
|
-
body: JSON.stringify({ text
|
|
35
|
+
body: JSON.stringify({ text }),
|
|
35
36
|
headers: {
|
|
36
37
|
"Content-Type": "application/json",
|
|
37
38
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const trpc: import("@trpc/client").TRPCClient<import("@trpc/server").TRPCBuiltRouter<{
|
|
2
2
|
ctx: object & {
|
|
3
|
-
db: ReturnType<
|
|
3
|
+
db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
|
|
4
4
|
} & {
|
|
5
5
|
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
|
|
6
6
|
} & {
|
|
@@ -31,19 +31,20 @@ const todoItems = ref<{ text: string }[]>(todoItemsInitial);
|
|
|
31
31
|
const newTodo = ref("");
|
|
32
32
|
|
|
33
33
|
const submitNewTodo = async () => {
|
|
34
|
-
|
|
34
|
+
const text = newTodo.value;
|
|
35
|
+
todoItems.value.push({ text });
|
|
35
36
|
newTodo.value = "";
|
|
36
37
|
if (BATI.hasServer) {
|
|
37
38
|
if (BATI.has("telefunc")) {
|
|
38
|
-
await onNewTodo({ text
|
|
39
|
+
await onNewTodo({ text });
|
|
39
40
|
} else if (BATI.has("trpc")) {
|
|
40
|
-
await trpc.onNewTodo.mutate(
|
|
41
|
+
await trpc.onNewTodo.mutate(text);
|
|
41
42
|
} else if (BATI.has("ts-rest")) {
|
|
42
|
-
await client.createTodo({ body: { text
|
|
43
|
+
await client.createTodo({ body: { text } });
|
|
43
44
|
} else {
|
|
44
45
|
const response = await fetch("/api/todo/create", {
|
|
45
46
|
method: "POST",
|
|
46
|
-
body: JSON.stringify({ text
|
|
47
|
+
body: JSON.stringify({ text }),
|
|
47
48
|
headers: {
|
|
48
49
|
"Content-Type": "application/json",
|
|
49
50
|
},
|
|
@@ -210439,7 +210439,7 @@ async function ufs(t2, e, n2) {
|
|
|
210439
210439
|
}
|
|
210440
210440
|
return !e.BATI.has("eslint") && R$r.test(c) && (c = c.replace(R$r, ""), f = true), !e.BATI.has("biome") && j$r.test(c) && (c = c.replace(j$r, ""), f = true), { code: f ? await Pit(c, n2) : c, context: p2 };
|
|
210441
210441
|
}
|
|
210442
|
-
var wxt = { name: "@batijs/core", version: "0.0.
|
|
210442
|
+
var wxt = { name: "@batijs/core", version: "0.0.508", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.24", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.46.4", "@typescript-eslint/utils": "^8.46.4", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.0", eslint: "^9.39.1", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^10.4.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.6.2", squirrelly: "^9.1.0", tsup: "^8.5.0", tsx: "^4.20.6", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.8", "vue-eslint-parser": "^10.2.0", which: "^6.0.0", yaml: "^2.8.1" }, exports: { ".": "./dist/index.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { types: ["./global.d.ts"] } }, files: ["dist/"] };
|
|
210443
210443
|
function ffs() {
|
|
210444
210444
|
if (process.env.npm_config_user_agent) return _fs(process.env.npm_config_user_agent);
|
|
210445
210445
|
}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ffs,
|
|
11
11
|
gir,
|
|
12
12
|
ufs
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V25N3ODX.js";
|
|
14
14
|
import "./chunk-IAWYWZSL.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
@@ -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.
|
|
16935
|
+
version: "0.0.508",
|
|
16936
16936
|
type: "module",
|
|
16937
16937
|
scripts: {
|
|
16938
16938
|
"check-types": "tsc --noEmit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.508",
|
|
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/
|
|
24
|
-
"@batijs/
|
|
23
|
+
"@batijs/compile": "0.0.508",
|
|
24
|
+
"@batijs/build": "0.0.508"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.508",
|
|
28
|
+
"@batijs/features": "0.0.508"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./cli.js",
|
|
31
31
|
"exports": {
|