Initial commit

This commit is contained in:
2023-12-21 21:42:10 +01:00
commit f80161ee22
11 changed files with 358 additions and 0 deletions

23
README.md Normal file
View File

@@ -0,0 +1,23 @@
finite-state-automaton
======================
Use
---
### No build-tool
While this project is written with the Node.Js tooling (Vite+MermaidJS), a simple transformation can be done to make it work in a browser.
```sh
sed -i "s|from 'mermaid'|from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs'|" src/fsm.js
```
### Build-tool
Run your favorite package manager (npm, yarn, pnpm, bun, etc.) to install the dependencies and build the Vite application:
```sh
npm install
npm run dev # Run the Vite development server
npm run build # Build the application in the dist/ directory
```