Questions tagged [jspm]

jspm is a package manager for the SystemJS universal module loader, built on top of the dynamic ES6 module loader.

With jspm load any module format (ES6, AMD, CommonJS and globals) directly from any endpoint such as npm and github with flat versioned dependency management. Any custom endpoints can be created through the Endpoint API.
For development, load modules as separate files with ES6 and plugins compiled in the browser.
For production, optimize into a bundle, layered bundles or a self-executing bundle with a single command.

546 questions
4
votes
0 answers

JSPM Split Code Into Multiple Bundles For Async Loading

Are there any examples of jspm where I can bundle my angular2 app into different code bundles and load the secondary bundles async. Webpack has the concept of code splitting. I am looking for something similar to this.
Michael JDI
  • 1,241
  • 5
  • 18
  • 30
4
votes
0 answers

How to debug SystemJS ENOENT no such error error in Webpack 2.x?

After upgrading to Webpack 2.x, I'm getting this error, during compilation and re-compilation (in HMR mode): (SystemJS) Error: ENOENT: no such file or directory, open ... Have anybody found a way to fix that? Here is the source…
Konstantin Tarkus
  • 37,618
  • 14
  • 135
  • 121
4
votes
4 answers

Bootstrapping Aurelia

Finally, I start to work with Aurelia. There is a starter kit available Here which facilitates initializing Aurelia. But it is a template which should be used within a Web Site template. I have a pre-configured WebApi project and I want to use…
mehrandvd
  • 8,806
  • 12
  • 64
  • 111
4
votes
0 answers

Different dev v production path in SystemJs/Jspm

I would like to have a different path for dev v production in JSPM. I am using JSPM version 0.17, which creates a separate dev file. In my case they look something like this: SystemJS.config({ paths: { "npm:": "lib/npm/", …
Stephen Simpson
  • 1,381
  • 1
  • 11
  • 23
4
votes
1 answer

Sharing components across multiple Aurelia projects

we started our project with ES6 javascript skeleton. we would like to extract some styles and custom attributes to a common folder so we can use these at any Aurelia module we will build in the future. the problem is with the bundle files. we don't…
4
votes
2 answers

Server sometimes returns 500 when installing angular2

Lately I have been experiencing that an jspm install more often then not results in a status 500 being returned by the server whenever @angular packages are being downloaded via NPM. I have tried everything: Authenticate npm try new…
Xabre
  • 1,292
  • 1
  • 11
  • 17
4
votes
1 answer

Karma/Jasmine unit test with JSPM 404 on my JSPM packages

I am trying to make JSPM / Karma / Babel / Jasmine all work together. But I am getting the error when running karma start 15 04 2016 17:34:02.428:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/ 15 04 2016 17:34:02.434:INFO…
allencoded
  • 7,015
  • 17
  • 72
  • 126
4
votes
1 answer

ES2016 code reuse between Aurelia applications

While working on a number of Aurelia applications we reached the point that we need to share code between these applications. The code to be shared is not something we (actually our customer) would like to be open sourced. So we were thinking of…
Andrew
  • 5,395
  • 1
  • 27
  • 47
4
votes
1 answer

System.js builder.buildStatic just outputs the filename

I have just simplified the source file to below, which works fine when I use System.import in a script tag. import angular from "angular"; angular.element(document).ready(function () { alert('Hello word');; }); Below is my…
Darren
  • 9,014
  • 2
  • 39
  • 50
4
votes
1 answer

Load JS modules conditionally (SystemJS)

I am currently using jspm and SystemJS to load ES6 modules. However, I would like to be able to Scan the page for certain selectors (e.g., id, data-plugin) Map these selectors to their module dependencies Load only those modules My thought was…
Himmel
  • 3,629
  • 6
  • 40
  • 77
4
votes
1 answer

using systemjs to load files for cordova app

EDIT (added some information about my environment) This is my second hybrid app, but first that I'm using a module loader. I'm targeting Android 4,5,6 and iOS 7,8,9. I'm developing on both windows 10 and ubuntu linux 15.10 (will use mac to publish…
weagle08
  • 1,763
  • 1
  • 18
  • 27
4
votes
2 answers

ADAL library gets mangled when used with SystemJS loader - ReferenceError: AuthenticationContext is not defined

I built a small test application using Angular1 that uses ADAL to connect to an Office365 tenant. Since I wish to start including Angular2 components, I tried to use JSPM and SystemJS to load my modules, as per the examples on angular.io. I am…
pierrebo
  • 904
  • 2
  • 10
  • 22
4
votes
1 answer

How to get rid off Angular Material extra styles and CSS linked by it 'forcefully'

I am using JSPM/SystemJS I am using Angular Material and extra lib for tables (which imports Angular Material too) I also would love to use SASS ONLY version of Angular Material by @import 'angular-material.scss' BUT when I do that and link my…
Yoorek
  • 1,003
  • 1
  • 12
  • 30
4
votes
1 answer

How to add another package manager to a ASP.NET MVC 6 project?

There is currently two package managers under Dependencies in an ASP.NET MVC 6 application created with Visual Studio 2015 namely Bower and NPM. How can I add another package manager like JSPM to the list and manage it's dependencies?
wonderful world
  • 10,969
  • 20
  • 97
  • 194
4
votes
2 answers

How to use System.js with CDN and local fallback?

I ran jspm install angular and it installed it locally to my jspm_packages folder. From code, I use regular ES6 imports like import angular from 'angular'. What do I need to do in order to load angular from a CDN and fallback to a local version if…
Natan
  • 4,686
  • 5
  • 30
  • 48