cra-npm-publish-boilerplate

This is just a boilerplate to develop and publish npm package comfortably.

Usage no npm install needed!

<script type="module">
  import craNpmPublishBoilerplate from 'https://cdn.skypack.dev/cra-npm-publish-boilerplate';
</script>

README

cra-npm-publish-boilerplate

This is just a boilerplate to develop and publish npm package comfortably.

  • Attention: Your component for npm publishing is in 'forPublishing' directory.

How to use:

  1. yarn install - install all dependencies
  2. yarn start - start dev server and open browser
  3. yarn dist - generate a dist directory
  4. npm login - authorize in your npm account
  5. npm publish - publish your package, don't forget to change name in package.json file