Skip to content

Commit

Permalink
Rewite with SolfegeJS application
Browse files Browse the repository at this point in the history
  • Loading branch information
neolao committed Dec 7, 2017
1 parent 7107ac3 commit c2c5f48
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
6 changes: 3 additions & 3 deletions example/lib/console.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict";

var _solfegejs = require("solfegejs");
var _solfegejsApplication = require("solfegejs-application");

var _solfegejs2 = _interopRequireDefault(_solfegejs);
var _solfegejsApplication2 = _interopRequireDefault(_solfegejsApplication);

var _Bundle = require("../../lib/Bundle");

Expand All @@ -14,7 +14,7 @@ var _Bundle4 = _interopRequireDefault(_Bundle3);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var application = new _solfegejs2.default.Application();
var application = new _solfegejsApplication2.default();
application.addBundle(new _Bundle2.default());
application.addBundle(new _Bundle4.default());

Expand Down
4 changes: 2 additions & 2 deletions example/src/Bundle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */
import type Application from "solfegejs/src/Application"
import type {BundleInterface, InitializableBundleInterface} from "solfegejs/src/BundleInterface"
import type Application from "solfegejs-application/src/Application"
import type {BundleInterface, InitializableBundleInterface} from "solfegejs-application/src/BundleInterface"

/**
* Example bundle
Expand Down
4 changes: 2 additions & 2 deletions example/src/console.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import solfege from "solfegejs"
import Application from "solfegejs-application"
import DIBundle from "../../lib/Bundle"
import MyBundle from "./Bundle";

// Create application instance
let application = new solfege.Application;
let application = new Application;
application.addBundle(new DIBundle);
application.addBundle(new MyBundle);

Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solfegejs-dependency-injection",
"description": "Dependency injection for SolfegeJS",
"version": "2.0.0",
"version": "2.1.0",
"author": "neolao <contact@neolao.com>",
"repository": "https://github.com/neolao/solfege-bundle-dependency-injection.git",
"license": "MIT",
Expand All @@ -13,16 +13,13 @@
"engines": {
"node": ">= 9"
},
"peerDependencies": {
"solfegejs": "~3.0"
},
"dependencies": {
"colors": "^1.1",
"config-yaml": "^1.0",
"harmony-reflect": "^1.4",
"solfegejs": "^3.0.0"
"harmony-reflect": "^1.4"
},
"devDependencies": {
"solfegejs-application": "^3.0.0",
"babel-cli": "^6.7",
"babel-preset-solfege": "^1.0",
"chai": "^3.5",
Expand Down
6 changes: 3 additions & 3 deletions src/Bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import fs from "fs"
import configYaml from "config-yaml"
import Container from "./ServiceContainer/Container"
import DefinitionBuilder from "./ServiceContainer/DefinitionBuilder"
import type Application from "solfegejs/src/Application"
import type Configuration from "solfegejs/src/Configuration"
import type {BundleInterface} from "solfegejs/src/BundleInterface"
import type Application from "solfegejs-application/src/Application"
import type Configuration from "solfegejs-application/src/Configuration"
import type {BundleInterface} from "solfegejs-application/src/BundleInterface"

/**
* Service container bundle
Expand Down

0 comments on commit c2c5f48

Please sign in to comment.