Skip to content

Commit

Permalink
include client lib in uno compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Jun 29, 2024
1 parent dc43fd1 commit 42c3c94
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 829 deletions.
2 changes: 1 addition & 1 deletion apps/gnocchi/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default defineConfig(({ command, mode }) => ({
viteCommonjs(),
],
optimizeDeps: {
exclude: ['@a-type/ui'],
exclude: ['@a-type/ui', '@biscuits/client'],
include: [
'react/jsx-runtime',
'react',
Expand Down
2 changes: 1 addition & 1 deletion apps/humding/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig(({ command, mode }) => ({
viteCommonjs(),
],
optimizeDeps: {
exclude: ['@a-type/ui'],
exclude: ['@a-type/ui', '@biscuits/client'],
include: ['react/jsx-runtime', 'react', 'react-dom', 'react-dom/client'],
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion apps/marginalia/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig(({ command, mode }) => ({
viteCommonjs(),
],
optimizeDeps: {
exclude: ['@a-type/ui'],
exclude: ['@a-type/ui', '@biscuits/client'],
include: ['react/jsx-runtime', 'react', 'react-dom', 'react-dom/client'],
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion apps/star-chart/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig(({ command, mode }) => ({
viteCommonjs(),
],
optimizeDeps: {
exclude: ['@a-type/ui'],
exclude: ['@a-type/ui', '@biscuits/client'],
include: ['react/jsx-runtime', 'react', 'react-dom', 'react-dom/client'],
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion apps/trip-tick/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig(({ command, mode }) => ({
viteCommonjs(),
],
optimizeDeps: {
exclude: ['@a-type/ui'],
exclude: ['@a-type/ui', '@biscuits/client'],
include: ['react/jsx-runtime', 'react', 'react-dom', 'react-dom/client'],
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion apps/wish-wash/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineConfig(({ command, mode }) => ({
viteCommonjs(),
],
optimizeDeps: {
exclude: ['@a-type/ui'],
exclude: ['@a-type/ui', '@biscuits/client'],
include: ['react/jsx-runtime', 'react', 'react-dom', 'react-dom/client'],
},
resolve: {
Expand Down
4 changes: 3 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
"@verdant-web/react-router": "0.6.2",
"@verdant-web/store": "^3.8.1",
"react": "18.3.1",
"vite-plugin-pwa": "0.19.2"
"vite-plugin-pwa": "0.19.2",
"unocss": "^0.58.0",
"@unocss/transformer-variant-group": "^0.58.0"
}
}
23 changes: 23 additions & 0 deletions packages/client/uno.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// uno.config.ts
import { defineConfig } from 'unocss';
import variantGroup from '@unocss/transformer-variant-group';
import presetAglio from '@a-type/ui/uno-preset';

export default defineConfig({
presets: [presetAglio()],
transformers: [variantGroup()],
preflights: [
{
getCSS: () => `
html, body, #root {
display: flex;
flex-direction: column;
}
#root {
flex: 1;
}
`,
},
],
});
Loading

0 comments on commit 42c3c94

Please sign in to comment.