Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify paths #13

Open
SebastianStehle opened this issue Dec 18, 2015 · 1 comment
Open

Specify paths #13

SebastianStehle opened this issue Dec 18, 2015 · 1 comment

Comments

@SebastianStehle
Copy link

Hi,
I try to bundle an angular2 application.

It works from the command line: jspm bundle scripts/app/bootstrap.js with the following config file:

System.config({
  defaultJSExtensions: true,
  transpiler: false,
  paths: {
     "angular2/*": "node_modules/angular2/*.js",
     "rxjs/*": "node_modules/rxjs/*.js"
  }
});

I tried the same with gulp, but it doesnt work. I tries to resovle the angular files from "angular2/core.js" for example:

gulp.task('jspm', function () {
    jspm({
        bundles: [
            {
                src: "wwwroot/scripts/app/bootstrap.js",
                dst: 'bundle.js'
            }
        ],
        configOverride: {
            defaultJSExtensions: true,
            paths: {
                "angular2/*": "wwwroot/node_modules/angular2/*.js",
                "rxjs/*": "wwwroot/node_modules/rxjs/*.js"
            }
        }
    })
    .pipe(gulp.dest(ts.outFolder));
});

Any ideas? Can you also specify jspm to resovle all missing dependencies from node_modules by default?

@buddhike
Copy link
Owner

buddhike commented Jan 4, 2016

I have not tested the plugin with JSPM typescript extension. Does it correctly write the config.js with your specified override? Could you post the content of config.js in ts.outFolder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants