0.0.2 • Published 12 years ago
grunt-keen v0.0.2
grunt-keen
A grunt plugin to simplify your keen.io use with your grunt-command tool.
How to use
Just config keen, no need to run keen as a task, it will run whenever you execute grunt.
Configs
projectIdThe projectId for your keen project.writeKeyThe writeKey for your keen project.dataAdditional data you want to push to Keen. By default, this plugin will push these fields for you:userIdEvery time this plugin executing, it will check if a.grunt-keen-identityfile is in your HOME directory, then read the unique IDENTITY from this file. If it doesn't exist, make one and generate a new IDENTITY as userId and save to this file.commandThe grunt command you use.argvThe arguments you specified with grunt command.envEnvironment info. For now only OS.
eventNameEvent Collection name.forbidYou can set this totrueto disabledgrunt-keen, or you can use a Function, returntrueorfalsedepend or your situation.
Example
grunt.initConfig({
keen: {
projectId: "*****",
writeKey: "*****",
data: {
repoInfo: {
URL: 'http://github.com/neekey/grunt-keen',
author: 'neekey',
email: 'ni184775761@gmail.com'
},
other: {
styleEngine: 'SASS'
}
},
forbid: function(){
return false;
},
eventName: 'test'
}
});Enjoy!