abigail
lightweight, pluggable, a minimal task runner. using your npm-scripts.
Last updated 2 years ago by 59naga .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install abigail 
SYNC missed versions from official npm registry.

Abigail

Installation

npm install abigail --global

Usage

abigail is npm scripts emulator. you can succinctly describe the serial run-script and watch files.

abby test, lint, cover.
# +    0 ms @_@ use package.json.
# +    2 ms @_@ plugin enabled exit, log, launch, watch.
# +   23 ms @_@ task start test, lint, cover.
# +    0 ms @_@ task end test, lint, cover. exit code 0, 0, 0.
# +    0 ms @_@ cheers for good work.

in addition, makes it easy to change the settings using optional arguments.

abby test --no-log
# ...
> _

or specify package.json abigail field.

{
  "scripts": {
    "test": "mocha"
  },
  "abigail": {
    "plugins": {
      "watch": "*,src/**/*.jsx,test/**/*.jsx"
    }
  }
}
abby test
# ... watch at *, src/**/*.jsx, test/**/*.jsx.

serial run-script

if connecting the script name with a comma, run the script in serial.

abby cover, report.
# +   23 ms @_@ task start cover, report.
# +    3 ms @_@ script start cover.
# +  6.3  s @_@ script end cover. exit code 0.
# +    3 ms @_@ script start report.
# +  6.3  s @_@ script end report. exit code 0.
# +  5.1  s @_@ task end cover, report. exit code 0, 0.
# +    1 ms @_@ ... watch at src/**/*.js, test/**/*.js.

parallel run-script

unless connecting the script name with a comma, run the script in parallel.

abby babel jade stylus
# ...
# +  133 ms @_@ script end stylus. exit code 0.
# +   87 ms @_@ script end jade. exit code 0.
# +   93 ms @_@ script end babel. exit code 0.
# +    0 ms @_@ task end babel, jade, stylus. exit code 0, 0, 0.

glob run-script

if specify glob the script name, run the matching scripts in serial.

abby mytask:*
# ...
# +  133 ms @_@ script end mytask:stylus. exit code 0.
# +    0 ms @_@ script start mytask:jade. exit code 0.
# ...
# +   87 ms @_@ script end mytask:jade. exit code 0.
# +    0 ms @_@ script start mytask:babel. exit code 0.
# ...
# +   93 ms @_@ script end mytask:babel. exit code 0.
# +    0 ms @_@ task end mytask:babel, mytask:jade, mytask:stylus. exit code 0, 0, 0.

bail run-script

if specify --launch bail, to strict serial run-script(not ignore the error and continues).

abby cover, report.
# +   23 ms @_@ task start cover, report.
# +    3 ms @_@ script start cover.
# ...
# +  6.3  s @_@ script end cover. exit code 1.
# +    3 ms @_@ script start report.
# ...
# +  198 ms @_@ script end report. exit code 0.
# +    2 ms @_@ task end cover, report. exit code 1, 0.
# +    1 ms @_@ ... watch at src/**/*.js, test/**/*.js.

abby cover, report. --launch bail
# +   23 ms @_@ task start cover, report.
# +    3 ms @_@ script start cover.
# +  6.3  s @_@ script end cover. exit code 1.
# +  5.1  s @_@ task end cover. exit code 1.
# +    1 ms @_@ ... watch at src/**/*.js, test/**/*.js.

run with script

if specify --, it run the subsequent arguments as the end of the script.

abby cover:* -- --quiet
# +   23 ms @_@ task start cover:test. (with --quiet)
# ...

if the locally use, use the double quote("").

abby cant-quiet-task "cover:* -- --quiet"
# +   23 ms @_@ task start cant-quiet-task, cover:test.
# +    3 ms @_@ script start cant-quiet-task.
# +    3 ms @_@ script start cover:test. (with  --quiet)
# ...

See also

Inspired by

Development

Requirement global

  • NodeJS v5.7.0
  • Npm v3.7.1
git clone https://github.com/abigailjs/abigail
cd abigail
npm install

npm test

License

MIT

Current Tags

  • 1.9.5                                ...           latest (2 years ago)

69 Versions

  • 1.9.5                                ...           2 years ago
  • 1.9.4                                ...           2 years ago
  • 1.9.1                                ...           4 years ago
  • 1.9.0                                ...           4 years ago
  • 1.9.0-0                                ...           4 years ago
  • 1.8.0                                ...           4 years ago
  • 1.7.1                                ...           4 years ago
  • 1.6.1                                ...           4 years ago
  • 1.6.0                                ...           4 years ago
  • 1.6.0-0                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.5.0-1                                ...           4 years ago
  • 1.5.0-0                                ...           4 years ago
  • 1.4.3                                ...           4 years ago
  • 1.4.2                                ...           4 years ago
  • 1.4.1                                ...           4 years ago
  • 1.4.0                                ...           4 years ago
  • 1.3.5                                ...           4 years ago
  • 1.3.4                                ...           4 years ago
  • 1.3.3                                ...           4 years ago
  • 1.3.2                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.6                                ...           4 years ago
  • 1.1.5                                ...           4 years ago
  • 1.1.4                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.2 [deprecated]           ...           4 years ago
  • 1.1.1 [deprecated]           ...           4 years ago
  • 1.1.0 [deprecated]           ...           4 years ago
  • 1.1.0-pre                                ...           4 years ago
  • 1.0.0 [deprecated]           ...           4 years ago
  • 1.0.0-alpha                                ...           4 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.2-alpha                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.1-alpha.9                                ...           5 years ago
  • 0.1.1-alpha.8                                ...           5 years ago
  • 0.1.1-alpha.7                                ...           5 years ago
  • 0.1.1-alpha.6                                ...           5 years ago
  • 0.1.1-alpha.5                                ...           5 years ago
  • 0.1.1-alpha.4                                ...           5 years ago
  • 0.1.1-alpha.2                                ...           5 years ago
  • 0.1.1-alpha.1                                ...           5 years ago
  • 0.1.1-alpha.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.1.0-beta.3                                ...           5 years ago
  • 0.1.0-beta.2                                ...           5 years ago
  • 0.1.0-beta.1                                ...           5 years ago
  • 0.1.0-beta.0                                ...           5 years ago
  • 0.1.0-alpha.4                                ...           5 years ago
  • 0.1.0-alpha.3                                ...           5 years ago
  • 0.1.0-alpha.2                                ...           5 years ago
  • 0.1.0-alpha.1                                ...           5 years ago
  • 0.1.0-alpha.0                                ...           5 years ago
  • 0.0.8-beta.2                                ...           5 years ago
  • 0.0.8-beta.1                                ...           5 years ago
  • 0.0.8-beta.0                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 140

Copyright 2014 - 2017 © taobao.org |