0.1.0 • Published 5 years ago

taro-template v0.1.0

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

taro-file-template

Introduction

taro-template,基于nodejs的fs模块实现命令行快速创建taro文件模板

Installation

yarn add taro-template -D

Config

package.json 中添加如下的script

{
  "scripts": {
    "template": "node node_modules/taro-template/template.js"
  }
}

Usage

  • 创建页面(同步创建scss和interface)
yarn template p directoryPath fileName fileDesc
  • 创建model
yarn template m directoryPath fileName fileDesc
  • 创建service
yarn template s directoryPath fileName fileDesc
  • 创建component
yarn template s directoryPath fileName fileDesc

Command Params

参数描述默认值参数说明
fileType文件类型无,必传string p-page-页面 m-model-数据model s-service-服务类 c-component-组件
directoryPath文件夹路径无,必传string
fileName文件名无,必传string
fileDesc文件描述'文件描述'string
0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago