Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.701 kb
1cf1ead @bergie Build command so NoFlo can be run as JS
bergie authored
1 exec = require('child_process').exec
4427f30 @bergie Make the build process simpler
bergie authored
2
3 fs = require "fs"
4
5 buildDir = (path) ->
6 console.log "Compiling CoffeeScript from 'src/#{path}' to '#{path}"
7 exec "coffee -o #{__dirname}/#{path} -c #{__dirname}/src/#{path}/*.coffee", (err, stdout, stderr) ->
8 console.log stderr if stderr
9
10 fs.readdir "#{__dirname}/src/#{path}", (err, files) ->
11 return console.log err if err
12 files.forEach (file) ->
13 fs.stat "#{__dirname}/src/#{path}/#{file}", (err, stats) ->
14 return unless stats.isDirectory()
15 buildDir "#{path}/#{file}"
16
1cf1ead @bergie Build command so NoFlo can be run as JS
bergie authored
17 task 'build', ->
4427f30 @bergie Make the build process simpler
bergie authored
18 buildDir "lib"
19 buildDir "components"
20 buildDir "bin"
1cf1ead @bergie Build command so NoFlo can be run as JS
bergie authored
21
22 task 'test', ->
23 exec 'nodeunit test', (err) ->
24 console.log err if err
Something went wrong with that request. Please try again.