1.6.1 • Published 5 years ago

@cryptid/task v1.6.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

Task

Task runner for CryptID.

Motivation

CryptID is a library written in multiple languages with lots of task to perform: creating builds to different architectures using different compilers, testing, coverage reporting and so on.

Of course, we could use (for example) make for the C part and gulp for the JS part, but we're sick and tired of using a plethora of different tools. Thus, we employed substack's ./task.js approach: a simple JS script for each task.

However, there are some common code that we would like to share, and also dependencies we would like to use, therefore we've created a very basic foundation: Task.

Task is not a sophisticated task runner. It just executes scripts and provides a comfortable yargs-based CLI.

Usage

Just call npx @cryptid/task <commands and arguments> in an appropriate repository root.

In CryptID repositories, you can also use ./task <...> or task.bat <...>.

Writing Task tasks

Commands

Task searches for commands in the .task/cmd directory. Commands are simple yargs commands.

Injecting data

Custom data can be injected into command handlers by supplying an .task/inject.js script. This should export a single function, which when called, produces the injectable data.

Example

Please refer to the example directory for code using task.

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago