# 17-publish-component-library

> ## Base Depenencies

Latest version **1.0.3** (published 2019-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install 17-publish-component-library
pnpm add 17-publish-component-library
yarn add 17-publish-component-library
bun add 17-publish-component-library
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-10-15 |
| First published | 2019-10-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | hiiamyes |

## Links

- npm: https://www.npmjs.com/package/17-publish-component-library
- npm.io page: https://npm.io/package/17-publish-component-library

## Recent versions

- 1.0.3 (latest) — 2019-10-15
- 1.0.2 — 2019-10-15
- 1.0.1 — 2019-10-15
- 1.0.0 — 2019-10-15

## README

# Publish Component Library

## Base Depenencies

```sh
yarn add --dev \
    rollup \
    rollup-plugin-babel \
    rollup-plugin-node-resolve \
    rollup-plugin-commonjs \
    @babel/core \
    @babel/preset-env \
    @babel/preset-react

yarn add --peer \
    react \
    styled-components
```

## Bundle

```sh
yarn bundle
```

By [Rollup](https://github.com/rollup/rollup)

- -c, --config <filename> Use this config file (if argument is used but value
  is unspecified, defaults to rollup.config.js)
- -f, --format <format>: Type of output (amd, cjs, esm, iife, umd)
  - use esm for frontend component library

Plugins:

- [rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve): Use the Node.js resolution algorithm with Rollup (formerly rollup-plugin-npm)
- [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs): Convert CommonJS modules to ES2015
- [rollup-plugin-babel]():

## Publish

```sh
yarn publish
```

## Usage

```sh
yarn add react styled-components 17-publish-component-library
```

```js
import { Spinner } from "17-publish-component-library";

<Spinner />;
```

[Demo](https://codesandbox.io/embed/practice-17-publish-component-library-2p8tj)

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