https://github.com/dreaming-codes/svelte-revealjs
https://github.com/dreaming-codes/svelte-revealjs
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dreaming-codes/svelte-revealjs
- Owner: Dreaming-Codes
- License: mit
- Created: 2024-02-08T17:54:21.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-08T19:00:29.000Z (over 1 year ago)
- Last Synced: 2024-10-29T19:28:33.043Z (8 months ago)
- Language: Svelte
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Svelte Reveal.js
This is a collection of Svelte components that can be used to create presentations using Reveal.js.
A lot of component are straight up copied from [Animotion.js](https://github.com/animotionjs/animotion) and adapted to be used as a library for Svelte without needing to use their template.## Example
You can see an example code in the `src/routes` folder.## Developing
This project uses Bun instead of Node.js. To start developing, install bun first.
```bash
bun install
bun run dev
```Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
## Building
To build your library:
```bash
bun run package
```
## PublishingGo into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
To publish your library to [npm](https://www.npmjs.com):
```bash
npm publish
```## Aknowledgements
- [svelte-reveal.js](https://github.com/Ennoriel/svelte-reveal.js) This is a library that does basically the same thing, but has fewer features and I don't like the way it's implemented. I'm using it as a reference for some things.
- [Animotion.js](https://github.com/animotionjs/animotion) The majority of the components are copied from this library and adapted to be used as a Svelte library and give the user more control over the components.