1.1.6 • Published 3 years ago

@objj/jake v1.1.6

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Jake

Jake is a build tool similar to Make and Rake, but written in and for JavaScript. It's a port of Ruby's Rake, which is inspired by the classic Make(http://en.wikipedia.org/wiki/Make_(software)) tool.

API

The API is very similar to the Rake API, though with JavaScript syntax.

  • jake.task(name, [dependencies], [action])

Declares a task called "name", with an optional array of dependent tasks, and optional function to perform.

  • jake.file(path, [dependencies], [action])

Like task, but only runs the action if the target file ("name") doesn't exist or was last modified before at least on dependency.

  • jake.directory(directoryPath)
  • jake.filedir(path, dependencies, action)

TODO: better API docs

Example "Jakefile"

var jake = require("jake");

// prints "default":
jake.task("default", function(t) {
    print(t.name());
});

// runs tasks "bar" and "baz"
jake.task("foo", ["bar", "baz"]);

// only runs if "bar" is older than "bar.source" or non-existant
jake.file("bar", ["bar.source"], function() {
    // stuff to compile "bar.source" to "bar"
});

// does nothing
jake.task("baz");

Example Usage

# runs "default" task if no task names are given
jake

# runs "bar", "baz" dependent tasks, then "foo" task
jake foo

# runs "bar", "baz", "foo", and "default" tasks
jake foo default
1.1.6

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3-14

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.3-12

3 years ago

1.0.3-11

3 years ago

1.0.3-10

3 years ago

1.0.3-9

3 years ago

1.0.3-8

3 years ago

1.0.3-7

3 years ago

1.0.3-6

3 years ago

1.0.3-5

3 years ago

1.0.3-4

3 years ago

1.0.3-3

3 years ago

1.0.3-2

3 years ago

1.0.3-1

3 years ago

1.0.3-0

3 years ago

1.0.2

3 years ago