umi-library

  • Version 1.6.0
  • Published
  • 115 kB
  • 46 dependencies
  • MIT license

Install

npm i umi-library
yarn add umi-library
pnpm add umi-library

Overview

Library toolkit based on rollup and docz.

Index

Variables

variable doc

const doc: IDoc;

    Functions

    function build

    build: (opts: IOpts) => Promise<any>;

      Interfaces

      interface IBundleOptions

      interface IBundleOptions {}

        property autoprefixer

        autoprefixer?: Object;

          property cjs

          cjs?: BundleType | ICjs | false;

            property cssModules

            cssModules?: boolean | Object;

              property doc

              doc?: IDoczConfig;

                property entry

                entry?: string | string[];

                  property esm

                  esm?: BundleType | IEsm | false;

                    property extraBabelPlugins

                    extraBabelPlugins?: any[];

                      property extraBabelPresets

                      extraBabelPresets?: any[];

                        property extraPostCSSPlugins

                        extraPostCSSPlugins?: any[];

                          property file

                          file?: string;

                            property namedExports

                            namedExports?: IStringArrayObject;

                              property overridesByEntry

                              overridesByEntry?: {
                              [entry: string]: any;
                              };

                                property replace

                                replace?: {
                                [value: string]: any;
                                };

                                  property runtimeHelpers

                                  runtimeHelpers?: boolean;

                                    property target

                                    target?: 'node' | 'browser';

                                      property umd

                                      umd?: IUmd | false;

                                        interface IDocOpts

                                        interface IDocOpts {}

                                          property cmd

                                          cmd: string;

                                            property cwd

                                            cwd: string;

                                              property params

                                              params?: any;

                                                property userConfig

                                                userConfig?: any;

                                                  interface IOpts

                                                  interface IOpts {}

                                                    property buildArgs

                                                    buildArgs?: IBundleOptions;

                                                      property cwd

                                                      cwd: string;

                                                        property watch

                                                        watch?: boolean;

                                                          Package Files (2)

                                                          Dependencies (46)

                                                          Dev Dependencies (0)

                                                          No dev dependencies.

                                                          Peer Dependencies (0)

                                                          No peer dependencies.

                                                          Badge

                                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/umi-library.

                                                          • Markdown
                                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/umi-library)
                                                          • HTML
                                                            <a href="https://www.jsdocs.io/package/umi-library"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>