17-publish-component-library

    1.0.3 • Public • Published

    Publish Component Library

    Base Depenencies

    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

    yarn bundle

    By Rollup

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

    Plugins:

    Publish

    yarn publish

    Usage

    yarn add react styled-components 17-publish-component-library
    import { Spinner } from "17-publish-component-library";
     
    <Spinner />;

    Demo

    Keywords

    none

    Install

    npm i 17-publish-component-library

    DownloadsWeekly Downloads

    4

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    2.54 kB

    Total Files

    6

    Last publish

    Collaborators

    • hiiamyes