0.0.22 • Published 5 years ago

smash-template-react-component v0.0.22

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

smash-template-react-component

使用 smash-cli 模板规范 开发的 react 组件 模板。

安装模板

# 在demo目下安装本模板
$ mkdir demo && cd demo
$ smash i smash-template-react-component

目录结构

├── .smash            # smash-cli 工具的配置文件目录
│   └─── task.yml     # 配置文件,介绍文档:https://github.com/chenhaihong/smash-cli/wiki
│
├── dist              # 组件的构建输出目录,文件输出规则:[name].min.js
│
├── lib               # 组件入口目录,入口文件规则:*.js(x)
│
├── src               # 本地测试开发的文件存放的目录
│
├── webpack.config.js
│

开发模式构建

$ npm i
$ smash run server # 启动 webpack-dev-server

生产模式构建

$ smash run lib

提示

因为在首次运行项目时需要下载 smash-middleware-webpack-v4 中间件,所以速度会比较慢。

Links

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago