https://github.com/Lexpeartha/nuxt-xstate
XState integration for Nuxt
https://github.com/Lexpeartha/nuxt-xstate
composition-api dx finite-state-machine hacktoberfest library nuxt nuxt-module nuxtjs state-charts vue xstate
Last synced: 6 months ago
JSON representation
XState integration for Nuxt
- Host: GitHub
- URL: https://github.com/Lexpeartha/nuxt-xstate
- Owner: Lexpeartha
- License: mit
- Created: 2022-08-07T12:07:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T06:36:28.000Z (9 months ago)
- Last Synced: 2024-11-23T09:34:16.074Z (7 months ago)
- Topics: composition-api, dx, finite-state-machine, hacktoberfest, library, nuxt, nuxt-module, nuxtjs, state-charts, vue, xstate
- Language: TypeScript
- Homepage: https://nuxt-xstate.lexpeartha.com/
- Size: 1.69 MB
- Stars: 55
- Watchers: 3
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Nuxt XState
     
Nuxt XState module allows for easy integration of [XState](https://xstate.js.org/) with Nuxt.js.
- [Read documentation](https://nuxt-xstate.lexpeartha.com) :book:
- [Online playground](https://stackblitz.com/edit/nuxt-xstate-playground?file=app.vue) :video_game:## Features :sparkles:
- Nuxt Bridge & Nuxt 3 supported
- Auto-importing of XState composables
- Auto-importing of your own state-machines## Installation :floppy_disk:
Run one of the following commands:
```bash
npx nuxi@latest module add xstate
```And add it to your `nuxt.config.ts`:
```js
import { defineNuxtConfig } from 'nuxt/config'export default defineNuxtConfig({
modules: ['nuxt-xstate']
})
```## Usage :toolbox:
:point_right: Check out the [documentation](https://nuxt-xstate.lexpeartha.com/getting-started/usage)
## Work in progress :construction:
- [ ] [`@xstate/inspect`](https://xstate.js.org/docs/packages/xstate-inspect/) support
## Development :computer:
- Clone repository and install dependencies with `yarn install`
- Run `yarn dev:prepare` to generate type stubs.
- Use `yarn dev` to start [playground](./playground) in development mode.