프로젝트

일반

사용자정보

통계
| 개정판:

root / HServer / 00.Server / 00.Program / node_modules / ipaddr.js / Cakefile

이력 | 보기 | 이력해설 | 다운로드 (537 Bytes)

1 39 HKM
fs           = require 'fs'
2
CoffeeScript = require 'coffee-script'
3
nodeunit     = require 'nodeunit'
4
UglifyJS     = require 'uglify-js'
5
6
task 'build', 'build javascript files from sources', (cb) ->
7
  source = fs.readFileSync 'src/ipaddr.coffee', 'utf-8'
8
  fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString()
9
10
  source = fs.readFileSync 'lib/ipaddr.js', 'utf-8'
11
  fs.writeFileSync('ipaddr.min.js', UglifyJS.minify(source).code)
12
13
task 'test', 'run the bundled tests', (cb) ->
14
  nodeunit.reporters.default.run ['test']