Skip to content

binodswain/react-lib-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d411cd · Oct 16, 2020

History

21 Commits
Apr 10, 2020
Oct 16, 2020
Oct 16, 2020
Oct 16, 2020
Oct 16, 2020
Oct 16, 2020
Dec 31, 2019
Apr 10, 2020
Apr 10, 2020
Apr 10, 2020
Dec 31, 2019
Apr 10, 2020
Apr 10, 2020
Apr 10, 2020
Dec 31, 2019
Apr 10, 2020
Oct 16, 2020
Oct 16, 2020
Oct 16, 2020
Jul 13, 2020

Repository files navigation

Test Status Build Status

react-lib-template

A sample opinionated template to build npm packages. Uses below technologies to test and build the package.

  • Reactjs
  • Babel
  • Rollup

Running the code with example app

First, setup a CRA to use the code as package.

npx create-react-app example

In package.json, add the package name as a dependencies. "react-lib-template": "file:..",

Note: replace react-lib-template with the name present in package.json in root dir.

Now run npm start script from root dir and from example/ dir.

GitHub Actions

The template has two actions already setup. Replace react-lib-template accordingly.

  • Test: to run the test script.
  • Build: to test, lint and build the package