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

Consider moving jspm packages folder #1

Open
alexweber opened this issue Jun 13, 2015 · 4 comments
Open

Consider moving jspm packages folder #1

alexweber opened this issue Jun 13, 2015 · 4 comments

Comments

@alexweber
Copy link
Owner

Currently being kept in src/lib, perhaps it's better off outside the src dir.

@dalgard
Copy link

dalgard commented Nov 13, 2015

@alexweber: I like the idea of keeping installed jspm packages outside the src folder – at the same level as node_modules. But it seems it wouldn't be possible, then, to serve the application from the src folder while developing – am I wrong?

@ohsiwon
Copy link

ohsiwon commented Jan 13, 2016

@alexweber @dalgard How about reroute jspm_package directory?
I've added a middleware like below and reroute jspm_packages as static directory and it seems to work fine.

gulp.task('connect', function() {
  connect.server({
    root: global.paths.src,
    livereload: true,
    middleware: function(connect, opt) {
      return [
        connect().use('/jspm_packages', connect.static('./jspm_packages'))
      ]
    }
  });
}); 

@alexweber
Copy link
Owner Author

@ohsiwon I'm open to it 👍

@dalgard
Copy link

dalgard commented Jan 14, 2016

@ohsiwon: Brilliant – thanks for that idea 👍

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

No branches or pull requests

3 participants