template project generator.


## Quick Start


Create the app:

```bash
$ npm install -g jdtpl-generator
```
use example:

```bash
$ tpl -s 300/200 -m

$ tpl -h

  Usage: tpl [options] <pra ...>

 Options:

   -h, --help                      output usage information
   -V, --version                   output the version number
   -s, --size [width/height]       设置广告位生成的高宽
   -n, --name [value]              设置项目名称，默认为template
   -p, --path                      在当前目录下生成项目
   -j, --less [jdAd320-250|.....]  手动选择样式
   -f, --force                     强制覆盖非空目录
   -t, --theme [normal|adx]        设置样式主题
   -m, --mobile                    使用移动端的脚本和样式
   -a, --author [value]            设置备注信息，如作者之类
   -l, --list                      列出所有样式
```

```
tpl -s 500/300 -t adx -a 增加全球购标签 -m
```
生成 宽高为500,300的模板项目, adx主题样式（默认配置，可不写）,备注为增加全球购标签, 使用移动端样式和脚本

```
tpl -s jdAd644-90
```
使用jdAd644-90.less生产css;
共`jdAd320-250|jdAd200-300|jdAd644-90|jdAd1000-90|jdAd320-80|jdAd160-600|jdAd200-200`七种样式

```

tpl -p 在当前文件夹下生成项目
```
默认在当前文件夹下建立新的项目

```
tpl -f
```
强制覆盖原来的文件



##生成模板项目后的使用




1. 首先安装grunt插件
  ```
  npm install
  ```

2. 运行grunt
  ```
  grunt dev //生成开发环境下的文件，可以插入测试数据直接调试，使用生成的本地脚本和样式文件

  grunt proc //生成生成环境的文件，文件位于dist/html中
  ```

3. 发布
  grunt publish:id

### [License (MIT)](LICENSE)

##ISSUE

###0.3.35   修复grunt write一些问题
###0.3.34   增加svn管理广告位的功能
###0.3.33   修复移动端脚本问题
###0.3.32.  修改移动端主题名称和价格加载判断店铺逻辑
###0.3.31.  修复好评的问题
###0.3.30.  修复脚本问题和模板的bug
###0.3.28.  移动端脚本和样式修改
###0.3.27.  修正grunt发布流程，修改好评数的展示问题
###0.3.26.  logo和样式修正
###0.3.25.  pc端脚本和样式修正