1.1.2 • Published 4 years ago

@lowinc/createfile v1.1.2

Weekly downloads
6
License
ISC
Repository
-
Last release
4 years ago

Templater

基于 nodejs 实现的一个命令行工具,用于生成基础代码.

默认模板中: 页面使用 Taro,数据流使用 Dva,可以通过配置 templater.json 使用自定义模板.

安装

yarn global add @lowinc/createfile

配置

根目录下

templater.json

{
  "view": "src/pages",
  "store": "src/store",
  //   可选 自定义模板
  "template": {
    "view": "template/view.tsx",
    "store": "template/store.ts"
  }
}

使用

默认生成页面

lowincCreatefile pageName

加上第二个参数 store 生成 store

lowincCreatefile storeName store

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.1

4 years ago