# component-as-package-boilerplate

> A bolierplate code to get started with writing reusable react components that can be published to as npm modules.

Latest version **0.1.4** (published 2021-06-13) · 0 weekly downloads

## Install

```sh
npm install component-as-package-boilerplate
pnpm add component-as-package-boilerplate
yarn add component-as-package-boilerplate
bun add component-as-package-boilerplate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2021-06-13 |
| First published | 2021-06-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | adityawankhede |

## Links

- npm: https://www.npmjs.com/package/component-as-package-boilerplate
- npm.io page: https://npm.io/package/component-as-package-boilerplate

## Recent versions

- 0.1.4 (latest) — 2021-06-13
- 0.1.3 — 2021-06-13
- 0.1.2 — 2021-06-13
- 0.1.1 — 2021-06-13
- 0.1.0 — 2021-06-13

## README

# React components as package.
A bolierplate code to get started with writing reusable react components that can be published to as npm modules.

```
git clone https://github.com/adityawankhede5/component-as-package-boilerplate.git
```

After it is cloned install the required dependencies with `npm i`

1. Write all your components inside `lib/components` folder.
1. Write import and export for your components inside `lib/index.js`. 
1. Build the components using `npm run build` command.
1. Now you are ready to publish.
1. For publishing first time, make sure you change the `"name"` inside `package.json` this is the name of your npm package.
1. To publish the components run `npm publish` command. You might need to login to npm using the `npm login` command.

---
_Source: https://npm.io/package/component-as-package-boilerplate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
