@batijs/cli 0.0.276 → 0.0.278
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/aws/files/$package.json.js +12 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +2 -0
- package/dist/boilerplates/@batijs/aws/files/cdk.json +1 -1
- package/dist/boilerplates/@batijs/eslint/files/eslint.config.js +2 -0
- package/dist/boilerplates/@batijs/shared-no-db/files/database/todoItems.ts +10 -3
- package/dist/boilerplates/@batijs/shared-no-db/types/database/todoItems.d.ts +1 -5
- package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +0 -2
- package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
- package/dist/index.js +1 -1
- package/package.json +5 -5
|
@@ -49,6 +49,7 @@ var require_package = __commonJS({
|
|
|
49
49
|
cdk: "^2.158.0",
|
|
50
50
|
constructs: "^10.3.0",
|
|
51
51
|
esbuild: "^0.23.1",
|
|
52
|
+
"npm-run-all2": "^6.2.3",
|
|
52
53
|
"source-map-support": "^0.5.21",
|
|
53
54
|
tsx: "^4.19.1",
|
|
54
55
|
typescript: "^5.6.2",
|
|
@@ -113,8 +114,17 @@ async function getPackageJson(props) {
|
|
|
113
114
|
value: "cdk",
|
|
114
115
|
precedence: 0
|
|
115
116
|
},
|
|
117
|
+
"deploy:cdk-deploy-all": {
|
|
118
|
+
value: "cdk deploy --all",
|
|
119
|
+
precedence: 0
|
|
120
|
+
},
|
|
116
121
|
"deploy:aws": {
|
|
117
|
-
value: "
|
|
122
|
+
value: "run-s build deploy:cdk-deploy-all",
|
|
123
|
+
precedence: 0
|
|
124
|
+
},
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
"cdk:app": {
|
|
127
|
+
value: "tsx cdk/bin/infrastructure.ts",
|
|
118
128
|
precedence: 0
|
|
119
129
|
}
|
|
120
130
|
});
|
|
@@ -122,6 +132,7 @@ async function getPackageJson(props) {
|
|
|
122
132
|
devDependencies: [
|
|
123
133
|
"cdk",
|
|
124
134
|
"aws-cdk",
|
|
135
|
+
"npm-run-all2",
|
|
125
136
|
"@types/node",
|
|
126
137
|
"tsx",
|
|
127
138
|
"typescript",
|
|
@@ -2,9 +2,16 @@ interface TodoItem {
|
|
|
2
2
|
text: string;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const todosDefault = [{ text: "Buy milk" }, { text: "Buy strawberries" }];
|
|
6
|
+
|
|
7
|
+
const database =
|
|
8
|
+
// We create an in-memory database.
|
|
9
|
+
// - We use globalThis so that the database isn't reset upon HMR.
|
|
10
|
+
// - The database is reset when restarting the server, use a proper database (SQLite/PostgreSQL/...) if you want persistent data.
|
|
11
|
+
// biome-ignore lint:
|
|
12
|
+
((globalThis as unknown as { __database: { todos: TodoItem[] } }).__database ??= { todos: todosDefault });
|
|
13
|
+
|
|
14
|
+
const { todos } = database;
|
|
8
15
|
|
|
9
16
|
export { todos };
|
|
10
17
|
export type { TodoItem };
|
|
@@ -3,7 +3,7 @@ export declare const trpc: {
|
|
|
3
3
|
query: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"query", {
|
|
4
4
|
_config: import("@trpc/server").RootConfig<{
|
|
5
5
|
ctx: object & {
|
|
6
|
-
db: ReturnType<
|
|
6
|
+
db: ReturnType<any>;
|
|
7
7
|
} & {
|
|
8
8
|
db: ReturnType<any>;
|
|
9
9
|
} & {
|
|
@@ -16,7 +16,7 @@ export declare const trpc: {
|
|
|
16
16
|
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
17
17
|
}>;
|
|
18
18
|
_ctx_out: object & {
|
|
19
|
-
db: ReturnType<
|
|
19
|
+
db: ReturnType<any>;
|
|
20
20
|
} & {
|
|
21
21
|
db: ReturnType<any>;
|
|
22
22
|
} & {
|
|
@@ -37,7 +37,7 @@ export declare const trpc: {
|
|
|
37
37
|
mutate: import("@trpc/client").Resolver<import("@trpc/server").BuildProcedure<"mutation", {
|
|
38
38
|
_config: import("@trpc/server").RootConfig<{
|
|
39
39
|
ctx: object & {
|
|
40
|
-
db: ReturnType<
|
|
40
|
+
db: ReturnType<any>;
|
|
41
41
|
} & {
|
|
42
42
|
db: ReturnType<any>;
|
|
43
43
|
} & {
|
|
@@ -51,7 +51,7 @@ export declare const trpc: {
|
|
|
51
51
|
}>;
|
|
52
52
|
_meta: object;
|
|
53
53
|
_ctx_out: object & {
|
|
54
|
-
db: ReturnType<
|
|
54
|
+
db: ReturnType<any>;
|
|
55
55
|
} & {
|
|
56
56
|
db: ReturnType<any>;
|
|
57
57
|
} & {
|
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.
|
|
1680
|
+
version: "0.0.278",
|
|
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.
|
|
3
|
+
"version": "0.0.278",
|
|
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.
|
|
24
|
-
"@batijs/compile": "0.0.
|
|
23
|
+
"@batijs/build": "0.0.278",
|
|
24
|
+
"@batijs/compile": "0.0.278"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.278",
|
|
28
|
+
"@batijs/features": "0.0.278"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./dist/index.js",
|
|
31
31
|
"exports": {
|