# grunt-cmshelper

> cmshelper

## 开始
需要 Grunt版本 `~0.4.5`

 

```安装
npm install grunt-cmshelper --save-dev
```

配置 Gruntfile.js ,加载grunt-cmshelper

```js
grunt.loadNpmTasks('grunt-cmshelper');
```

## 配置 "cmshelper" task

### 简述


```js
grunt.initConfig({
  cmshelper: {
    options: {
      // Task-specific options go here.
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
});
```

### Options

#### options.chname
Type: `String`
Default value: `'focus'`

频道名称.

#### options.punctuation
Type: `String`
Default value: `'.'`

A string value that is used to do something else with whatever else.

### 示例

#### 使用默认 Options
 

```js
grunt.initConfig({
  cmshelper: {
    options: {
    },
    files: {
      'test/': ['test/*.html']
    },
  },
});
```

#### 使用自定义 Options
 

```js
grunt.initConfig({
  cmshelper: {
    options: {
      chname:'shuhua'
    },
    files: {
      'test/': ['test/*.html']
    },
  },
});
```

## 发布历史
### v1.0.1
 * 初步完成静态页combo转为cms的grunt插件，增加地址超2000字符拆分逻辑
 * 初步完成jsonp版本的web页面httpserver,版本的combo转换
### v1.0.2
 * 优化关键词，完善readme

### v1.0.3
 * 解决cheerio 将中文转为实体编码的问题