create-tulip-app 0.7.0 → 0.8.3
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/templates/basic/src/app/admin/(dashboard)/loading.tsx +1 -1
- package/dist/templates/basic/src/server/auth/init.ts +2 -2
- package/dist/templates/basic/src/server/db/init.ts +2 -2
- package/dist/templates/basic/src/server/providers/email.ts +2 -2
- package/dist/templates/basic/src/server/router/caller.ts +1 -1
- package/dist/templates/basic/src/server/storage/init.ts +5 -4
- package/dist/templates/basic/tsconfig.json +0 -1
- package/package.json +4 -3
|
@@ -2,7 +2,7 @@ import { Skeleton } from "@tulip-systems/core/components";
|
|
|
2
2
|
|
|
3
3
|
export default function Loading() {
|
|
4
4
|
return (
|
|
5
|
-
<div className="
|
|
5
|
+
<div className="space-y-5 p-content">
|
|
6
6
|
<div className="grid grid-rows-1 gap-5 lg:grid-cols-2 xl:grid-cols-3">
|
|
7
7
|
<Skeleton className="h-80" />
|
|
8
8
|
<Skeleton className="h-80" />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Auth } from "@tulip-systems/core/auth/server";
|
|
2
2
|
import { config } from "@/lib/config/base";
|
|
3
3
|
import { db } from "../db/init.js";
|
|
4
4
|
import { email } from "../providers/email.js";
|
|
5
5
|
import { ac, roles } from "./permissions.js";
|
|
6
6
|
|
|
7
|
-
export const auth =
|
|
7
|
+
export const auth = Auth.init({ db, email, config, ac, roles });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Database } from "@tulip-systems/core/database/server";
|
|
2
2
|
import { attachDatabasePool } from "@vercel/functions";
|
|
3
3
|
import { Pool } from "pg";
|
|
4
4
|
import * as schema from "./schema.js";
|
|
@@ -13,4 +13,4 @@ const pool = new Pool({
|
|
|
13
13
|
|
|
14
14
|
attachDatabasePool(pool);
|
|
15
15
|
|
|
16
|
-
export const db =
|
|
16
|
+
export const db = Database.init<DatabaseSchema>({ schema, pool });
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Email } from "@tulip-systems/core/emails/server";
|
|
2
2
|
|
|
3
|
-
export const email =
|
|
3
|
+
export const email = Email.init({ key: process.env.RESEND_API_KEY ?? "" });
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Storage, storageS3Adapter } from "@tulip-systems/core/storage/server";
|
|
2
2
|
import { db } from "../db/init.js";
|
|
3
3
|
|
|
4
|
-
export const storage =
|
|
4
|
+
export const storage = Storage.init({
|
|
5
5
|
db,
|
|
6
|
-
|
|
6
|
+
adapter: storageS3Adapter({
|
|
7
|
+
bucketName: process.env.S3_BUCKET ?? "",
|
|
7
8
|
region: "auto",
|
|
8
9
|
endpoint: process.env.S3_ENDPOINT ?? "",
|
|
9
10
|
credentials: {
|
|
10
11
|
accessKeyId: process.env.S3_ACCESS_KEY_ID ?? "",
|
|
11
12
|
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY ?? "",
|
|
12
13
|
},
|
|
13
|
-
},
|
|
14
|
+
}),
|
|
14
15
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-tulip-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"create-tulip-app": "./dist/index.mjs"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@types/node": "
|
|
11
|
+
"@types/node": "25.6.2",
|
|
12
12
|
"commander": "^14.0.3",
|
|
13
|
-
"publint": "^0.3.
|
|
13
|
+
"publint": "^0.3.20",
|
|
14
14
|
"tsdown": "^0.20.3",
|
|
15
15
|
"typescript": "5.9.3",
|
|
16
16
|
"@tulip-systems/typescript-config": "0.0.0"
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"dev": "tsdown --config-loader tsdown.config.ts --watch",
|
|
29
29
|
"build": "tsdown --config-loader tsdown.config.ts",
|
|
30
|
+
"release:build": "pnpm run build",
|
|
30
31
|
"lint": "biome check",
|
|
31
32
|
"format": "biome format --write"
|
|
32
33
|
}
|