kibana/packages/kbn-plugin-helpers
Joe Fleming 0d621e778a Separate the task runner and the command line parser (elastic/kibana-plugin-helpers#25)
* remove conditionl require in runner

add tasks module to load all tasks, throw if task does not exist

* change task signatures and action handlers

- tasks get plugin, run, and an options object
- action handler controls what goes into each task
- taskRunner wrapper moves the command object to the first argument

* change test command signature

allow files to be passed in, and pass all options to test:server and test:browser

* simplify the task runner

* fix typo in unknownOptions

* expose the task runner as the module's main

this way tasks can be run programatically without going through a cli parser

* add tests for task runner

* remove file passing for testAll

* add serverTestPaths to the plugin config

useful for overriding the value via a config file

* [config] plugin.serverTestPaths -> plugin.serverTestPatterns

Original commit: elastic/kibana-plugin-helpers@82af4df64e
2016-12-16 01:06:02 -07:00
..
bin Separate the task runner and the command line parser (elastic/kibana-plugin-helpers#25) 2016-12-16 01:06:02 -07:00
lib Separate the task runner and the command line parser (elastic/kibana-plugin-helpers#25) 2016-12-16 01:06:02 -07:00
tasks Separate the task runner and the command line parser (elastic/kibana-plugin-helpers#25) 2016-12-16 01:06:02 -07:00
.eslintrc initial commit 2016-02-12 14:36:17 -07:00
.gitignore [npm] do not commit npm logs 2016-02-14 02:28:56 -07:00
.nvmrc include nvmrc file for development 2016-11-17 03:19:06 -07:00
circle.yml add circle-ci config file 2016-11-17 03:29:37 -07:00
LICENSE added license files for better visiblity 2016-08-19 08:46:47 -07:00
package.json Separate the task runner and the command line parser (elastic/kibana-plugin-helpers#25) 2016-12-16 01:06:02 -07:00
README.md add circle-ci config file 2016-11-17 03:29:37 -07:00

kibana-plugin-helpers

CircleCI

Just some helpers for kibana plugin devs.

This simple CLI has several tasks that plugin devs can run from to easily debug, test, or package kibana plugins.

See the docs directory for more info.

$ plugin-helpers help

  Usage: plugin-helpers [options] [command]


  Commands:

    start          start the server
    test:browser   run the browser tests
    test:server    run the server tests
    build          build a distributable archive
    help [cmd]     display help for [cmd]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

License

Apache-2.0