Skip to content

Commit

Permalink
refactor: ♻️ add svead as workspace package
Browse files Browse the repository at this point in the history
export package from svead, config prettier
  • Loading branch information
spences10 committed Jan 6, 2024
1 parent 0d3637c commit ec46f08
Show file tree
Hide file tree
Showing 32 changed files with 125 additions and 436 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ npm login
npm dist-tag add [email protected] latest
```

## pnpm workspaces

To add a package to the web workspace:

```bash
pnpm add -D svead --filter web
```

## Contributors ✨

Thanks goes to these wonderful people
Expand Down
5 changes: 3 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@svead/web",
"name": "web",
"version": "0.0.0",
"private": true,
"scripts": {
Expand Down Expand Up @@ -37,7 +37,8 @@
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.9",
"svelte": "^5.0.0-next.1",
"svead": "workspace:^",
"svelte": "5.0.0-next.29",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.3.6",
"tslib": "^2.4.1",
Expand Down
107 changes: 0 additions & 107 deletions apps/web/src/lib/components/head.svelte

This file was deleted.

76 changes: 0 additions & 76 deletions apps/web/src/lib/components/head.test.ts

This file was deleted.

22 changes: 0 additions & 22 deletions apps/web/src/lib/components/schema-org-props.ts

This file was deleted.

39 changes: 0 additions & 39 deletions apps/web/src/lib/components/schema-org.svelte

This file was deleted.

76 changes: 0 additions & 76 deletions apps/web/src/lib/components/schema-org.test.ts

This file was deleted.

12 changes: 9 additions & 3 deletions apps/web/src/lib/icons/git-hub.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<script lang="ts">
export let width: string = '25';
export let height: string = '25';
export let fill: string = 'fill-current';
const {
width = '25',
height = '25',
fill = 'fill-current',
} = $props<{
width?: string;
height?: string;
fill?: string;
}>();
let svgClass: string = `${fill} text-primary-content transition hover:text-secondary-focus`;
</script>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/icons/twitter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
height="25"
width="25"
class="fill-current text-primary-content transition hover:text-secondary-focus"
class="hover:text-secondary-focus fill-current text-primary-content transition"
>
<path
d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/icons/you-tube.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
height="25"
width="25"
class="fill-current text-primary-content transition hover:text-secondary-focus"
class="hover:text-secondary-focus fill-current text-primary-content transition"
>
<path
d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default as Head } from './components/head.svelte';
export * from './icons'
export * from './icons';
Loading

0 comments on commit ec46f08

Please sign in to comment.