mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add missing methods to create npm publish tasks
This commit is contained in:
parent
cc3b5a791c
commit
2da211a3a6
11
jake/jake.d.ts
vendored
11
jake/jake.d.ts
vendored
@ -22,7 +22,6 @@ declare function desc(description:string): void;
|
||||
*/
|
||||
declare function directory(name:string): jake.DirectoryTask;
|
||||
|
||||
|
||||
/**
|
||||
* Causes Jake execution to abort with an error. Allows passing an optional error code, which will be used to set the exit-code of exiting process.
|
||||
* @param err The error to thow when aborting execution. If this argument is an Error object, it will simply be thrown. If a String, it will be used as the error-message. (If it is a multi-line String, the first line will be used as the Error message, and the remaining lines will be used as the error-stack.)
|
||||
@ -57,6 +56,15 @@ declare function task(name:string, prereqs?:string[], action?:(...params:any[])=
|
||||
declare function task(name:string, action?:(...params:any[])=>any, opts?:jake.TaskOptions): jake.Task;
|
||||
declare function task(name:string, opts?:jake.TaskOptions, action?:(...params:any[])=>any): jake.Task;
|
||||
|
||||
/**
|
||||
* @param name The name of the NpmPublishTask
|
||||
* @param packageFiles The files to include in the package
|
||||
* @param definition A function that creates the package definition
|
||||
*/
|
||||
declare function npmPublishTask(name:string, packageFiles:string[]): jake.NpmPublishTask;
|
||||
declare function npmPublishTask(name:string, definition?:()=>void): jake.NpmPublishTask;
|
||||
|
||||
|
||||
declare module jake{
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
@ -368,6 +376,7 @@ declare module jake{
|
||||
|
||||
export class NpmPublishTask{
|
||||
constructor(name:string, packageFiles:string[]);
|
||||
constructor(name:string, definition?:()=>void);
|
||||
}
|
||||
|
||||
export function addListener(event: string, listener: Function): NodeEventEmitter;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user