chore(email): fix build (#2215)

* chore(email): fix build

* update
This commit is contained in:
Meng Zhang 2024-05-21 15:07:43 -07:00 committed by GitHub
parent af5549a9ab
commit 5027d466ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 9 deletions

View File

@ -7,8 +7,9 @@ fix-ui:
pnpm lint:fix
update-ui:
cd ee/tabby-ui && pnpm build
pnpm build
rm -rf ee/tabby-webserver/ui && cp -R ee/tabby-ui/out ee/tabby-webserver/ui
rm -rf ee/tabby-webserver/email_templates && cp -R ee/tabby-email/out ee/tabby-webserver/email_templates
update-db-schema:
sqlite3 ee/tabby-db/schema.sqlite ".schema --indent" > ee/tabby-db/schema/schema.sql
@ -16,10 +17,6 @@ update-db-schema:
dot -Tsvg schema.dot > ee/tabby-db/schema/schema.svg
rm schema.dot
update-email-templates:
cd ee/tabby-email && pnpm export
rm -rf ee/tabby-webserver/email_templates && cp -R ee/tabby-email/out ee/tabby-webserver/email_templates
caddy:
caddy run --watch --config ee/tabby-webserver/development/Caddyfile

View File

@ -3,9 +3,8 @@
"version": "0.0.19",
"private": true,
"scripts": {
"build": "email build",
"dev": "email dev",
"export": "email export"
"build": "email build && email export",
"dev": "email dev"
},
"devDependencies": {
"react-email": "2.1.3",

View File

@ -5,7 +5,12 @@
"dependsOn": [
"^build"
],
"outputs": ["dist/**", ".next/**", "!.next/cache/**", ".react-email/**", "!.react-email/.next/cache/**"]
"outputs": [
"out/**",
"dist/**",
".next/**",
"!.next/cache/**"
]
},
"lint": {},
"lint:fix": {},