Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(email): fix build #2215

Merged
merged 2 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading