refactor (@embark/core): remove unused file

refactor (@embark/core): remove unused file

refactor (@embark/core): remove unused file
This commit is contained in:
Iuri Matias 2019-11-08 16:54:26 -05:00
parent 9cbacb27a4
commit c5c6578cd5
2 changed files with 0 additions and 32 deletions

View File

@ -1,8 +1,5 @@
import {Callback} from './callbacks';
export interface Plugin {
}
export interface Plugins {
getPluginsFor(name: string): [Plugin];
loadInternalPlugin(name: string, options: any): void;

View File

@ -1,29 +0,0 @@
let pkg = require('../../package.json');
import { Config, Events } from 'embark-core';
import { Logger } from 'embark-logger';
class Embark {
constructor(options) {
this.version = pkg.version;
this.options = options || {};
}
initConfig(env, options) {
this.events = new Events();
this.logger = new Logger({logLevel: 'debug', events: this.events, context: this.context});
this.config = new Config({
env: env,
logger: this.logger,
events: this.events,
context: this.context,
version: this.version,
package: pkg
});
this.config.loadConfigFiles(options);
this.plugins = this.config.plugins;
}
}
module.exports = Embark;