npm install grunt-buddha-qingqinxl> test gruntplugin
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
``shell`
npm install grunt-buddha-qingqinxl --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-buddha-qingqinxl');
to the data object passed into grunt.initConfig().`js
grunt.initConfig({
buddha_qingqinxl: {
options: {
who: 'buddha_qingqinxl',
commentSymbol: '//'
},
dist: ['example/*.js']
}
})
`$3
#### options.who
Type:
String
Default: buddha_qingqinxl
who: String
添加神兽保佑还是佛祖保佑的js注释,默认为佛祖保佑,神兽保佑选项值为:alpacaA string value that is used to do something with whatever.
#### options.commentSymbol
Type:
String
Default value: //
添加神兽保佑或者佛祖保佑注释以js注释//开头A string value that is used to do something else with whatever else.
$3
需要添加神兽保佑或者佛祖保佑的js文件路径
``