Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Commit

Permalink
fix(ngmodule): Added empty object for NgModule metadata (#39)
Browse files Browse the repository at this point in the history
Fixes issue with package is used with Augury. The "args" property is not generated if no object is provided to the NgModule
Also fixed test suite
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Feb 1, 2017
1 parent cfc15d8 commit 95e0021
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
4 changes: 4 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module.exports = function(karma) {
{ type: 'html' }
]
},

mime: {
'text/x-typescript': ['ts', 'tsx']
},

browsers: ['Chrome'],

Expand Down
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
],
"license": "MIT",
"peerDependencies": {
"rxjs": "^5.0.0-beta.12",
"@angular/common": "^2.0.0",
"@angular/core": "^2.0.0",
"@angular/router": "^3.0.0",
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^1.5.0 || ^2.0.0"
"@ngrx/store": "^1.5.0 || ^2.0.0",
"rxjs": "^5.0.1"
},
"devDependencies": {
"@angular/common": "^2.0.0",
"@angular/compiler": "^2.0.0",
"@angular/compiler-cli": "^0.6.1",
"@angular/core": "^2.0.0",
"@angular/platform-browser": "^2.0.0",
"@angular/platform-browser-dynamic": "^2.0.0",
"@angular/platform-server": "^2.0.0",
"@angular/router": "^3.0.0",
"@angular/common": "~2.0.0",
"@angular/compiler": "~2.0.0",
"@angular/compiler-cli": "~0.6.1",
"@angular/core": "~2.0.0",
"@angular/platform-browser": "~2.0.0",
"@angular/platform-browser-dynamic": "~2.0.0",
"@angular/platform-server": "~2.0.0",
"@angular/router": "~3.0.0",
"@ngrx/core": "^1.2.0",
"@ngrx/store": "^2.0.0",
"@types/jasmine": "^2.2.33",
Expand All @@ -56,24 +56,25 @@
"cpy-cli": "^1.0.1",
"istanbul-instrumenter-loader": "^0.2.0",
"jasmine-core": "^2.5.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "^0.2.3",
"karma-coverage": "^0.5.5",
"karma-jasmine": "^0.3.8",
"karma-mocha-reporter": "^2.0.0",
"karma": "^1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage": "^1.1.1",
"karma-jasmine": "^1.0.2",
"karma-mocha-reporter": "^2.1.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-typescript-preprocessor": "0.0.21",
"karma-webpack": "^1.7.0",
"npm-run-all": "^1.7.0",
"reflect-metadata": "^0.1.3",
"rimraf": "^2.5.4",
"rollup": "^0.34.13",
"rxjs": "^5.0.0-beta.12",
"source-map-loader": "^0.1.5",
"tslint": "^3.15.1",
"tslint-loader": "^2.1.5",
"typescript": "^2.0.2",
"typescript": "~2.0.2",
"uglifyjs": "^2.4.10",
"webpack": "^2.1.0-beta.25",
"zone.js": "^0.6.17"
"webpack": "2.1.0-beta.25",
"zone.js": "^0.7.2"
}
}
2 changes: 1 addition & 1 deletion src/router-store-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function provideRouterConnector() {
};
}

@NgModule()
@NgModule({})
export class RouterStoreModule {
static connectRouter() {
return {
Expand Down

0 comments on commit 95e0021

Please sign in to comment.