-
Put a file
lively-runtime.js
in the root folder of the project -
Make sure that the directory menu bar entry is loaded:
lively.Config.add("menuBarEntries", "lively.ide.tools.CurrentDirectoryMenuBarEntry")
it ensures that the lively-runtime.js module gets run when you enter a project directory. -
Then, simply by switching into the project directory,
lively-runtime.js
will be loaded. If it adds a project with areloadAll
method, this method is run. -
When project files are changed using Lively's text editor and
lively-runtime.js
defines a file handler for a file, this handler will be called and can then define how to re-load the changed file. -
The doit context in the text editor will be set to whatever the
getDoitContext()
method of thelively.lang.Runtime
project returns.
LivelyKernel/lively-runtime-example
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example for how to integrate an external JS lib into Lively for live-development
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published