Getting Started with @industream/flowmaker-flowbox-ui
This toolkit generates and runs the frontend config harness from sdk/config/flowbox-ui templates.
Fast start
npm install @industream/flowmaker-flowbox-ui
npx flowbox-ui init
npx flowbox-ui add my-config
npx flowbox-ui start my-config
npm run build
[NOTE!rocket/FLOWBOX-INIT MAPPING]
flowbox-ui initis the scaffold step often referred to as “flowbox-init” in worker frontend setup discussions.
What init creates
flowbox-ui init copies templates/base/* into your frontend folder and installs required dev dependencies.
Expected baseline:
frontend/
├── package.json
├── vite.config.js
└── src/
After flowbox-ui add my-config:
frontend/
└── src/
└── my-config/
├── main.js
└── ConfigForm.svelte
Build output:
config/config.my-config.jsbundle.js
[WARNING!shield/COMPONENT NAME CONTRACT]
startandbuildboth assume your component folder name undersrc/<name>/is stable. Renaming folders without updating commands leads to missing entry errors.
Minimum runtime entry
import ConfigForm from './ConfigForm.svelte';
import { FlowBoxSvelteUI } from '@industream/flowmaker-flowbox-ui';
register('box-config-frontend', new FlowBoxSvelteUI(ConfigForm));
Reference
sdk/config/flowbox-ui/README.mdsdk/config/flowbox-ui/templates/component/main.jssdk/config/flowbox-ui/cli/index.js