Skip to content

Commit 8b4b9d8

Browse files
e-schultzsmithad15
authored andcommitted
fix(ngReduxModule): Generate metadata (#237)
* fix(ngReduxModule): Generate metadata * update compiler version * update angular deps * make lint happy
1 parent f0ab3cc commit 8b4b9d8

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

packages/store/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@
4949
},
5050
"homepage": "https://github.com/angular-redux/ng2-redux#readme",
5151
"devDependencies": {
52-
"@angular/core": "^2.0.0",
53-
"@angular/common": "^2.0.0",
52+
"@angular/core": "^2.1.1",
53+
"@angular/common": "^2.1.1",
5454
"@types/chai": "^3.4.31",
5555
"@types/es6-shim": "0.0.30",
5656
"@types/mocha": "^2.2.30",
5757
"@types/node": "^6.0.36",
5858
"@types/sinon": "^1.16.28",
5959
"@types/sinon-chai": "^2.7.26",
60-
"@angular/compiler": "^2.0.0",
61-
"@angular/compiler-cli": "^0.6.0",
62-
"@angular/platform-browser": "^2.0.0",
63-
"@angular/platform-browser-dynamic": "^2.0.0",
64-
"@angular/platform-server": "^2.0.0",
60+
"@angular/compiler": "^2.1.1",
61+
"@angular/compiler-cli": "^2.1.1",
62+
"@angular/platform-browser": "^2.1.1",
63+
"@angular/platform-browser-dynamic": "^2.1.1",
64+
"@angular/platform-server": "^2.1.1",
6565
"awesome-typescript-loader": "^2.2.1",
6666
"chai": "^3.5.0",
6767
"es6-shim": "^0.35.0",

packages/store/src/index.ts

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
1-
import { NgModule } from '@angular/core';
21
import { NgRedux } from './components/ng-redux';
32
import { DevToolsExtension } from './components/dev-tools';
43
import { select } from './decorators/select';
5-
import { ModuleWithProviders } from '@angular/core';
6-
7-
@NgModule({
8-
9-
})
10-
class NgReduxModule {
11-
static forRoot(): ModuleWithProviders {
12-
return {
13-
ngModule: NgReduxModule,
14-
providers: [NgRedux]
15-
};
16-
}
17-
}
4+
import { NgReduxModule } from './ng-redux.module';
185

6+
197
export {
20-
NgReduxModule,
218
NgRedux,
9+
NgReduxModule,
2210
DevToolsExtension,
2311
select,
2412
}

packages/store/src/ng-redux.module.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { NgModule, ModuleWithProviders } from '@angular/core';
2+
import { NgRedux } from './components/ng-redux';
3+
@NgModule({
4+
5+
})
6+
export class NgReduxModule {
7+
static forRoot(): ModuleWithProviders {
8+
return {
9+
ngModule: NgReduxModule,
10+
providers: [NgRedux]
11+
};
12+
}
13+
};

0 commit comments

Comments
 (0)