-
Notifications
You must be signed in to change notification settings - Fork 0
Adding Package Module
-
Create a copy of existing Package Module to use as a template
-
Modify the
nameinpackage.jsonof the module to the right name. -
Modify the
output.libraryname to use the above name inwebpack.config.js. -
Run
npm run lernafrom root directory so thatlernawill create all symbolic links for the package to run. Iflernafails, just ignore, we only wantlernato create links. -
Add the recently recreated module to the servers that requires it. For example:
user-auth0is need for bothserver/frontend-serverandserver/backend-server. Add to theirpackage.json(not the root's package.json) as"@adminide-stack/user-auth0": "*", -
Again run
npm run lernafrom root directory so thatlernawill create symbolic link of the package under itsnode_modules. Iflernafails, just ignore, we only wantlernato create links and you can fix the errors later. -
Load the modules in the packages.