Fully implemented API

This commit is contained in:
Arjun Patel
2018-06-25 21:41:46 -07:00
parent 4cbe20aed9
commit f9e0a923ee
397 changed files with 63812 additions and 2 deletions
+14
View 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']