-
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
name
inpackage.json
of the module to the right name. -
Modify the
output.library
name to use the above name inwebpack.config.js
. -
Run
npm run lerna
from root directory so thatlerna
will create all symbolic links for the package to run. Iflerna
fails, just ignore, we only wantlerna
to create links. -
Add the recently recreated module to the servers that requires it. For example:
user-auth0
is need for bothserver/frontend-server
andserver/backend-server
. Add to theirpackage.json
(not the root's package.json) as"@adminide-stack/user-auth0": "*",
-
Again run
npm run lerna
from root directory so thatlerna
will create symbolic link of the package under itsnode_modules
. Iflerna
fails, just ignore, we only wantlerna
to create links and you can fix the errors later. -
Load the modules in the packages.