Appearance
Work with NPM
Publication
The publishing of the new version of the library is fully automated and takes place through the process of Semantic Release.
Importing with NPM
Importing the package is possible in two modes:
- locally - through
npm link
; - via NPM - installing a package with NPM;
npm link
The first of the above options helps to test the component library as if it was published in the NPM. In short, it involves using the npm link
command in a package that we want to use in another repository in which we use the npm link package_name
command. More information about npm link.
Installation NPM
This installation requires publishing the package and then installing the library in the application via the standard npm install package_name
command. If the published library is not public, to install it, create a .npmrc
file in the main directory of the application with the following content:
bash
//registry.npmjs.org/:_authToken=npm_token_do_odczytu