Commit graph

135 commits

Author SHA1 Message Date
Spencer
6dcb8043e5
[6.6] Fix plugin-helpers test:server task (#31034) (#31079)
Backports the following commits to 6.6:
 - Fix plugin-helpers test:server task  (#31034)
2019-02-14 13:48:52 -08:00
Tiago Costa
1d3fcaac0a
[6.x] Upgrade to NodeJS 10 (#25157) (#26909)
* chore(NA): merge and solve conflicts backporting to 6.x

* chore(NA): merge and solve conflicts backporting to 6.x
2018-12-10 18:50:30 +00:00
Tiago Costa
42102bad0e
[6.x] Create vendor dll for the client modules (#22618) (#26707)
* chore(NA): merge and solve conflicts with 6.x when backporting.

* chore(NA): updated kbn pm file.
2018-12-05 19:48:33 +00:00
Josh Dover
fb89ffbc68
[6.x] [kbn-pm] Use yarn workspaces for dependencies (#24095) (#25549)
* [kbn-pm] Use yarn workspaces for dependencies (#24095)

* Bumped leadfoot to 1.7.5 now that it issue has been merged. (#17582)

* Copy license to build
2018-11-12 17:21:42 -06:00
Spencer
f5ca67dc41
[6.x] [yarn] Upgrade to 1.10.1 (#23971) (#24054)
Backports the following commits to 6.x:
 - [yarn] Upgrade to 1.10.1  (#23971)
2018-10-15 18:20:26 -07:00
Spencer
bd9e2148a5
[kbn-plugin-helpers] move jest tests to integration suite (#23005) (#23012)
The plugin helper tests have failed due to timeouts every once and a while, which makes sense because they run a bunch of CLI tasks, so this just moved them to the jest integration tests where tests can take a little longer to run.
2018-09-14 13:24:10 -07:00
Leanid Shutau
b705fed963
Integrate main i18n tool into build pipeline (#22254) (#22482)
* Integrate main i18n tool to build process

* Resolve comments

* Remove old task

* Replace default Error with FailError
2018-08-29 13:42:47 +03:00
Tyler Smalley
5303aae152
[test][kbn-plugin-helpers] Skip install dependencies (#20649) (#20871)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-07-17 08:05:58 -07:00
Tim Roes
de3e5b5cb6
Increase prettier line width to 100 (#20535) (#20596)
* Increase prettier line width to 100

* Fix packages JS prettier

* Change style guide to 100 width

* Fix line-width in latest master changes
2018-07-11 00:41:00 +02:00
CJ Cenizal
c6be289f21
Fix misspellings (#19981) (#20284) 2018-06-27 20:50:06 -07:00
Spencer
5196b2d768
[6.x] [plugin-helpers] use execa so that errors include stdout with helpful info (#20110) (#20171)
Backports the following commits to 6.x:
 - [plugin-helpers] use execa so that errors include stdout with helpful info  (#20110)
2018-06-22 14:46:25 -07:00
Tyler Smalley
a1b5a56f94
Adds SCSS support for plugins (#19643) (#20137)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-06-22 08:03:14 -07:00
Aleh Zasypkin
b83074f886
[6.x] Execute tsc.cmd on Windows during build. (#19627) 2018-06-01 21:01:05 +02:00
Rashid Khan
18b9ac5f03 Fix plugin-helpers path to kibana (#19602) 2018-05-31 11:15:56 -07:00
Tiago Costa
229fd275f8
[6.x] Validate current node version (#19154) (#19452)
* Validate current node version (#19154)

* feat(12976): node version validation at runtime.

* refact(12976): move the code into a static utilities class.

* test(12976): added first test case using jest.

* test(12976): added test cases for node_version.

* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.

* refact(12976): migrated node version code from es6 to es5.

* feat(12976): node version validation at runtime.

* refact(12976): move the code into a static utilities class.

* test(12976): added first test case using jest.

* test(12976): added test cases for node_version.

* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.

* refact(12976): migrated node version code from es6 to es5.

* fix(12976): remove one level from ts node register cache directory link.

* chore(12976): added caret to semver dependecy in order to support minor versions.

* refact(12976): small change from named import to default import on node version validator.

* refact(12976): removed ts_node_register and add the code to babel_register.

* feat(12976): split eslint config in order to properly support files built to run before and after node version validator. refact(12976): convert script files to es5 code. refact(12976): delete inline eslint configs from node version check related files.

* refact(12976): remove ts node register file.

* refact(12976): completely port setup_node_env to es5.

* refact(12976): remove babel_register invokation from external dependencies in scripts.

* refact(12976): move node_version code directly into node_version_validator inside setup_node_env folder.

* refact(12976): only node version validator for kbn script.

* Fix check_file_casing babel_register reference (#19457)

* chore(12976): fixed license headers on new files.
2018-05-29 21:59:42 +01:00
Spencer
4f29b323bf
Backport/19383/6.x (#19487)
* [eslint][tslint] require Apache 2.0 license headers

(cherry picked from commit 337fea30b9)

* [kbn-eslint-plugin-license-header] don't try to fix files with hashbangs

(cherry picked from commit db79f1501e)

* [eslint][tslint] autofix license headers
2018-05-28 20:24:23 -07:00
Spencer
07f4e5ad77
[6.x] [typescript] add typescript support for the server and browser (#19104) (#19223)
Backports the following commits to 6.x:
 - [typescript] add typescript support for the server and browser  (#19104)
2018-05-21 10:42:59 -07:00
Jenkins CI
bc5b51554d Migrate x-pack-kibana source to kibana 2018-04-24 13:49:26 -07:00
Spencer
3bf90dc9f1
[6.x] [plugin-helpers] fix order of arguments passed to commander actions (#17663) (#17664) 2018-04-11 13:20:03 -07:00
Spencer
967a3a69be
[plugin-helpers] report task failures to CLI with exitCode 1 (#17647) (#17649)
* [plugin-helpers] return promises/fail cli when async tasks fail

* [plugin-helpers] rename taskRunner to commanderAction

* [plugin-helpers] await async assertion
2018-04-10 17:45:09 -07:00
Kim Joar Bekkelund
a76d1b6e89
[plugin helpers] Using --pure-lockfile instead of --frozen-lockfile (#17275) (#17277) 2018-03-20 20:37:16 +01:00
Spencer
e8f7e8d6f1
[plugin-helpers] allow opt-ing out of dependency installation (#16816) (#16835)
* [kbn-plugin-helpers] allow opt-ing out of dependency installation

* [plugin-helpers] rename buildIgnoreDependencies to skipInstallDependencies

* [plugin-helpers] use noop3 for test

* [plugin-helpers] fix test description

* [plugin-helpers] fix assertion
2018-02-21 11:16:46 -07:00
Kim Joar Bekkelund
059a8a34ee
[plugin helpers] Use Kibana's Jest setup (#16731) (#16737)
* [plugin helpers] Use Kibana's Jest

* Remove outer 'describe'

* Async/await in tests

* Assertion improvements
2018-02-14 18:48:57 +01:00
Kim Joar Bekkelund
2770fc9fd0
Remove symlinks when building Kibana plugins (#16727) (#16730) 2018-02-14 11:58:09 +01:00
Kim Joar Bekkelund
38319f1b72
[plugin-helpers] npm -> yarn (#16632) (#16658)
* [plugin-helpers] npm -> yarn

* Allow globs to not match when singular, e.g. for 'yarn.lock'

* --frozen-lockfile
2018-02-12 19:55:31 +01:00
Spencer
65fefe4cb9
[6.x] [plugin-helpers] update readme (#16616) (#16620)
* [plugin-helpers] update the readme to describe changes now that it is in the Kibana repo

* [plugin-helpers/readme] add note about versions before 6.3
2018-02-10 00:32:40 -07:00
Spencer
60c0e9b1b1 [plugin-helpers] use multiple fixtures so parallel tests don't break each other (#16624)
(cherry picked from commit a9f27bbee0)
2018-02-08 17:25:55 -07:00
spalger
0247b33878 [plugin-helpers] replace last few uses of old package name 2018-02-08 14:36:49 -07:00
spalger
6910c8f6e2 [plugin-helpers/eslint] remove unused vars 2018-02-08 14:36:17 -07:00
spalger
5a685c0d5e [plugin-helpers] rely on kibana eslint 2018-02-08 14:35:53 -07:00
spalger
7b7b9165cb [plugin-helpers] remove keywords from package.json 2018-02-08 14:35:47 -07:00
spalger
5237722bca [kbn-plugin-helpers/yarn] add yarn.lock file 2018-02-08 14:35:38 -07:00
spalger
e30d35a5c6 [kbn-plugin-helpers] remove redundant configs 2018-02-08 14:35:04 -07:00
Joe Fleming
29fdf58329 v7.1.5
Original commit: elastic/kibana-plugin-helpers@99687d4af0
2018-02-05 15:44:27 -07:00
Spencer
ef3cb80e04 [config] throw if config file has a syntax error (elastic/kibana-plugin-helpers#65)
(cherry picked from commit elastic/kibana-plugin-helpers@487dd70bdb)

Original commit: elastic/kibana-plugin-helpers@04026d9322
2018-02-05 15:40:24 -07:00
Joe Fleming
1e2769b613 v7.1.4
Original commit: elastic/kibana-plugin-helpers@39fbc7d868
2018-01-04 18:43:15 -07:00
Spencer
3a95bba15f [npm] upgraded eslint-related deps (elastic/kibana-plugin-helpers#62)
* [npm] upgraded eslint-related deps

* [npm] reflect peer deps from @elastic/eslint-config-kibana

Original commit: elastic/kibana-plugin-helpers@65ce980fca
2018-01-04 18:38:17 -07:00
Joe Fleming
f4946dac17 chore: ignore yarn.lock file
Original commit: elastic/kibana-plugin-helpers@e5df8c8659
2018-01-04 16:59:38 -07:00
Joe Fleming
c206daa032 [npm] upgrade gulp-zip (elastic/kibana-plugin-helpers#61)
Original commit: elastic/kibana-plugin-helpers@525f901d1f
2018-01-04 16:54:27 -07:00
Joe Fleming
afbba8afba v7.1.3
Original commit: elastic/kibana-plugin-helpers@bea90485f6
2017-11-21 10:22:22 -07:00
Joe Fleming
3b039d9485 [createToolingLog] update require path for toolingLog (7.x) (elastic/kibana-plugin-helpers#55)
include fallback to utils path for semver compat

Original commit: elastic/kibana-plugin-helpers@6c923d1231
2017-11-21 10:21:05 -07:00
Joe Fleming
d8a5a47ca1 chore: add kibanaRoot setting to readme
Original commit: elastic/kibana-plugin-helpers@4bced22a94
2017-11-21 10:12:53 -07:00
Joe Fleming
5a9eed6765 v7.1.2
Original commit: elastic/kibana-plugin-helpers@e314c21bf3
2017-11-09 11:13:20 -07:00
Joe Fleming
8e9443f253 Fix: Package use build target (elastic/kibana-plugin-helpers#52)
* fix: pass build target into package task

use the build target for the zip output

* chore: change up the npm scripts

* chore: add create package tests

* chore: update eslint deps

* chore: fix linting issues, add engines

Original commit: elastic/kibana-plugin-helpers@51058fb7fc
2017-11-09 11:12:36 -07:00
Joe Fleming
7f15f82600 v7.1.1
Original commit: elastic/kibana-plugin-helpers@b489c76b26
2017-11-06 11:28:26 -07:00
Joe Fleming
ca5c47defa fix: read package file instead of using require
require uses a cache, so if the package.json file was changed before running build, the changes won't exist in the build runtime. using fs.readFileSync instead ensures that the information read from package.json is current.

Original commit: elastic/kibana-plugin-helpers@f78e891838
2017-11-06 11:25:19 -07:00
Joe Fleming
7b8cf3c5b7 v7.1.0
Original commit: elastic/kibana-plugin-helpers@11238b2697
2017-09-26 15:16:28 -07:00
Joe Fleming
079c4f0629 Fix: readme include docs (elastic/kibana-plugin-helpers#50)
* chore: add a simple version compat chart

* chore: document the settings and how to use them

* chore: use icon for license info

* chore: use matching badge for circleci status

Original commit: elastic/kibana-plugin-helpers@1f39e488a3
2017-09-26 15:15:31 -07:00
Joe Fleming
b73576b4d5 Feat: add includePlugins setting (elastic/kibana-plugin-helpers#49)
* observe includePlugins setting

* fix: move resolve up to config parser

this ensures that the path is resolved relative to the plugin root

Original commit: elastic/kibana-plugin-helpers@fd07d617a4
2017-09-26 14:45:54 -07:00
Joe Fleming
607354978f v7.0.2
Original commit: elastic/kibana-plugin-helpers@dba9da1b3c
2017-09-20 11:04:57 -07:00