Skip to content

Commit

Permalink
Added base folder structure for Newsfeed plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Oct 28, 2019
1 parent b6591eb commit 14c027f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x-pack/plugins/newsfeed/kibana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "newsfeed",
"version": "kibana",
"server": false,
"ui": true
}
14 changes: 14 additions & 0 deletions x-pack/plugins/newsfeed/public/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { PluginInitializerContext } from '../../../../src/core/public';
import { NewsfeedPublicPlugin } from './plugin';

export function plugin(initializerContext: PluginInitializerContext) {
return new NewsfeedPublicPlugin(initializerContext);
}

export { NewsfeedPublicPlugin as Plugin };
23 changes: 23 additions & 0 deletions x-pack/plugins/newsfeed/public/plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import {
PluginInitializerContext,
CoreSetup,
CoreStart,
Plugin,
} from '../../../../src/core/public';

export type Setup = void;
export type Start = void;

export class NewsfeedPublicPlugin implements Plugin<Setup, Start> {
constructor(initializerContext: PluginInitializerContext) {}

public setup(core: CoreSetup): Setup {}

public start(core: CoreStart): Start {}
}

0 comments on commit 14c027f

Please sign in to comment.