@abbeblubb/react-library

Project for building and publishing the NPM library

Usage no npm install needed!

<script type="module">
  import abbeblubbReactLibrary from 'https://cdn.skypack.dev/@abbeblubb/react-library';
</script>

README

Publish the library to NPM

Miscellaneous

Babel

Because of the root context, the name of the local babel config should be "babel.config.json".

package.json peerDependencies

In order to work for the consumer

Build the library

Build with Webpack.

> npm run build:lib

Sign in to NPM

> npm adduser

First publish

The first time a scope package is to be published, the public acces flag must be added in order for the package to be public.

> npm publish --access=public

Subsequent publishes

  • Update the SemVer in package.json
  • Push to registry
> npm publish