Web editor to facilitate creation of web simulators. Employs ACE editor using markdown/xml mode and generates preview using markdown-it and bodylight web components.
This project is bootstrapped by aurelia-cli.
- Run dev app -
npm start
, then openhttp://localhost:8080
- Build for production -
npm run build
, or the old wayau build --env prod
. - Unit tests -
npm run test
orau test
(orau jest
).
Use np
from https://www.npmjs.com/package/np as follows:
np 1.0.0 --no-publish
This won't publish to NPM, but will create release, check git repo, run tests, create release tags and draft in github.
using scripts in bin/
directory
au build; cd bin; ./publishsite.sh
will deploy the dist
folder into Github Pages.
- Create new project OR load existing project using Project menu.
- Create new file OR upload existing files
- MD file - contains document with Bodylight components
- ZIP file - it is expected to be output of FMU Compiler - JS with WebAssembly and FMU, modelDescription.XML),
- JS file - it is expected to be Adobe Animate project exported to CreateJS,EaselJS library
- other file (PNG,GIF,JPG) - it is expected as static or animated images
- Edit text in middle pane (Editor). Use toolbar to add bodylight components or standard tags. See preview in the right panel.
- component-name inserts component into the cursor position of editor
- shows help for particular component
- undo the operation of addin the item
- redo the operation of addin the item
- H1 H2 ... - adds bold,italic, header 1, header 2, ...
- Preview is rendered when
- creating new line by pressing Enter
- deleting line by Delete or BackSpace
- Save project or export project (HTML with
bodylight.bundle.js
) using Project menu.
- Bodylight web components
- Bodylight FMU Compiler
- Bodylight Composer does not support web components yet