New plugin architecture: How to build?

All right. I Should have looked here. Now everything is working. I will only add that the plugin archive should be done on Linux. On a Windows machine it turns out to be incorrect and there will be an error during installation Plugin installation was unsuccessful due to error "EACCES: permission denied, open '/usr/share/kibana/plugins/.plugin.installing/package.json'"
No more problems.