change approach again
This commit is contained in:
14
node_modules/ipaddr.js/Cakefile
generated
vendored
Normal file
14
node_modules/ipaddr.js/Cakefile
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
fs = require 'fs'
|
||||
CoffeeScript = require 'coffee-script'
|
||||
nodeunit = require 'nodeunit'
|
||||
UglifyJS = require 'uglify-js'
|
||||
|
||||
task 'build', 'build javascript files from sources', (cb) ->
|
||||
source = fs.readFileSync 'src/ipaddr.coffee', 'utf-8'
|
||||
fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString()
|
||||
|
||||
source = fs.readFileSync 'lib/ipaddr.js', 'utf-8'
|
||||
fs.writeFileSync('ipaddr.min.js', UglifyJS.minify(source).code)
|
||||
|
||||
task 'test', 'run the bundled tests', (cb) ->
|
||||
nodeunit.reporters.default.run ['test']
|
Reference in New Issue
Block a user