🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

node-task-runner

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-task-runner - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+21
-0
CHANGELOG.md
# Changelog
## Version 1.0.3
Released on February 19, 2018.
- Fixed folder where task-file is searched.
- Updated docs.
## Version 1.0.2
Released on February 18, 2018.
- Execute command in node execution context.
## Version 1.0.1
Released on February 18, 2018.
- Fixed executable path.
## Version 1.0.0

@@ -5,0 +26,0 @@

+1
-1

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

const taskFile = path.resolve(__dirname, args.options.file);
const taskFile = path.resolve(process.cwd(), args.options.file);

@@ -28,0 +28,0 @@ if (!fs.existsSync(taskFile)) {

{
"name": "node-task-runner",
"version": "1.0.2",
"version": "1.0.3",
"description": "A promise-based dependency-free task runner for Node.",

@@ -5,0 +5,0 @@ "main": "lib/cli.js",

@@ -52,7 +52,15 @@ # Node-Task-Runner

```
You have to export all tasks that should be available. The name of the function is used as task name. All tasks should return a Promise. If they do not, the behavior is the same as `Promise.resolve()`. In sequential mode previously resolved values, are passed to the next task function. This feature is not available in parallel mode. In the above example, "task2" would receive "test chain value" as `chainValue` if "task1" was executed before. If no value was resolved `undefined` is passed. The given task arguments from the cli are passed to all tasks as separate variables. **Note**: The `chainValue` is always passed as first parameter to the function, followed by optional task arguments.
You have to export all tasks that should be available. The name of the function is used as task name. All tasks should return a Promise. If they do not, the behavior is the same as `Promise.resolve()`.
In sequential mode previously resolved values, are passed to the next task function. This feature is not available in parallel mode. In the above example, "task2" would receive "test chain value" as `chainValue` if "task1" was executed before. If no value was resolved `undefined` is passed.
The given task arguments from the cli are passed to all tasks as separate variables.
**Note**: The `chainValue` is always passed as first parameter to the function, followed by optional task arguments.
Messages of this library are colored, if `chalk` is installed.
[License](https://github.com/code-chris/node-task-runner/blob/master/LICENSE)
------