Buddha\'s grace illuminates code as sunshine
npm install grunt-buddha-lleshell
npm install grunt-buddha --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');
`
The "buddha" task
$3
In your project's Gruntfile, add a section named buddha to the data object passed into grunt.initConfig().
`js
grunt.initConfig({
buddha: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
})
`
$3
#### options.who
Type: String
Default value: lion
默认在文件前面插入狮子字符画
#### options.conmentSymbol
Type: String
Default value: //
默认在插入字符画的每一行前面加入注释标记//
$3
#### Default Options
`js
grunt.initConfig({
buddha: {
options: {
who: "lion",
commentSymbol: "//"
},
dist: ["test/fixtures/*.js"]
},
})
``