In an actual package.json, this should all be one long line.) "publish": "npm install & (Note that each command is on its own line for ease of readability. The public-api.ts file contains exports for every module and component exposed by the library.ĭeploying a new version of the component library to npm is accomplished by running an npm run publish script which we have set up in the root package.json. Our component library exists in the projects/components directory. Our component library project is laid as follows, excluding extraneous files and folders: ├── package.json But, we also want to be able to import the components locally to test them without having to re-deploy to npm for every little check. We’re deploying this library to npm for use in the other projects that use these components. We’re creating these components in a separate project and using Storybook to test our components and gain confidence that they work correctly before being used in other applications. For our current project, my software team is building an Angular library that can be used in a few different applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |