slake-build-utils

Build utilities for Slakefiles.

This library is not actively maintained anymore (bugfixes may still be released).
Last updated 8 years ago by killdream .
Repository · Original npm · Tarball · package.json
$ cnpm install slake-build-utils 
SYNC missed versions from official npm registry.

slake-build-utils

These utilities allow you to write moar concise Slakefiles, by providing some common build utilities as a reusable library.

Example

_    = require 'slake-build-utils'
fs   = _.fs
glob = require 'glob' .sync

defaults    = void
environment =
  package: require './package.json'


build = _.build \src (file, source) -->
  source |> _.compile defaults
         |> _.expand-macros environment
         |> fs.write (fs.as-js "lib/#file")
         |> _.minify defaults
         |> fs.write (fs.as-min "lib/#file") 


task \build 'Builds JavaScript files out of LiveScript ones.' ->
  fs.initialise \lib
  for file in glob '**/*.ls', cwd: 'src' => build file

Installation

Just grab it from NPM:

$ npm install -d slake-build-utils

Building

To compile everything from the source, you'll need LiveScript. Once you've installed that, just run the Slake build task, which should generate all the JavaScript files in the lib directory:

$ npm install -gd LiveScript
$ git clone git://github.com/killdream/slake-build-utils.git
$ cd slake-build-utils
$ npm install -d
$ slake build

Licence

Slake-build-utils is licensed under the delicious and permissive MIT licence. You can happily copy, share, modify, sell or whatever — refer to the actual licence text for less information:

$ less LICENCE.txt

Current Tags

  • 0.3.6                                ...           latest (8 years ago)

7 Versions

  • 0.3.6 [deprecated]           ...           8 years ago
  • 0.3.5 [deprecated]           ...           8 years ago
  • 0.3.4 [deprecated]           ...           8 years ago
  • 0.3.3 [deprecated]           ...           8 years ago
  • 0.3.1 [deprecated]           ...           8 years ago
  • 0.3.0 [deprecated]           ...           8 years ago
  • 0.1.0 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Today 1
This Week 2
This Month 3
Last Day 0
Last Week 1
Last Month 2
Dependencies (7)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |