Skip to content

Commit

Permalink
docs(SystemJS): Updated dependencies for SystemJS configuration (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Jun 1, 2016
1 parent ec38661 commit 0fc833f
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions docs/overview/systemjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,33 @@

### Setup

Below is an example of a SystemJS config which maps `@ngrx/router` to its npm package folder along with its external dependencies including `path-to-regexp`, `isarray`, `query-string` and `strict-uri-encode`. If you have an existing SystemJS config, just add `@ngrx/router` sections to your configuration.
Below is an example of a SystemJS config which maps `@ngrx/router` to its npm package folder along with its external dependencies including `@ngrx/core`, `path-to-regexp`, `isarray`, `query-string`, `strict-uri-encode` and `object-assign`. If you have an existing SystemJS config, just add `@ngrx/router` sections to your configuration.

```js

System.config({
map: {
map: {
// @ngrx/core
'@ngrx/core': 'node_modules/@ngrx/core',

// @ngrx/router
'@ngrx/router': 'node_modules/@ngrx/router',

// @ngrx/router dependencies
'path-to-regexp': 'node_modules/path-to-regexp',
'isarray': 'node_modules/isarray',
'query-string': 'node_modules/query-string',
'strict-uri-encode': 'node_modules/strict-uri-encode'
'strict-uri-encode': 'node_modules/strict-uri-encode',
'object-assign': 'node_modules/object-assign'
},
//packages defines our app package
packages: {
// @ngrx/core package
'@ngrx/core': {
main: 'index.js',
defaultExtension: 'js'
},

// @ngrx/router package
'@ngrx/router': {
main: 'index.js',
Expand All @@ -42,6 +52,10 @@ System.config({
'strict-uri-encode': {
main: 'index.js',
defaultExtension: 'js'
},
'object-assign': {
main: 'index.js',
defaultExtension: 'js'
}
}
});
Expand Down

0 comments on commit 0fc833f

Please sign in to comment.