Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,34 @@ Share API.

4. Visit `http://localhost:1234` in a browser.

### Development with API Stubs

To develop without a running Share API backend, you can use API stubs:

```bash
npm run start:with-api-stubs
```

### Building for Production

Build the production bundle:

```bash
npm run build
```

This creates an optimized build in `dist/unisonShare/`.

### Preview Production Build

To test the production build locally:

```bash
npm run preview
```

Then visit `http://localhost:1234/static/` in a browser.

## Dependencies

This depends on the [ui-core package](https://github.com/unisonweb/ui-core) via
Expand Down
7 changes: 5 additions & 2 deletions src/unisonShare.ejs → index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<!DOCTYPE html>
<!doctype html>

<html lang="en">
<head>
<meta charset="utf-8" />
<meta
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Unison Share</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<base href="/" />
<meta property="og:type" content="website" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
Expand Down Expand Up @@ -92,5 +94,6 @@ <h1>
>
</footer>
</noscript>
<script type="module" src="/src/unisonShare.js"></script>
</body>
</html>
Loading
Loading