Skip to content

Commit 207eb50

Browse files
author
guyplusplus
committed
Build procedure updated
1 parent a466691 commit 207eb50

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

README.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -155,27 +155,20 @@ I use [Microsoft Code](https://code.visualstudio.com/) to edit code and [Google
155155

156156
## Packaging the plugin as a zip file
157157

158-
Few key points to be aware:
159-
* Simply add the plugin directory inside a `kibana` folder and zip the file. Perform this zip operation on Linux ; on Windows it leads to wired error when installing the plugin `"Plugin installation was unsuccessful due to error "EACCES: permission denied, open '/usr/share/kibana/plugins/.plugin.installing/package.json'""`.
160-
* By (my) convension, zip filename format carries the Kibana version (i.e. 7.8.0) followed by the plugin version (i.e. 1.0.0)
161-
* Set the Kibana version and the plugin version by updating the file `kbn_tp_custom_form_filter_accounts/package.json`, respectively the value of the keys `kibana.version` and `version`
162-
* Include the `vis_type_custom_form_filter_accounts/target` directory which comes for the devevelopment environment in the zip file
163-
164-
The zip structure is:
165-
166-
```
167-
vis_type_custom_form_filter_accounts_7.8.0_1.0.0.zip
168-
kibana/
169-
vis_type_custom_form_filter_accounts/
170-
config.js
171-
kibana.json
172-
package.json
173-
public/
174-
...
175-
server/
176-
...
177-
target/
178-
...
158+
Build the zip file with the `plugin_helpers.js` script
159+
160+
```
161+
$ cd kibana/plugins/vis_type_custom_form_filter_accounts
162+
$ node ../../scripts/plugin_helpers.js build
163+
? What version of Kibana are you building for? 7.10.0
164+
info deleting the build and target directories
165+
info running @kbn/optimizer
166+
│ info initialized, 0 bundles cached
167+
│ info starting worker [1 bundle]
168+
│ succ 1 bundles compiled successfully after 45 sec
169+
info copying source into the build and converting with babel
170+
info compressing plugin into [visTypeCustomFormFilterAccounts-7.10.0.zip]
171+
$
179172
```
180173

181174
## Installing the plugin
@@ -192,8 +185,8 @@ Deleting then installing the plugin often fails for me. I fix it by running this
192185

193186
```shell
194187
$ cd /usr/share/kibana
195-
$ sudo -u kibana ./bin/kibana-plugin remove vis_type_custom_form_filter_accounts
196-
Removing vis_type_custom_form_filter_accounts...
188+
$ sudo -u kibana ./bin/kibana-plugin remove visTypeCustomFormFilterAccounts
189+
Removing visTypeCustomFormFilterAccounts...
197190
Plugin removal complete
198191
$ sudo rm -rf /usr/share/kibana/optimize/bundles
199192
$

0 commit comments

Comments
 (0)