This is an experimental copy for testing Poikilos' issue mirroring system. Note that Gitea's migration tool can import issues, but the "Issues" checkbox is disabled when "This repository will be a mirror" is enabled (it is for this repo).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
537 B

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']