Joe Fleming
ceb52252be
Enable custom builds ( elastic/kibana-plugin-helpers#27 )
...
* only modify root package.json file
previously this was modifying every package.json from node_modules as well
* refactor the build task
export the build, define helpers outside of the task
* allow custom kibana and build versions
both can be passed via flags
* allow custom build globs to be specified
* move build into its own module
* add simple option parsing tests
* update readme
* move dependency file appending into the action
* put source and target into variables
* move config file loading into a module
* refactor test_server_action slightly
be more explicit about the files option overwriting the plugin settings
* move default build patterns to plugin config
allows the setting to be overridden via the config file
* fix dirname on relative includes
trim any leading '../' off the path when moving it into the build target
* move node_module dirs into plugin_config module, use existing promises
* rename file_config => config_file
Original commit: elastic/kibana-plugin-helpers@743e4a37c2
2016-12-21 22:37:57 -06:00
Joe Fleming
4cc81e2c89
5.1.1
...
Original commit: elastic/kibana-plugin-helpers@ad9a8e85b8
2016-12-21 18:22:03 -07:00
Joe Fleming
4456490cc5
fix cli parsing of --dev flag
...
Original commit: elastic/kibana-plugin-helpers@3aa37c2dfc
2016-12-21 18:21:15 -07:00
Joe Fleming
269bdc45e2
node4 support: const -> var
...
Original commit: elastic/kibana-plugin-helpers@19b607d954
2016-12-16 18:20:35 -07:00
Joe Fleming
5bc1308422
format the package.json file
...
Original commit: elastic/kibana-plugin-helpers@c474820bb5
2016-12-16 18:20:35 -07:00
Joe Fleming
a145458138
append build info to package.json
...
Original commit: elastic/kibana-plugin-helpers@504fd07f3c
2016-12-16 18:20:33 -07:00
Joe Fleming
dd0d91cfd0
update the readme
...
Original commit: elastic/kibana-plugin-helpers@c650c4527e
2016-12-16 09:41:32 -07:00
Joe Fleming
802d68ecc9
5.1.0
...
Original commit: elastic/kibana-plugin-helpers@6dd1407e81
2016-12-16 09:39:35 -07:00
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
Joe Fleming
0ee64597fb
add not about custom tests executiong to the readme/help
...
Original commit: elastic/kibana-plugin-helpers@139221e5a6
2016-12-15 15:14:29 -07:00
Joe Fleming
867ed91517
make server test files an argument
...
Original commit: elastic/kibana-plugin-helpers@b043b423ef
2016-12-15 14:56:47 -07:00
Joe Fleming
01a8fcee35
assign args in argument passing code
...
minor syntax change
Original commit: elastic/kibana-plugin-helpers@ce77d071d1
2016-12-15 14:24:44 -07:00
Joe Fleming
beb4b33f62
if plugins are specified, use the option value instead of the default
...
Original commit: elastic/kibana-plugin-helpers@d610c9c9d6
2016-12-15 14:24:44 -07:00
Joe Fleming
47595e7bdd
add plugins option to browser tests
...
used to pass your own testsBundle.pluginIds to the test runner
Original commit: elastic/kibana-plugin-helpers@d370d74bd4
2016-12-15 14:24:44 -07:00
Joe Fleming
8b6ac6469c
split and concat and included server test paths
...
Original commit: elastic/kibana-plugin-helpers@e7dffb6ffe
2016-12-15 14:24:44 -07:00
Joe Fleming
c5b08cc1fa
add --include options to test:server
...
Original commit: elastic/kibana-plugin-helpers@d3b5e24207
2016-12-15 14:24:04 -07:00
Joe Fleming
545a304f0f
Move require calls outside of task functions ( elastic/kibana-plugin-helpers#23 )
...
* move require calls outside of task functions
* fix default command value
Original commit: elastic/kibana-plugin-helpers@846855e960
2016-12-15 13:15:36 -07:00
Joe Fleming
11bb47cc74
fix default command, no more use of call
...
Original commit: elastic/kibana-plugin-helpers@fe13b987c9
2016-12-14 17:23:09 -07:00
Joe Fleming
30dc427299
use --dev flag for browser dev mode
...
Original commit: elastic/kibana-plugin-helpers@a790fdd338
2016-12-14 17:19:18 -07:00
Joe Fleming
f222c6e889
pass run method into tasks
...
don't reach into lib for it
Original commit: elastic/kibana-plugin-helpers@d92d2e979a
2016-12-14 17:06:13 -07:00
Joe Fleming
b85a68df15
remove use of spread and default assignment
...
Original commit: elastic/kibana-plugin-helpers@17532f0fdd
2016-12-14 17:06:13 -07:00
Joe Fleming
3486e431ad
add test command to execute test/all
...
Original commit: elastic/kibana-plugin-helpers@e096ac55f3
2016-12-14 17:06:13 -07:00
Joe Fleming
f1a9be1933
add a test/all task
...
Original commit: elastic/kibana-plugin-helpers@9b7c15cf32
2016-12-14 17:06:13 -07:00
Joe Fleming
df21e54e57
allow browser tests to be runOnce
...
Original commit: elastic/kibana-plugin-helpers@ede52ece0e
2016-12-14 17:06:13 -07:00
Joe Fleming
43c6f9c660
Use json files to override default config values ( elastic/kibana-plugin-helpers#21 )
...
* read json overrides, mix into defaults
* rename plugin config helper
* use the plugin config in start
Original commit: elastic/kibana-plugin-helpers@4cfbe28128
2016-12-14 17:03:15 -07:00
spalger
0632b8e2b9
5.0.1-patch2
...
Original commit: elastic/kibana-plugin-helpers@a754ef5b50
2016-11-21 14:46:31 -07:00
spalger
5298a23d92
do not pass stdin to sub tasks, fixes elastic/kibana-plugin-helpers#19
...
Original commit: elastic/kibana-plugin-helpers@f872954888
2016-11-21 14:46:02 -07:00
spalger
a1daf785ec
5.0.1-patch1
...
Original commit: elastic/kibana-plugin-helpers@d49bb6ea73
2016-11-17 13:04:46 -07:00
spalger
b5166d80d3
use a promise instead of a callback to track task completion
...
Original commit: elastic/kibana-plugin-helpers@c6dacf3507
2016-11-17 13:02:57 -07:00
spalger
66c5ec54ef
5.0.1
...
Original commit: elastic/kibana-plugin-helpers@e42d134e4c
2016-11-17 03:34:55 -07:00
spalger
9510c6fa2d
add circle-ci config file
...
Original commit: elastic/kibana-plugin-helpers@80505e1b0d
2016-11-17 03:29:37 -07:00
spalger
c736d6f404
include nvmrc file for development
...
Original commit: elastic/kibana-plugin-helpers@f51115de11
2016-11-17 03:19:06 -07:00
spalger
82ff13ee87
add basic test for the build action
...
Original commit: elastic/kibana-plugin-helpers@52230f6c3b
2016-11-17 03:17:44 -07:00
spalger
a52da8e3d6
run vinyl.src in the plugin.root directory
...
Original commit: elastic/kibana-plugin-helpers@8f3081b029
2016-11-17 03:17:31 -07:00
spalger
6ec4fc4ca1
add an optional callback to the build action
...
Original commit: elastic/kibana-plugin-helpers@6a1012f96b
2016-11-17 03:16:49 -07:00
spalger
20d44277a1
support defining an alternate plugin root
...
Original commit: elastic/kibana-plugin-helpers@0e4d4fa501
2016-11-17 03:16:24 -07:00
spalger
483d5750c8
fix lint error
...
Original commit: elastic/kibana-plugin-helpers@06af5c3dd4
2016-11-17 03:15:10 -07:00
Chris Weed
9eff54d1e0
Running main, corrected build, checking for no dependencies ( elastic/kibana-plugin-helpers#15 )
...
* Updated if check if there are no dependencies
* Now running main()
* Build now uses the correct parameter.
Original commit: elastic/kibana-plugin-helpers@7cf31d26d2
2016-11-17 02:47:45 -07:00
spalger
0eec010617
5.0.1-pre3
...
Original commit: elastic/kibana-plugin-helpers@2e0e10106b
2016-11-11 13:25:58 -07:00
spalger
ddf67bf648
[build] ask for kibana version when set to "kibana"
...
Original commit: elastic/kibana-plugin-helpers@5fe34c47ae
2016-11-11 13:23:58 -07:00
spalger
efda634e85
5.0.1-pre2
...
Original commit: elastic/kibana-plugin-helpers@0fd7d07558
2016-11-11 10:23:14 -07:00
Megan Walker
151041bf26
Pass pluginId and plugin-path values through correctly ( elastic/kibana-plugin-helpers#11 )
...
Fixes elastic/kibana-plugin-helpers#10
Original commit: elastic/kibana-plugin-helpers@74defe4206
2016-11-11 10:21:52 -07:00
spalger
57ecccec89
5.0.1-pre
...
Original commit: elastic/kibana-plugin-helpers@2d26645117
2016-11-11 09:43:24 -07:00
spalger
b2369866d2
[test:server] include Kibana node_modules/.bin in path when running server tests
...
Original commit: elastic/kibana-plugin-helpers@bbda801351
2016-11-11 09:41:52 -07:00
Megan Walker
a3ddc22645
Correctly bundle dependencies if there is only one
...
Fixes elastic/kibana-plugin-helpers#8
Original commit: elastic/kibana-plugin-helpers@c46b2ca07c
2016-11-11 15:17:09 +00:00
spalger
9593ecb35d
5.0.0
...
Original commit: elastic/kibana-plugin-helpers@42163ce240
2016-11-04 01:03:37 -05:00
Spencer
dbd2db4f66
Merge pull request elastic/kibana-plugin-helpers#6 from spalger/implement/extra-args-to-kibana
...
[start] send extra args to the kibana process
Original commit: elastic/kibana-plugin-helpers@09b0d85f00
2016-11-03 23:41:14 -05:00
spalger
6790982d08
[start] send extra args to the kibana process
...
Original commit: elastic/kibana-plugin-helpers@ce943ca67c
2016-10-21 15:04:27 -07:00
spalger
5a446ffe4e
[build] place the plugin contents under the kibana directory
...
Original commit: elastic/kibana-plugin-helpers@0a0f5fea0a
2016-10-21 14:58:48 -07:00
spalger
ec965190d6
group task related files
...
Original commit: elastic/kibana-plugin-helpers@4a8ccce1ec
2016-10-21 14:44:19 -07:00