cc.ake
Utility functions for Cakefiles.
Last updated 8 years ago .
MIT · Original npm · Tarball · package.json
$ cnpm install cc.ake 
SYNC missed versions from official npm registry.

cc.ake

Installation

npm install -g cc.ake

Usage

ake    = require 'cc.ake'

# add node_modules binaries to head of path
do ake.nodeModulePath

# ensure every argument passes. strings are treated as unix commands and
# functions are run normally. Each type signals an error differently
# and any error causes the coffeescript process to exit.
ake.assertAll 'rm -f bad',
  'cp -n something somewhere' # if exit status is bad, terminate process
  'echo yo'
  ->
    do stuff
    return true # return anything other than string to signal success
  ->
    # this will terminate the coffeescript process
    return "an error string"

Current Tags

  • 0.6.1                                ...           latest (8 years ago)

7 Versions

  • 0.6.1                                ...           8 years ago
  • 0.6.0                                ...           8 years ago
  • 0.5.0                                ...           8 years ago
  • 0.4.0                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 5
Dependencies (1)
Dev Dependencies (0)
None
Dependents (3)

Copyright 2014 - 2016 © taobao.org |