An open API service indexing awesome lists of open source software.

https://github.com/csbun/generator-act

活动 yeoman generator
https://github.com/csbun/generator-act

Last synced: about 4 hours ago
JSON representation

活动 yeoman generator

Awesome Lists containing this project

README

        

# generator-act

[![NPM](https://nodei.co/npm/generator-act.png)](https://nodei.co/npm/generator-act/)

## 安装

```
npm i -g yo bower generator-act
npm i -g scrat fis-prepackager-i18n fis-prepackager-browserify
```

## 使用

### 生成项目

```
mkdir my-project
cd my-project
yo act
```

### 生成页面文件

```
yo act:view
```

其中 `viewName` 为页面名

### 定义配置

```
yo act:config [configValue]
```

其中 `configKey` 为配置名,`configValue` 为配置值。

### 生成组件文件

```
yo act:cmp new
```

或者可以简写为

```
yo act:cmp n
```

### 安装组件

```
yo act:cmp install
```

或者可以简写为

```
yo act:cmp i
```

### 生成国际化配置文件

```
yo act:i18n
```

其中 `language` 为语言名称,如 `en`,`ru` 等

### 查看当前工具版本

```
yo act:v
```

## License

MIT