Sha256: 6f8a45e640e867afbff0cc3cb7f32862f6d2d16e122f7e8712ad7396fe0f760f

Contents?: true

Size: 624 Bytes

Versions: 15

Compression:

Stored size: 624 Bytes

Contents

fs           = require 'fs'
CoffeeScript = require 'coffee-script'
nodeunit     = require 'nodeunit'
UglifyJS     = require 'uglify-js'

task 'build', 'build the JavaScript files from CoffeeScript source', build = (cb) ->
  source = fs.readFileSync 'src/ipaddr.coffee'
  fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString()

  invoke 'test'
  invoke 'compress'

task 'test', 'run the bundled tests', (cb) ->
  nodeunit.reporters.default.run ['test']

task 'compress', 'uglify the resulting javascript', (cb) ->
  result = UglifyJS.minify('lib/ipaddr.js')
  fs.writeFileSync('ipaddr.min.js', result.code)

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
lanes-0.8.0 node_modules/ipaddr.js/Cakefile
webpack_rails-2.0.1 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-2.0.0 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.3.1 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.3.0 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.2.2 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.2.1 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.2.0 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.1.1 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.1.0 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.0.1 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
webpack_rails-1.0.0 lib/webpack_rails/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
gulp_assets-1.0.0.pre.5 template/node_modules/webpack-dev-server/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
gulp_assets-1.0.0.pre.4 template/node_modules/webpack-dev-server/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile
gulp_assets-1.0.0.pre.3 template/node_modules/webpack-dev-server/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/Cakefile