Buddha shines, no bugs alive.
Add some ASCII Arts (as comment) in your src files, and wish them bless you from bugs.
Many optional ASCII Arts provided.
Sample:
// _ooOoo_
// o8888888o
// 88" . "88
// (| -_- |)
// O\ = /O
// ____/`---'\____
// .' \\| |// `.
// / \\||| : |||// \
// / _||||| -:- |||||- \
// | | \\\ - /// | |
// | \_| ''\---/'' | |
// \ .-\__ `-` ___/-. /
// ___`. .' /--.--\ `. . __
// ."" '< `.___\_<|>_/___.' >'"".
// | | : `- \`.;`\ _ /`;.`/ - ` : | |
// \ \ `-. \_ __\ /__ _/ .-` / /
//======`-.____`-.___\_____/___.-`____.-'======
// `=---='
//
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// 佛祖保佑 永无BUG
// God Bless Never Crash
This plugin requires Grunt ~0.4.5
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:
npm install grunt-buddha-bless --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-buddha-bless');
In your project's Gruntfile, add a section named buddha
to the data object passed into grunt.initConfig()
.
Note: this plugin named 'grunt-buddha-bless' while the task just named 'buddha'.
grunt.initConfig({
buddha: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
});
Type: String
Default value: buddha
Optional value: buddha
, alpaca
choose an ASCII Arts to be prepended to your src files.
Type: String
Default value: //
Specify which comment symbol to use.
In this example, the default options are used to add add a buddha ASCII Art.
grunt.initConfig({
buddha: {
dist: 'example/*.js'
}
});
In this example, custom options are used to add a alpaca ASCII Art.
grunt.initConfig({
buddha: {
alpaca : {
options: {
who: 'alpaca',
commentSymbol: '//'
},
src: ['example/test1.js', 'example/test2.js']
}
}
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
2016-12-22 v0.1.0 init