0.2.2 • Published 6 years ago

abigail-plugin-watch v0.2.2

Weekly downloads
63
License
MIT
Repository
github
Last release
6 years ago

Abigail Watch Plugin

No installation

abigail built-in plugin

Usage

if specify the separated glob with a comma, change the target.

abby test --watch "{*.jsx,src/**/*.jsx,test/**/*.jsx}"
# ...
# +    1 ms @_@ ... watch at {*.jsx,src/**/*.jsx,test/**/*.jsx}.

if disable only this plugin(use --no-watch option), run only once the task.

abby test --no-watch && echo pass || echo fail
# ...
# +  2.3  s @_@ task end test. exit code 0.
# +    1 ms @_@ cheers for good work.
# pass

if specify in the abigail field of your package.json:

{
  "name": "need-single-run",
  "scripts": {
    "test": "ava"
  },
  "abigail": {
    "plugins": {
      "watch": false
    }
  }
}
{
  "name": "use-jsx",
  "scripts": {
    "test": "ava"
  },
  "abigail": {
    "plugins": {
      "watch": "*.jsx,src/**/*.jsx,test/**/*.jsx"
    }
  }
}

full options

{
  "name": "use-jsx",
  "scripts": {
    "test": "ava"
  },
  "abigail": {
    "plugins": {
      "watch": {
        "enable": true,
        // can specify exclude  use `!` prefix
        "value": "{*.jsx,src/**/*.jsx,test/**/*.jsx,!test/fixtures}",
        // if true, not launch immediately
        "lazy": true
      }
    }
  }
}

See also

Development

Requirement global

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

npm test

License

MIT

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago