Skip to content

Commit

Permalink
remove components library
Browse files Browse the repository at this point in the history
  • Loading branch information
vorant94 committed Mar 26, 2024
1 parent 9b266ad commit 00d42c2
Show file tree
Hide file tree
Showing 37 changed files with 727 additions and 6,329 deletions.
10 changes: 3 additions & 7 deletions packages/canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
"build": "vue-tsc && vite build",
"preview": "vite preview",
"vite": "vite",
"vue-tsc": "vue-tsc",
"codegen:web-types": "vue-docgen-web-types --configFile web-types.config.json",
"vue-docgen-web-types": "vue-docgen-web-types"
"vue-tsc": "vue-tsc"
},
"dependencies": {
"@digital-garden/components": "workspace:^",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
Expand All @@ -23,11 +20,10 @@
"cssnano": "^6.1.0",
"postcss": "^8.4.35",
"postcss-load-config": "^5.0.3",
"postcss-nested": "^6.0.1",
"tailwindcss": "^3.4.1",
"typescript": "~5.4.2",
"vite": "^5.1.6",
"vue-docgen-web-types": "^0.1.8",
"vue-tsc": "^2.0.6"
},
"web-types": "./web-types.json"
}
}
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">
import dark from './dark.png';
import light from './light.png';
import CenteredLayout from '@/shared/layouts/CenteredLayout/index.vue';
</script>

<template>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { routeToName } from '@/home/route.ts';
import { routeToName } from './index.meta.ts';
import CenteredLayout from '@/shared/layouts/CenteredLayout/index.vue';
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import angularLogo from './angular-logo.png';
import reactLogo from './react-logo.svg';
import spiderManTriple from './spider-man-triple.jpg';
import vueLogo from './vue-logo.png';
import CenteredLayout from '@/shared/layouts/CenteredLayout/index.vue';
</script>

<template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import tsLogoDark from './ts-logo-dark.svg';
import tsLogo from './ts-logo.svg';
import yarnLogoDark from './yarn-logo-dark.svg';
import yarnLogo from './yarn-logo.svg';
import CenteredLayout from '@/shared/layouts/CenteredLayout/index.vue';
// bg-zinc-100 -> #f4f4f5
// bg-zinc-900 -> #18181b
Expand Down
13 changes: 5 additions & 8 deletions packages/canvas/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import './index.css';

import DigitalGarden from '@/digital-garden/DigitalGarden.vue';
import Home from '@/home/Home.vue';
import { Route, routeToName } from '@/home/route.ts';
import ThoughtsOnModernFrameworkFeatures from '@/thoughts-on-modern-framework-features/ThoughtsOnModernFrameworkFeatures.vue';
import TypescriptMonoreposAreAMess from '@/typescript-monorepos-are-a-mess/TypescriptMonoreposAreAMess.vue';
import components from '@digital-garden/components';
import DigitalGarden from '@/DigitalGarden/index.vue';
import { Route, routeToName } from '@/Home/index.meta.ts';
import Home from '@/Home/index.vue';
import ThoughtsOnModernFrameworkFeatures from '@/ThoughtsOnModernFrameworkFeatures/index.vue';
import TypescriptMonoreposAreAMess from '@/TypescriptMonoreposAreAMess/index.vue';
import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import App from './App.vue';

const app = createApp(App);

app.use(components);

app.use(
createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<main
class="min-w-dvw min-h-dvh flex items-center justify-center bg-slate-50 dark:bg-slate-900">
<slot></slot>
<slot />
</main>
</template>
6 changes: 1 addition & 5 deletions packages/canvas/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import type { Config } from 'tailwindcss';

export default {
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx,vue}',
'../components/src/**/*.{js,ts,jsx,tsx,vue}',
],
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx,vue}'],
theme: {
extend: {},
},
Expand Down
3 changes: 1 addition & 2 deletions packages/canvas/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
/* Misc */
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@digital-garden/components": ["../components/src/index.ts"]
"@/*": ["src/*"]
}
},
"include": ["src"]
Expand Down
4 changes: 0 additions & 4 deletions packages/canvas/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@digital-garden/components': new URL(
'../components/src/index.ts',
import.meta.url,
).pathname,
},
},
});
4 changes: 0 additions & 4 deletions packages/canvas/web-types.config.json

This file was deleted.

24 changes: 0 additions & 24 deletions packages/canvas/web-types.json

This file was deleted.

27 changes: 0 additions & 27 deletions packages/components/.storybook/main.ts

This file was deleted.

13 changes: 0 additions & 13 deletions packages/components/.storybook/preview.ts

This file was deleted.

47 changes: 0 additions & 47 deletions packages/components/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/components/postcss.config.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions packages/components/src/index.css

This file was deleted.

11 changes: 0 additions & 11 deletions packages/components/src/index.ts

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/src/vite-env.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/components/tailwind.config.ts

This file was deleted.

37 changes: 0 additions & 37 deletions packages/components/tsconfig.json

This file was deleted.

26 changes: 0 additions & 26 deletions packages/components/vite.config.mjs

This file was deleted.

Loading

0 comments on commit 00d42c2

Please sign in to comment.