Skip to content
Minko Gechev edited this page Mar 31, 2016 · 15 revisions

How to integrate with @ngrx?

In project.config.ts set your SYSTEM_CONFIG to:

  SYSTEM_CONFIG: any = {
    defaultJSExtensions: true,
    packageConfigPaths: [
      `${this.APP_BASE}node_modules/*/package.json`,
      // This is the important line, which hints SystemJS from where to load @ngrx
      `${this.APP_BASE}node_modules/@ngrx/store/package.json`
    ],
    paths: {
      [this.BOOTSTRAP_MODULE]: `${this.APP_BASE}${this.BOOTSTRAP_MODULE}`,
      'angular2/*': `${this.APP_BASE}angular2/*`,
      'rxjs/*': `${this.APP_BASE}rxjs/*`,
      '*': `${this.APP_BASE}node_modules/*`
    },
    packages: {
      angular2: { defaultExtension: false },
      rxjs: { defaultExtension: false }
    }
  };

How to get colored output from the gulp tasks in IntelliJ Idea?

Use the --color flag. Here's a sample integration.