File: Cakefile

package info (click to toggle)
node-bufferjs 3.1.0%2Bgit20160608.605b357%2B~cs0.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 280 kB
  • sloc: javascript: 189; makefile: 14; sh: 11
file content (14 lines) | stat: -rw-r--r-- 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
path = require 'path'
{ run, compileScript, exec } = require 'muffin'

task 'build', 'compile coffeescript → javascript', (options) ->
    run
        options:options
        files:[
            "./src/**/*.coffee"
        ]
        map:
            'src/test/(.+).coffee': (m) ->
                compileScript m[0], path.join("test" ,"#{m[1]}.js"), options
            'src/(.+).coffee': (m) ->
                compileScript m[0], path.join("lib" ,"#{m[1]}.js"), options