You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of our JavaScript libraries have several sub-packages included in their repositories.
This is most evidently seen in the Paragon repository where there is a component-generator, dependent-usage-analyzer, example, icons, src, and www all treated as packages within the repository, each containing their own package.json file to define their specific dependencies.
While other repositories (e.g., frontend-build, frontend-platform, frontend-component-header) don't have as many packages, our convention is typically to include an example MFE app in order to run the JS library against for QA during local development.
For example, frontend-build has an example package that defines its dependencies via its own package.json file. To run the example app after a git clone of the repo, you have to cd example && npm install && npm start rather than simply running npm install && npm start from the root of the repository, which is not intuitive.
To get around this issue and others in Paragon, we have adopted NPM workspaces. As such, this GitHub issue is intended to track the consideration of whether NPM workspaces are relevant for any of our other JS libraries as a quality of life improvement for contributors and newcomers.
The text was updated successfully, but these errors were encountered:
Description
Many of our JavaScript libraries have several sub-packages included in their repositories.
This is most evidently seen in the Paragon repository where there is a
component-generator
,dependent-usage-analyzer
,example
,icons
,src
, andwww
all treated as packages within the repository, each containing their own package.json file to define their specific dependencies.While other repositories (e.g., frontend-build, frontend-platform, frontend-component-header) don't have as many packages, our convention is typically to include an example MFE app in order to run the JS library against for QA during local development.
For example,
frontend-build
has anexample
package that defines its dependencies via its own package.json file. To run the example app after a git clone of the repo, you have tocd example && npm install && npm start
rather than simply runningnpm install && npm start
from the root of the repository, which is not intuitive.To get around this issue and others in Paragon, we have adopted NPM workspaces. As such, this GitHub issue is intended to track the consideration of whether NPM workspaces are relevant for any of our other JS libraries as a quality of life improvement for contributors and newcomers.
The text was updated successfully, but these errors were encountered: