1.0.3 • Published 8 years ago

grunt-cmshelper v1.0.3

Weekly downloads
1
License
-
Repository
github
Last release
8 years ago

grunt-cmshelper

cmshelper

开始

需要 Grunt版本 ~0.4.5

npm install grunt-cmshelper --save-dev

配置 Gruntfile.js ,加载grunt-cmshelper

grunt.loadNpmTasks('grunt-cmshelper');

配置 "cmshelper" task

简述

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

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

使用自定义 Options

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 将中文转为实体编码的问题
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago