# eat-js-sdk

Education Authoring Tool SDK built with SvelteKit

## Requirements

- Bun (recommended package manager for development)
- Node 20 (for deployment)

## Installation

Use the package manager [bun](https://bun.sh/) for development or [npm](https://www.npmjs.com/) to install.

```bash
#install dependencies
bun install

#or using npm
npm install
```

## Usage

```bash
#convert tailwind css to native css and build JS app
bun run build

#or using npm
npm run build
```

## Test in local

```html
#add script
<script src="<path/dist/interaction-builder.mjs>" type="module"></script>

#add the component
<interaction-builder />
```

## Development

```bash
#start dev server from consuming platform and then,

#start development server
bun run build
```

## Publish

```bash
#publish app
npm publish

#Package url
https://unpkg.com/eat-js-sdk@<version>/dist/interaction-builder.mjs
```

## Tech Stack

- SvelteKit 2 with Svelte 5
- TypeScript
- Tailwind CSS 3
- Vitest + Playwright
- svelte-dnd-action (custom fork)
