tsup asset folder

This commit is contained in:
Max Peintner
2023-04-14 14:35:21 +02:00
parent 2c04b79f1b
commit e651eacf2b
11 changed files with 7 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ This Turborepo includes the following:
- `login`: The new login UI powered by Next.js
- `@zitadel/server`: core components for establishing node client connection, grpc stub
- `@zitadel/client`: core components for establishing web client connection, grpc stub
- `@zitadel/react`: shared React utilities and components
- `@zitadel/react`: shared React utilities and components built with tailwindcss
- `@zitadel/next`: shared Next.js utilities
- `@zitadel/tsconfig`: shared `tsconfig.json`s used throughout the monorepo
- `eslint-config-zitadel`: ESLint preset

View File

@@ -1,8 +0,0 @@
type Props = {};
export default async function Page({}: Props) {
return (
<div className="space-y-4">
<div className="text-xl font-medium text-gray-500">username</div>
</div>
);
}

View File

@@ -12,10 +12,11 @@
"./assets/*": "./dist/assets/*"
},
"scripts": {
"build": "tsup",
"build": "tsup && pnpm run copy-files",
"dev": "tsup --watch",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"copy-files": "cp -R ./src/public/ ./dist/"
},
"devDependencies": {
"@types/react": "^17.0.13",

View File

@@ -9,7 +9,7 @@ export function SignInWithGoogle(props: SignInWithGoogleProps) {
<div className="ui-flex ui-flex-row ui-items-center ui-bg-white ui-text-black dark:ui-bg-transparent dark:ui-text-white rounded-md p-4 text-sm">
<img
className="h-8 w-8"
src="./assets/google.png"
src="./public/google.png"
alt="google"
height={24}
width={24}

View File

Before

Width:  |  Height:  |  Size: 968 B

After

Width:  |  Height:  |  Size: 968 B

View File

Before

Width:  |  Height:  |  Size: 968 B

After

Width:  |  Height:  |  Size: 968 B

View File

Before

Width:  |  Height:  |  Size: 856 B

After

Width:  |  Height:  |  Size: 856 B

View File

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

Before

Width:  |  Height:  |  Size: 343 B

After

Width:  |  Height:  |  Size: 343 B

View File

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@@ -3,7 +3,8 @@ import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => ({
treeshake: true,
splitting: true,
entry: ["src/**/*.tsx"],
publicDir: true,
entry: ["src/**/*.{tsx,png,svg}"],
format: ["esm"],
dts: true,
minify: true,