@cryptid/task
Task runner for CryptID.
Last updated a year ago by battila7 .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cryptid/task 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.6.1                                ...           latest (a year ago)

10 Versions

  • 1.6.1                                ...           a year ago
  • 1.6.0                                ...           a year ago
  • 1.5.0                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (2)
Downloads
Today 0
This Week 10
This Month 10
Last Day 0
Last Week 0
Last Month 10
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |