@batijs/cli 0.0.273 → 0.0.275

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.
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "app": "pnpm tsx cdk/bin/infrastructure.ts",
3
3
  "watch": {
4
- "include": [
5
- "**"
6
- ],
4
+ "include": ["**"],
7
5
  "exclude": [
8
6
  "README.md",
9
7
  "cdk*.json",
@@ -20,10 +18,7 @@
20
18
  "@aws-cdk/core:newStyleStackSynthesis": true,
21
19
  "@aws-cdk/aws-lambda:recognizeLayerVersion": true,
22
20
  "@aws-cdk/core:checkSecretUsage": true,
23
- "@aws-cdk/core:target-partitions": [
24
- "aws",
25
- "aws-cn"
26
- ],
21
+ "@aws-cdk/core:target-partitions": ["aws", "aws-cn"],
27
22
  "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
28
23
  "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
29
24
  "@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
@@ -1,14 +1,14 @@
1
1
  module.exports = {
2
- plugins: {
3
- 'postcss-preset-mantine': {},
4
- 'postcss-simple-vars': {
5
- variables: {
6
- 'mantine-breakpoint-xs': '36em',
7
- 'mantine-breakpoint-sm': '48em',
8
- 'mantine-breakpoint-md': '62em',
9
- 'mantine-breakpoint-lg': '75em',
10
- 'mantine-breakpoint-xl': '88em',
11
- },
2
+ plugins: {
3
+ "postcss-preset-mantine": {},
4
+ "postcss-simple-vars": {
5
+ variables: {
6
+ "mantine-breakpoint-xs": "36em",
7
+ "mantine-breakpoint-sm": "48em",
8
+ "mantine-breakpoint-md": "62em",
9
+ "mantine-breakpoint-lg": "75em",
10
+ "mantine-breakpoint-xl": "88em",
12
11
  },
13
12
  },
14
- };
13
+ },
14
+ };
@@ -1,12 +1,12 @@
1
1
  export let plugins: {
2
- 'postcss-preset-mantine': {};
3
- 'postcss-simple-vars': {
2
+ "postcss-preset-mantine": {};
3
+ "postcss-simple-vars": {
4
4
  variables: {
5
- 'mantine-breakpoint-xs': string;
6
- 'mantine-breakpoint-sm': string;
7
- 'mantine-breakpoint-md': string;
8
- 'mantine-breakpoint-lg': string;
9
- 'mantine-breakpoint-xl': string;
5
+ "mantine-breakpoint-xs": string;
6
+ "mantine-breakpoint-sm": string;
7
+ "mantine-breakpoint-md": string;
8
+ "mantine-breakpoint-lg": string;
9
+ "mantine-breakpoint-xl": string;
10
10
  };
11
11
  };
12
12
  };
@@ -9,8 +9,9 @@ export function TodoList({ initialTodoItems }: { initialTodoItems: { text: strin
9
9
  return (
10
10
  <>
11
11
  <ul>
12
- {todoItems.map((todoItem) => (
13
- <li key={todoItem.text}>{todoItem.text}</li>
12
+ {todoItems.map((todoItem, index) => (
13
+ // biome-ignore lint:
14
+ <li key={index}>{todoItem.text}</li>
14
15
  ))}
15
16
  </ul>
16
17
  <div>
@@ -1,17 +1,16 @@
1
1
  {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "default",
4
- "tailwind": {
5
- "config": "tailwind.config.ts",
6
- "css": "layouts/tailwind.css",
7
- "baseColor": "gray",
8
- "cssVariables": true
9
-
10
- },
11
- "rsc": true,
12
- "tsx": true,
13
- "aliases": {
14
- "utils": "@/lib/utils",
15
- "components": "@/components"
16
- }
17
- }
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "default",
4
+ "tailwind": {
5
+ "config": "tailwind.config.ts",
6
+ "css": "layouts/tailwind.css",
7
+ "baseColor": "gray",
8
+ "cssVariables": true
9
+ },
10
+ "rsc": true,
11
+ "tsx": true,
12
+ "aliases": {
13
+ "utils": "@/lib/utils",
14
+ "components": "@/components"
15
+ }
16
+ }
@@ -96,6 +96,8 @@
96
96
  }
97
97
  body {
98
98
  @apply bg-background text-foreground;
99
- font-feature-settings: "rlig" 1, "calt" 1;
99
+ font-feature-settings:
100
+ "rlig" 1,
101
+ "calt" 1;
100
102
  }
101
103
  }
@@ -1,3 +1,3 @@
1
1
  @tailwind base;
2
2
  @tailwind components;
3
- @tailwind utilities;
3
+ @tailwind utilities;
@@ -1,3 +1,6 @@
1
+ // https://telefunc.com
2
+
3
+ import { todos } from "@batijs/shared-no-db/database/todoItems";
1
4
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
2
5
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
3
6
  import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
@@ -14,7 +17,6 @@ export async function onNewTodo({ text }: { text: string }) {
14
17
  const context = getContext();
15
18
  await d1Queries.insertTodo(context.db, text);
16
19
  } else {
17
- // This is where you'd persist the data
18
- console.log("Received new todo", { text });
20
+ todos.todo.push({ text });
19
21
  }
20
22
  }
@@ -1 +1 @@
1
- export declare const trpcHandler: (endpoint: string) => (request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
1
+ export declare const trpcHandler: (endpoint: string) => (request: Request, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
@@ -5,9 +5,9 @@ export declare const trpc: {
5
5
  ctx: object & {
6
6
  db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
7
7
  } & {
8
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
8
+ db: ReturnType<any>;
9
9
  } & {
10
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
10
+ db: ReturnType<any>;
11
11
  } & {
12
12
  db: import("@cloudflare/workers-types").D1Database;
13
13
  };
@@ -18,9 +18,9 @@ export declare const trpc: {
18
18
  _ctx_out: object & {
19
19
  db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
20
20
  } & {
21
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
21
+ db: ReturnType<any>;
22
22
  } & {
23
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
23
+ db: ReturnType<any>;
24
24
  } & {
25
25
  db: import("@cloudflare/workers-types").D1Database;
26
26
  };
@@ -39,9 +39,9 @@ export declare const trpc: {
39
39
  ctx: object & {
40
40
  db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
41
41
  } & {
42
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
42
+ db: ReturnType<any>;
43
43
  } & {
44
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
44
+ db: ReturnType<any>;
45
45
  } & {
46
46
  db: import("@cloudflare/workers-types").D1Database;
47
47
  };
@@ -53,9 +53,9 @@ export declare const trpc: {
53
53
  _ctx_out: object & {
54
54
  db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
55
55
  } & {
56
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
56
+ db: ReturnType<any>;
57
57
  } & {
58
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
58
+ db: ReturnType<any>;
59
59
  } & {
60
60
  db: import("@cloudflare/workers-types").D1Database;
61
61
  };
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <ul>
3
- <li v-for="item in todoItems" :key="item.text">
3
+ <li v-for="(item, index) in todoItems" :key="index">
4
4
  {{ item.text }}
5
5
  </li>
6
6
  <li>
package/dist/index.js CHANGED
@@ -1677,7 +1677,7 @@ var createDefaultQueryTester = function(query, options) {
1677
1677
  // package.json
1678
1678
  var package_default = {
1679
1679
  name: "@batijs/cli",
1680
- version: "0.0.273",
1680
+ version: "0.0.275",
1681
1681
  type: "module",
1682
1682
  scripts: {
1683
1683
  "check-types": "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.273",
3
+ "version": "0.0.275",
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.5",
22
22
  "vite": "^5.4.5",
23
- "@batijs/build": "0.0.273",
24
- "@batijs/compile": "0.0.273"
23
+ "@batijs/build": "0.0.275",
24
+ "@batijs/compile": "0.0.275"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/core": "0.0.273",
28
- "@batijs/features": "0.0.273"
27
+ "@batijs/core": "0.0.275",
28
+ "@batijs/features": "0.0.275"
29
29
  },
30
30
  "bin": "./dist/index.js",
31
31
  "exports": {