I've created a new project
called "indev" (http://github.com/azer/indev)

It's a replacement for Makefile and GruntJS. My goal was to have a
tool that makes it easy to have my server running and observing for
changes (changes on the app source, or assets like CSS and JS)

It's based on Devfiles. A Devfile can be either CoffeeScript or
JavaScript. And Every Devfile have access to ShellJS API.

Here is a very short example;

task 'run', 'server.js', ->
    exec "node server"

It defines a task named "run", executes the given callback and watches
changes on "server.js" to executes the callback again.

A full example looks like;

all 'run', 'public/js', 'public/css'

task 'hello', ->
    write "/tmp/now", "Hello #{process.env.USER}!"
    debug pwd()

task 'run', './app.js', './lib', ->
    exec 'node app'

target 'public/js', 'javascripts', ->
    cd 'frontend'
    exec 'browserify javascripts/main.js -o public/bundle.js'

target 'public/css', 'styles', ->
    cd 'frontend'
    exec 'stylus styles -o public/css'

Best

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to