1.6.0 • Published 6 years ago

test-react-ts-npm-package v1.6.0

Weekly downloads
94
License
-
Repository
github
Last release
6 years ago

Boilerplate for React UI libraries

Build Status

This is a boilerplate that allows you to create your own react components with React and Typescript. Bellow you'll find a description on how to use this project from different points of view: User, Contributor and Creator.

Using this project as a library

Install

Run npm install --save-dev test-react-ts-npm-package

Import single components (smaller bundle size)

import Banner from "test-react-ts-npm-package/dist/banner";
import Button from "test-react-ts-npm-package/dist/button";

function App() {
  return (
    <div>
      <Banner name="John" />
      <Button>Go</Button>
    </div>
  );
}

Edit Usage of the test-react-ts-npm-package with simple react

Import the full library

import Banner, { Button } from "test-react-ts-npm-package";
import

function App() {
  return (
    <div>
      <Banner name="Doe" />
      <Button>Planet</Button>
    </div>
  );
}

Using this project as boilerplate

  • Clone this project
  • Modify the package.json file so that the new package name, version, etc fits your need.
  • Follow the steps from bellow

Using this project as contributor

  • Clone this project
  • Create a new branch along the lines of feature/newcomponent
  • Install dependencies npm install
  • Start the local development environment running npm run storybook
  • Add your changes
  • Add tests for your changes
  • If you add new component, make sure to add that in the storybook editing the stories/index.js file
  • Add the changes to git with git add -A .
  • Commit your change using "Angular Commit Message Conventions" (Read more) using npm run commit and a wizard will guide you.
  • Push the changes to origin and create a pull request.
1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago