Skip to content

Commit

Permalink
Fix for #23: Adding extremely simple "hello world" MVP to demonstrate…
Browse files Browse the repository at this point in the history
… svelte-retag in most basic form. Relocating Vercel site files to subdirectory under ./demo/vercel so this can live under ./demo/hello-world.
  • Loading branch information
patricknelson committed Nov 21, 2023
1 parent 4ffe056 commit 3b8f29a
Show file tree
Hide file tree
Showing 44 changed files with 1,038 additions and 14 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,17 @@ with [`svelte-tag@^1.0.0`](https://github.com/crisward/svelte-tag).

## Change Log

- [x] Migrate to Vitest for unit testing (see https://github.com/crisward/svelte-tag/pull/14)
- [x] Update logo
- [x] Fix nested slot support (https://github.com/patricknelson/svelte-retag/pull/5)
- [x] Better support for slots during early execution of IIFE compiled packages, i.e. use `MutationObserver` to watch
- Migrate to Vitest for unit testing (see https://github.com/crisward/svelte-tag/pull/14)
- Update logo
- Fix nested slot support (https://github.com/patricknelson/svelte-retag/pull/5)
- Better support for slots during early execution of IIFE compiled packages, i.e. use `MutationObserver` to watch
for light DOM slots during initial parsing (see https://github.com/patricknelson/svelte-retag/issues/7)
- [x] Support Lit-style lowercase props (see https://github.com/patricknelson/svelte-retag/pull/9)
- [x] Svelte 4 support (tested)
- [x] Support context (see https://github.com/patricknelson/svelte-retag/issues/10, PR
- Support Lit-style lowercase props (see https://github.com/patricknelson/svelte-retag/pull/9)
- Svelte 4 support (tested)
- Support context (see https://github.com/patricknelson/svelte-retag/issues/10, PR
at https://github.com/patricknelson/svelte-retag/pull/18)
- [x] Add demos (see https://github.com/patricknelson/svelte-retag/issues/11)
- Add demos to vercel site (see https://github.com/patricknelson/svelte-retag/issues/11)
- Add step-by-step instructions and provided a simple MVP example (https://github.com/patricknelson/svelte-retag/pull/24)

### Milestones:

Expand Down
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions demo/hello-world/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# svelte-retag: Hello World

This is an **MVP** demo that shows `svelte-retag` in action in its simplest form in local development with a
`HelloWorld.svelte` component implemented as a `<hello-world>` custom element.

To try it out yourself, make sure you have [Git](https://git-scm.com/downloads) and [Node](https://nodejs.org/) installed and then run:

```bash
git clone https://github.com/patricknelson/svelte-retag.git
cd svelte-retag/demo/hello-world
npm install
npm run dev
```

Then open your browser to [http://localhost:5173/](http://localhost:5173/) to view the demo.
13 changes: 13 additions & 0 deletions demo/hello-world/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/svelte-retag-favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>svelte-retag: Hello World</title>
</head>
<body>
<hello-world greetperson="👩‍🚀"></hello-world>
<script type="module" src="/src/main.js"></script>
</body>
</html>
File renamed without changes.
Loading

0 comments on commit 3b8f29a

Please sign in to comment.