0.2.2-alpha.0 • Published 4 years ago

@axew/jugg-plugin-lib v0.2.2-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

jugg-plugin-lib

npm.io

Help to build npm library. Most of here reference antd-tools.

usage

.juggrc.js:

module.exports = {
  plugins: ['@axew/jugg-plugin-lib'],
};

then you can use lib commond:

$ jugg lib

get lib/ & es/ results form src/.

config

interface IOptions {
  /**
   * convert less import in es/lib to css file path, default `true`
   */
  convertLessImport2Css?: boolean;
  /**
   * copy file to dest with this suffix, built-in `png|jpg|jpeg|gif|webp|svg|mp4|webm|ogg|mp3|wav|flac|aac|woff|woff2|eot|ttf|otf`
   * @example `md|html`
   */
  copyFileSuffix?: string;
  /**
   * set source code dir, default contains `src`
   */
  sourceDir?: string | string[];
}

notice

  • All in TS is recommended. But also can work with JS source. But there will be no declaration files for js source.
  • Use .browserslistrc config or browserslist key in package.json to share target browsers with Babel, ESLint and Stylelint. See Browserslist docs for available queries and default value.
    {
      // previous built-in config
      "browserslist": [
        "last 2 versions",
        "Firefox ESR",
        "> 1%",
        "ie >= 9",
        "iOS >= 8",
        "Android >= 4"
      ]
    }
0.2.2-alpha.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago