Skip to content

Commit 414a293

Browse files
committed
Merge with upstream
2 parents 50289cb + 7376e4c commit 414a293

File tree

147 files changed

+25840
-25187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+25840
-25187
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ target
4141
# package overrides
4242
/packages/eslint-config-kibana
4343
/packages/kbn-interpreter/src/common/lib/grammar.js
44-
/packages/kbn-plugin-generator/sao_template/template
44+
/packages/kbn-plugin-generator/template
4545
/packages/kbn-pm/dist
4646
/packages/kbn-test/src/functional_test_runner/__tests__/fixtures/
4747
/packages/kbn-test/src/functional_test_runner/lib/config/__tests__/fixtures/

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ module.exports = {
604604
{
605605
files: [
606606
'.eslintrc.js',
607-
'packages/kbn-plugin-generator/**/*.js',
608607
'packages/kbn-eslint-import-resolver-kibana/**/*.js',
609608
'packages/kbn-eslint-plugin-eslint/**/*',
610609
'x-pack/gulpfile.js',

packages/kbn-plugin-generator/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ If you are targeting **Kibana 6.3 or greater** then checkout the corresponding K
1717
To target the current development version of Kibana just use the default `master` branch.
1818

1919
```sh
20-
node scripts/generate_plugin my_plugin_name
20+
node scripts/generate_plugin --name my_plugin_name -y
2121
# generates a plugin in `plugins/my_plugin_name`
2222
```
2323

24-
To target 6.3, use the `6.x` branch (until the `6.3` branch is created).
24+
To target 6.8, use the `6.8` branch.
2525

2626
```sh
2727
git checkout 6.x
2828
yarn kbn bootstrap # always bootstrap when switching branches
29-
node scripts/generate_plugin my_plugin_name
30-
# generates a plugin for Kibana 6.3 in `../kibana-extra/my_plugin_name`
29+
node scripts/generate_plugin --name my_plugin_name -y
30+
# generates a plugin for Kibana 6.8 in `../kibana-extra/my_plugin_name`
3131
```
3232

3333
The generate script supports a few flags; run it with the `--help` flag to learn more.
@@ -49,7 +49,7 @@ yarn kbn bootstrap
4949

5050
## Plugin Development Scripts
5151

52-
Generated plugins receive a handful of scripts that can be used during development. Those scripts are detailed in the [README.md](sao_template/template/README.md) file in each newly generated plugin, and expose the scripts provided by the [Kibana plugin helpers](../kbn-plugin-helpers), but here is a quick reference in case you need it:
52+
Generated plugins receive a handful of scripts that can be used during development. Those scripts are detailed in the [README.md](template/README.md) file in each newly generated plugin, and expose the scripts provided by the [Kibana plugin helpers](../kbn-plugin-helpers), but here is a quick reference in case you need it:
5353

5454
> ***NOTE:*** All of these scripts should be run from the generated plugin.
5555

packages/kbn-plugin-generator/index.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

packages/kbn-plugin-generator/integration_tests/generate_plugin.test.js

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
{
22
"name": "@kbn/plugin-generator",
3-
"license": "Apache-2.0",
4-
"private": true,
53
"version": "1.0.0",
4+
"private": true,
5+
"license": "Apache-2.0",
6+
"main": "target/index.js",
7+
"scripts": {
8+
"kbn:bootstrap": "node scripts/build",
9+
"kbn:watch": "node scripts/build --watch"
10+
},
611
"dependencies": {
7-
"chalk": "^4.1.0",
8-
"dedent": "^0.7.0",
12+
"@kbn/dev-utils": "1.0.0",
13+
"ejs": "^3.1.5",
914
"execa": "^4.0.2",
10-
"getopts": "^2.2.4",
11-
"lodash": "^4.17.15",
12-
"sao": "^0.22.12"
15+
"inquirer": "^7.3.3",
16+
"normalize-path": "^3.0.0",
17+
"prettier": "^2.0.5",
18+
"vinyl": "^2.2.0",
19+
"vinyl-fs": "^3.0.3"
20+
},
21+
"devDependencies": {
22+
"@types/ejs": "^3.0.4",
23+
"@types/prettier": "^2.0.2",
24+
"@types/inquirer": "^7.3.1"
1325
}
1426
}

0 commit comments

Comments
 (0)