react-typescript-library-rollup-jest

0.0.1 • Public • Published

React Typescript sample library

dependencies Status devDependencies Status License: MIT

Read detailed description/tutorial on https://www.grzegorowski.com/publishing-react-typescript-library-rollup-jest/ or check example package https://github.com/jmarceli/react-typescript-library-rollup-jest.

Usage

This is a starting point for creating your own custom React Typescript components package, so you can easily share them with community through the NPM.

  1. Clone this repository git clone git@github.com:jmarceli/react-typescript-library-rollup-jest.git
  2. Adjust REAMDE.md content (e.g. paths in badges above)
  3. Replace all occurrences of react-typescript-library-rollup-jest with your package name and jmarceli with your github username
  4. Remove .git/ directory
  5. Clean src/ folder
  6. Add your own code to src/
  7. Export all components from src/index.tsx file (see current src/index.tsx for sample code)
  8. Develop your package (use example/ directory to test it)
  9. Adjust package.json file according to your needs especially set version to initial value e.g. 0.0.0
  10. Publish your package to npm with e.g. npm version patch followed by npm publish

License

MIT

Author

Jan Grzegorowski

Dependencies (0)

    Dev Dependencies (33)

    Package Sidebar

    Install

    npm i react-typescript-library-rollup-jest

    Weekly Downloads

    9

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    22.6 kB

    Total Files

    23

    Last publish

    Collaborators

    • jmarceli