grunt-anybar
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -14,8 +14,18 @@ /* | ||
var anybar = require('anybar'); | ||
var anybarSync = require('deasync')(anybar); | ||
function hook() { | ||
// require('child_process').execFileSync('nc', ['-4u', '-w0', 'localhost', options.port], { input: 'exclamation' }); | ||
anybarSync('exclamation', options); | ||
} | ||
// run on warning | ||
grunt.util.hooker.hook(grunt, 'warn', anybar('red', options)); | ||
grunt.util.hooker.hook(grunt, 'error', anybar('exlamation', options)); | ||
grunt.util.hooker.hook(grunt, 'fail', anybar('exlamation', options)); | ||
grunt.util.hooker.hook(grunt, 'fatal', anybar('exlamation', options)); | ||
grunt.util.hooker.hook(grunt, 'warn', hook); | ||
grunt.util.hooker.hook(grunt.fail, 'warn', hook); | ||
// run on error | ||
grunt.util.hooker.hook(grunt.fail, 'error', hook); | ||
grunt.util.hooker.hook(grunt.log, 'fail', hook); | ||
grunt.util.hooker.hook(grunt.log, 'error', hook); | ||
// run on fatal | ||
grunt.util.hooker.hook(grunt.fail, 'fatal', hook); | ||
@@ -22,0 +32,0 @@ function setOptions(opts) { |
{ | ||
"name": "grunt-anybar", | ||
"description": "Grunt plugin to show the current build status in the AnyBar menu app.", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/frdmn/grunt-anybar", | ||
@@ -11,2 +11,7 @@ "author": { | ||
}, | ||
"contributors": { | ||
"name": "Anton Eprev", | ||
"email": "a.eprev@gmail.com", | ||
"url": "http://eprev.org" | ||
}, | ||
"repository": { | ||
@@ -32,6 +37,7 @@ "type": "git", | ||
"devDependencies": { | ||
"deasync": "^0.1.0", | ||
"grunt": "~0.4.5", | ||
"grunt-contrib-clean": "^0.5.0", | ||
"grunt-contrib-jshint": "^0.9.2", | ||
"grunt-contrib-clean": "^0.5.0", | ||
"grunt-contrib-nodeunit": "^0.3.3", | ||
"grunt": "~0.4.5" | ||
"grunt-contrib-nodeunit": "^0.3.3" | ||
}, | ||
@@ -38,0 +44,0 @@ "peerDependencies": { |
@@ -122,2 +122,5 @@ # grunt-anybar | ||
## Release History | ||
_(Nothing yet)_ | ||
v0.2.0 | ||
* Fixed error hooks. So it works now. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11389
214
126
5