|
1 | 1 | # example-host-application
|
2 |
| -Example host application executable for the https://github.com/flowscripter/dynamic-plugin-framework |
| 2 | + |
| 3 | +[](https://github.com/flowscripter/example-host-application/releases) |
| 4 | +[](https://github.com/flowscripter/example-host-application/actions/workflows/release-bun-executable.yml) |
| 5 | +[](https://codecov.io/gh/flowscripter/example-host-application) |
| 6 | +[](https://flowscripter.github.io/example-host-application/index.html) |
| 7 | +[](https://github.com/flowscripter/example-host-application/blob/main/LICENSE) |
| 8 | + |
| 9 | +> Example host application executable for the |
| 10 | +> [dynamic-plugin-framework](https://github.com/flowscripter/dynamic-plugin-framework) |
| 11 | +
|
| 12 | +## Binary Executable Usage |
| 13 | + |
| 14 | +**NOTE**: The binaries are 10's of megabytes in size as the entire Bun runtime |
| 15 | +is included. |
| 16 | + |
| 17 | +#### MacOS |
| 18 | + |
| 19 | +Via [Homebrew](https://brew.sh/): |
| 20 | + |
| 21 | +`brew install flowscripter/tap/example-host-application` |
| 22 | + |
| 23 | +#### Linux |
| 24 | + |
| 25 | +In a terminal: |
| 26 | + |
| 27 | +`curl -fsSL https://raw.githubusercontent.com/flowscripter/example-host-application/main/script/install.sh | sh` |
| 28 | + |
| 29 | +#### Windows |
| 30 | + |
| 31 | +Via [Winget](https://github.com/microsoft/winget-cli): |
| 32 | + |
| 33 | +`winget install Flowscripter.example-host-application` |
| 34 | + |
| 35 | +#### Manual Install |
| 36 | + |
| 37 | +You can download and extract the binary zip files from the |
| 38 | +[releases](https://github.com/flowscripter/example-host-application/releases) |
| 39 | +page. |
| 40 | + |
| 41 | +## Functional Tests |
| 42 | + |
| 43 | +Refer to [functional_tests/README.md](functional_tests/README.md) |
| 44 | + |
| 45 | +## Development |
| 46 | + |
| 47 | +Install dependencies: |
| 48 | + |
| 49 | +`bun install` |
| 50 | + |
| 51 | +Test: |
| 52 | + |
| 53 | +`bun test` |
| 54 | + |
| 55 | +Run: |
| 56 | + |
| 57 | +`bun run index.ts` |
| 58 | + |
| 59 | +Compile binary: |
| 60 | + |
| 61 | +`bun build index.ts --compile --outfile /tmp/example-host-application` |
| 62 | + |
| 63 | +**NOTE**: The following tasks use Deno as it excels at these and Bun does not |
| 64 | +currently provide such functionality: |
| 65 | + |
| 66 | +Format: |
| 67 | + |
| 68 | +`deno fmt` |
| 69 | + |
| 70 | +Lint: |
| 71 | + |
| 72 | +`deno lint index.ts src/ tests/` |
| 73 | + |
| 74 | +Generate HTML API Documentation: |
| 75 | + |
| 76 | +`deno doc --html --name=example-host-application index.ts` |
| 77 | + |
| 78 | +## Documentation |
| 79 | + |
| 80 | +### Framework API |
| 81 | + |
| 82 | +Refer to the |
| 83 | +[dynamic-plugin-framework](https://github.com/flowscripter/dynamic-plugin-framework) |
| 84 | +for an overview of what this example is demonstrating. |
| 85 | + |
| 86 | +### API |
| 87 | + |
| 88 | +Link to auto-generated API docs: |
| 89 | + |
| 90 | +[API Documentation](https://flowscripter.github.io/example-host-application/index.html) |
| 91 | + |
| 92 | +## License |
| 93 | + |
| 94 | +MIT © Flowscripter |
0 commit comments