bo-taro-ui
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

bo-taro-ui

前端 对接 taro 的小程序UI库 基于react语法

文件结构

- config  打包配置
- dist    打包后的文件
- lib     ts转译后的js
- src/                  
  - common              公用函数
    - utils.ts
  - components          组件
  - style               样式
    - components        组件样式
    - mixins            scss混入
    - variables         scss变量
    - index.scss        入口
  - index.ts            入口
- types/                类型定义文件
  - components
  - index.d.ts          入口

开发

需要npm link 到项目中进行开发,后期尝试将demo放到库中

# 本地开发
yarn dev:watch

# 打包
yarn build

# ts 代码检测
yarn lint

yarn lint:fix

# scss 代码检测
yarn lint:style

lint:style-fix

# 清除打包文件
yarn clean

# 包分析
yarn test:analyze

# 使用igc-lib函数库时,要用require引用
require('@igc-lib/mp-wx-utils')

使用

# 引入单个组件的样式文件
@import "~bo-taro-ui/dist/style/components/${文件名称}.scss";

# 引入全部组件的样式文件
@import "~bo-taro-ui/dist/style/index.scss";

# 引入组件
import { AddApplet } from bo-taro-ui'

Readme

Keywords

Package Sidebar

Install

npm i bo-taro-ui

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

24.1 kB

Total Files

25

Last publish

Collaborators

  • yslqq