1.2.9 • Published 3 years ago

@aiou/react-components-lib-template v1.2.9

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

@aiou/react-components-lib-template

build multiple react components lib, insipred by antd-tools

npm GitHub stackblitz

Edit on StackBlitz ⚡️

features

  • output lib & es components version
  • build with gulp
  • multiple react components
  • support css-modules

install

yarn add @aiou/react-components-lib-template

usage

with babel-plugin-import

  • use with umi

    extraBabelPlugins: [
      [
        'import',
        {
          libraryName: '@aiou/react-components-lib-template',
          style: 'css',
        },
      ],
    ]

development

  • Setup - yarn * yarn dev
  • Build - yarn build

Q&A

  • import external stylus lib

    .pipe(
      stylus({
        'include css': true,
        set: ['resolve url'],
        use: [plugin()], // some stylus plugin like nib
        import: [
          path.resolve(
            __dirname,
            'path/index.styl', // external stylus path
          ),
          path.resolve(__dirname, 'components/style/gray.styl'),
        ],
      }),
    )
    • css-modules - in build/postcss.config.js
1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.0

3 years ago

1.2.3

3 years ago

1.2.1

3 years ago

1.0.4

3 years ago

1.0.0

4 years ago

0.5.0

4 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago