Steps for adding a library:
- Add library
ng generate library my-lib
(or shortng g lib my-lib
) - Make changes to library (in folder
projects/my-lib
) - Make sure that all necessary files are included in
projects/my-lib/src/public-api.ts
- Build demo app that uses the component to demonstrate functionality
- Generate with
ng generate module my-lib-demo --module app --routing true --route my-lib
(or shortng g m my-lib-demo --module app --routing true --route my-lib
)- Creates a new folder
app/my-lib-demo
with a new component + a module - Adds the route
my-lib
toapp-routing.module.ts
and points to the module of the new demo app
- Creates a new folder
- Add text (My Lib) and route (my-lib) to demos array in
app.service.ts
- Add the external modules you need (Material components etc.) to
app/my-lib-demo/my-lib-demo.module.ts
- Generate with
npm i -g @solid/community-server
community-solid-server
- register new account
- Now you have a new WebId (eg. http://localhost:3000/test/profile/card#me)