Skip to content

SevenChan07/react-component-boilerplate

Repository files navigation

目录结构

.
├── dist ------------------------ 开发环境静态资源文件夹
├── es -------------------------- 生产环境生成的ES6模块文件夹
├── example --------------------- 开发环境测试文件夹
│   ├── app.js ------------------ 开发环境测试app
│   ├── index.html -------------- 开发环境测试html
│   └── index.js ---------------- 开发环境测试index
├── lib ------------------------- 生成环境生成的UMD模块文件夹
├── package.json ---------------- 项目配置
├── rollup.config.dev.js -------- rollup开发环境配置
├── rollup.config.prod.js ------- rollup生产环境配置
└── src ------------------------- 源码目录
    ├── hello.js ---------------- 组件源码
    ├── hello.stylus ------------ 组件样式
    └── index.js ---------------- 组件入口文件

常用命令

  • 本地开发
npm start
  • 打包
npm run build

build之后会在/lib/es文件夹下分别生成umd,和es的包。

About

A boilerplate to build a React components library with Rollup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published