athom-cli
Version:
Command-line interface for Homey Apps
29 lines (20 loc) • 459 B
JavaScript
;
/*
Plugin ID: oauth2
This plugin installs homey-oauth2app.
Enable the plugin by adding `{ "id": "oauth2" }` to your /.homeyplugins.json array
Plugin options:
{
"version": "latest"
}
*/
const AppPlugin = require('../AppPlugin');
class AppPluginOAuth2 extends AppPlugin {
async run() {
await this._app.installNpmPackage({
id: 'homey-oauth2app',
version: this._options.version,
});
}
}
module.exports = AppPluginOAuth2;