Socket
Socket
Sign inDemoInstall

jake

Package Overview
Dependencies
0
Maintainers
1
Versions
166
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.18 to 0.1.19

1

bin/cli.js

@@ -23,3 +23,2 @@ #!/usr/bin/env node

, fs = require('fs')
, sys = require('sys')
, jake = require(libPath + '/jake.js')

@@ -26,0 +25,0 @@ , api = require(libPath + '/api.js')

5

lib/jake.js

@@ -153,3 +153,3 @@ /*

if (isRoot && !task) {
throw new Error('task not found');
throw new Error('Task "' + name + '" not found.');
}

@@ -229,2 +229,5 @@ else {

ns = ns.childNamespaces[currName];
if(typeof ns === "undefined" || ns === null) {
fail('Cannot find the namespace "' + currName + '" for task "' + name + '".');
}
}

@@ -231,0 +234,0 @@

@@ -56,3 +56,3 @@ /*

catch (e) {
program.die('CoffeeScript is missing! Try `npm install coffee-script`');
fail('CoffeeScript is missing! Try `npm install coffee-script`');
}

@@ -59,0 +59,0 @@ }

{ "name": "jake"
, "version": "0.1.18"
, "version": "0.1.19"
, "author": "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)"

@@ -4,0 +4,0 @@ , "bin": { "jake": "./bin/cli.js" }

@@ -74,5 +74,5 @@ ### Jake -- JavaScript build tool for Node.js

task(name/prerequisites, action, [async]);
task(name, [prerequisites], action, [async]);
The `name/prerequisites` argument can be either a simple String with the name of the task, or an Object literal where the single key is the name of the ask, and the value is an array of prerequisites. The `action` is a function defininng the action to take for the task.
The `name` argument is a String with the name of the task, and `prerequisites` is an optional Array arg of the list of prerequisite tasks to perform first. The `action` is a Function defininng the action to take for the task. (Note that Object-literal syntax for name/prerequisites in a single argument a la Rake is also supported, but JavaScript's lack of support for dynamic keys in Object literals makes it not very useful.)

@@ -94,3 +94,3 @@ The `async` argument is optional, and when set to `true` (`async === true`) indicates the task executes asynchronously. Asynchronous tasks need to call `complete()` to signal they have completed.

desc('This task has prerequisites.');
task({'hasPrereqs': ['foo', 'bar', 'baz']}, function (params) {
task('hasPrereqs', ['foo', 'bar', 'baz'], function (params) {
console.log('Ran some prereqs first.');

@@ -113,3 +113,3 @@ });

desc('This builds a minified JS file for production.');
file({'foo-minified.js': ['bar', 'foo-bar.js', 'foo-baz.js']}, function () {
file('foo-minified.js', ['bar', 'foo-bar.js', 'foo-baz.js'], function () {
// Code to concat and minify goes here

@@ -149,3 +149,3 @@ });

desc('This the foo:baz task');
task({'baz': ['default', 'foo:bar']}, function () {
task('baz', ['default', 'foo:bar'], function () {
console.log('doing foo:baz task');

@@ -215,3 +215,3 @@ });

task('invokeFooBar', function () {
// Calls foo:bar and its prereqs
// Calls foo:bar and its prereqs
jake.Task['foo:bar'].invoke();

@@ -218,0 +218,0 @@ // Does nothing

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc