jugg-plugin-lib

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 {
convertLessImport2Css?: boolean;
copyFileSuffix?: string;
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.
{
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%",
"ie >= 9",
"iOS >= 8",
"Android >= 4"
]
}