Skip to content

LivelyKernel/lively-runtime-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to combine external JS projects with Lively

  1. Put a file lively-runtime.js in the root folder of the project

  2. 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.

  3. Then, simply by switching into the project directory, lively-runtime.js will be loaded. If it adds a project with a reloadAll method, this method is run.

  4. 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.

  5. The doit context in the text editor will be set to whatever the getDoitContext() method of the lively.lang.Runtime project returns.

About

Example for how to integrate an external JS lib into Lively for live-development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published