Luigi Core is a micro frontend framework written in Svelte. To learn how it works, read this document.
Read the subsections to learn how to use the project.
Linking and building with Lerna is the preferred development method. This monorepo uses Lerna for project management.
Follow these steps:
-
Install Lerna globally.
npm install -g lerna
-
Install dependencies. The
lerna bootstrap --force-local
command executes the Node Package Manager (NPM) installation and links cross-dependencies.lerna bootstrap --force-local
-
Bundle the Luigi Core. The
lerna run bundle
command runs thebundle
script in every package referenced in thelerna.json
file.lerna run bundle // or non-minified and watcher: lerna run bundle-develop
You can see the Luigi Core in action by running the Angular example application.
Use the following steps, if you want to have a simpler development environment with less output and not the full-blown e2e application. This becomes handy if you want to debug a certain scenario where you already have a Luigi configuration snippet.
- Install dependencies.
npm install
- Run webserver with live reload.
npm run simpledev
This will create (or use, if already existing) a simple Luigi app under /dev-tools/simple-app
where you can make changes according to your needs.
To perform the unit test on JavaScript files, run npm test
.