Hi this is a base project for a react component library. This project is meant to have all of the simple things you need to start a new react component library.
-
Run
npm install
-
In package.json update
name
to the name of your library -
Update registery in publishConfig like this
https://npm.pkg.github.com/<GITHUB_ACCOUNT_NAME>
-
create a global
.npmrc
file that looks something like thisregistry=https://registry.npmjs.org/ //npm.pkg.github.com/:<AUTH_TOKEN> @<GITHUB_ACCOUNT_NAME>:registry=https://npm.pkg.github.com
-
Run
npm run rollbar
-
Run
npm publish --access public