Skip to content

Adding Package Module

veeramarni edited this page May 12, 2018 · 3 revisions
  • Create a copy of existing Package Module to use as a template

  • Modify the name in package.json of the module to the right name.

  • Modify the output.library name to use the above name in webpack.config.js.

  • Run npm run lerna from root directory so that lerna will create all symbolic links for the package to run. If lerna fails, just ignore, we only want lerna to create links.

  • Add the recently recreated module to the servers that requires it. For example: user-auth0 is need for both server/frontend-server and server/backend-server. Add to their package.json (not the root's package.json) as "@adminide-stack/user-auth0": "*",

  • Again run npm run lerna from root directory so that lerna will create symbolic link of the package under its node_modules. If lerna fails, just ignore, we only want lerna to create links and you can fix the errors later.

  • Load the modules in the packages.

Clone this wiki locally