create-npm-library
v0.0.0
Published
__
Downloads
2
Readme
create-react-library
Boilerplate generator for creating npm packages
To generate boilerplate
React component
npx create-npm-library react-component -o directory --name package-name
Vanilla js library
npx create-npm-library vanilla -o directory --name package-name
To publish your package
Log in to your account.
yarn login
# Enter your credentialsPublish!
yarn publish --access=public
To test your package locally
In your package directory
npm link
In your project root
npm link {{package-name}}