Skip to content

Commit

Permalink
chore(email): fix build (#2215)
Browse files Browse the repository at this point in the history
* chore(email): fix build

* update
  • Loading branch information
wsxiaoys authored May 21, 2024
1 parent af5549a commit 5027d46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ 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
sqlite3 ee/tabby-db/schema.sqlite -init ee/tabby-db/schema/sqlite-schema-visualize.sql "" > schema.dot
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

Expand Down
5 changes: 2 additions & 3 deletions ee/tabby-email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down

0 comments on commit 5027d46

Please sign in to comment.