New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@aiou/react-components-lib-template

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aiou/react-components-lib-template

react-components-lib-template

latest
Source
npmnpm
Version
1.2.9
Version published
Maintainers
1
Created
Source

@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

Keywords

react

FAQs

Package last updated on 06 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts