A browser-based framework for running applications built using the Boomi Flow platform.
If dependencies have not been installed yet, install them in the top level
monorepo ui-runtime
with:
# top level monorepo
npm install
Before running the ui-runtime
create a .env
file in the root directory containing the following environment variables (.env.example
can be used as a basis):
CDN_URL=""
PLATFORM_URI="https://development.manywho.net"
Then use the following command:
npm start
The dev server will run at http://localhost:3000
Flows can be accessed with the same structure of url as they run in production.
Eg. http://localhost:3000/<TENANT_ID>/play/default?flow-id=<FLOW_ID>&flow-version-id=<FLOW_VERSION_ID>
To see the list with links to all files served by the webpack dev server go to:
http://localhost:3000/webpack-dev-server
To run tests on all subrepos use:
npm test
To run tests on ui-core only use:
# ui-core
npm test:core
All listed commands are defined in the top-level package.json
and should be
executed from the top-level directory.
Other subrepos don't have/need tests because they are either just HTML, CSS or 3rd party scripts.
To run code linting on all subrepos use:
npm run lint
To run test linting on all subrepos use:
npm run lint:test
To run code linting on individual subrepos use:
# ui-bootstrap
npm run lint:bootstrap
# ui-core
npm run lint:core
# ui-offline
npm run lint:offline
To run test linting on individual subrepos use:
# ui-bootstrap
npm run lint:bootstrap:test
# ui-core
npm run lint:core:test
# ui-offline
npm run lint:offline:test
All listed commands are defined in the top-level package.json
and should be
executed from the top-level directory.
To run style linting on all subrepos use:
npm run stylelint
To run style linting on individual subrepos use:
# ui-bootstrap
npm run stylelint:bootstrap
# ui-offline
npm run stylelint:offline
# ui-themes
npm run stylelint:themes
All listed commands are defined in the top-level package.json
and should be
executed from the top-level directory.
Other subrepos don't have/need linting because they don't contain any styles.
This command is meant to be used by Bamboo to build the ui-runtime for deployment. Running it manually by the developer is no longer required.
By default all files will be emitted into the runtime_build
directory.
To change the default build output directory you can edit the repoPaths
object in config/paths.js
.
To change the default build output directory "on the fly" pass a custom output
directory via the optional --env.build
argument
npm run build -- --env.build=<output_dir>
npm run build -- --env.analyse
Note: There is no need to assign any value to the --env.analyse
argument.