mirror of https://github.com/embarklabs/embark.git
refactor (@embark/core): remove unused file
refactor (@embark/core): remove unused file refactor (@embark/core): remove unused file
This commit is contained in:
parent
9cbacb27a4
commit
c5c6578cd5
|
@ -1,8 +1,5 @@
|
|||
import {Callback} from './callbacks';
|
||||
|
||||
export interface Plugin {
|
||||
}
|
||||
|
||||
export interface Plugins {
|
||||
getPluginsFor(name: string): [Plugin];
|
||||
loadInternalPlugin(name: string, options: any): void;
|
||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue