Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add livescript support and diable growl notifications #50

Closed
wants to merge 1 commit into from

2 participants

@jiyinyiyong
  • add livescript support(use nearly the same code as the code for coffeescript)
  • disable the notifications of growl.. not a good Idea, though.

The problem I came across is that there are always too many icons stay in GNOME3, and here's my screenshot.
I tested growl({sticky: false}) before but didn't work as expetcted. So I'm trying to diable it.
But that's also a bad solution...

http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=385998
too many

@fgnass
Owner

I added --hint=int:transient:1 to the notify-send call so that the notifications should no longer pile up:
fgnass/node-growl@f7d592c

Could try node-dev with my node-growl fork on your machine? If this indeed fixes the issue I'll send TJ a pull-request.

@jiyinyiyong

Thanks. It don't pile up now.

To be honest, I don't think it's that useful to pop up the notifications.
Personaly I just keep my terminal in the corner on the screen.
The notifications poped is not as useful as the restarting info in the terminal.
So I think it's not the best idea to use poped up notifications.
fullscr

@jiyinyiyong

@fgnass removed the commit about growl.. now only to add support for LiveScript.

This was referenced
@jiyinyiyong jiyinyiyong closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 22, 2012
  1. @jiyinyiyong
This page is out of date. Refresh to see the latest.
Showing with 20 additions and 3 deletions.
  1. +13 −0 test/app.ls
  2. +7 −3 wrapper.js
View
13 test/app.ls
@@ -0,0 +1,13 @@
+http = require \http
+message = require \./message
+
+server = http.createServer (req, res) ->
+ res.writeHead 200, \Content-Type: \text/plain
+
+ res.write message
+ res.end \\n
+
+server.listen 8080
+
+console.log 'Server running at http://localhost:8080/'
+console.log message
View
10 wrapper.js
@@ -35,7 +35,7 @@ function log(msg, level) {
function notify(title, msg, level) {
level = level || 'info'
log(title || msg, level)
- growl(msg, { title: title || 'node.js', image: __dirname + '/icons/node_' + level + '.png' })
+ growl(msg, { title: title || 'node.js', image: __dirname + '/icons/node_' + level + '.png', sticky: false })
}
/**
@@ -164,8 +164,8 @@ patch(vm, 'runInContext', 2)
// Error handler that displays a notification and logs the stack to stderr:
process.on('uncaughtException', function(err) {
- notify(err.name, err.message, 'error')
- console.error(err.stack || err)
+ notify(err.name, err.message, 'error')
+ console.error(err.stack || err)
})
process.on('exit', checkExitCode)
@@ -174,4 +174,8 @@ if (Path.extname(main) == '.coffee') {
require('coffee-script')
}
+if (Path.extname(main) == '.ls') {
+ require('LiveScript')
+}
+
require(main)
Something went wrong with that request. Please try again.