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
7
votes
1 answer

Import jQuery Plugin with JSPM

I'm trying to import the jQuery plugin jQuery.scrollTo with JSPM. So far I installed it with jspm install npm:jquery.scrollto and now I'm trying to import it with import $ from 'jquery'; import scrollTo from 'jquery.scrollto'; Now I'm only…
Simon Knittel
  • 1,730
  • 3
  • 15
  • 24
6
votes
1 answer

Post-Release versioning and SemVer 2.0 (sematic verisoning)

this is not a coding, but rather a process question. I am building software that might need a post-release fix or feature addition for certain markets or in general. Following the SemVer 2.0 (http://semver.org/spec/v2.0.0-rc.2.html) scheme of…
wzr1337
  • 3,609
  • 5
  • 30
  • 53
6
votes
0 answers

Installing Angular component router via JSPM results in mysterious 404 errors

I have a JSPM/Typescript/Angular 1.5.3 project. I want to use the new component router. In my project dir, I used the command jspm install npm:@angular/router which installed fine with no errors. I then added it to my app.ts file with import…
zakdances
  • 22,285
  • 32
  • 102
  • 173
6
votes
1 answer

Get list of all declared module imports (SystemJS)

I'm using jspm and SystemJS to import ES2015 modules. Is it possible to get a list of all of the imported modules in a project through the System object, or anywhere else? I can access my project-specific modules through…
Himmel
  • 3,629
  • 6
  • 40
  • 77
6
votes
1 answer

typescript: import jspm libraries

So most examples I found on importing jspm packages to typescript assumed that I wanted to use Systemjs to load and interpret them in the browser. However, I would rather like to use tsc to build commonjs modules and only import the js code, since…
rweng
  • 6,736
  • 7
  • 27
  • 30
6
votes
1 answer

Improving the imports in Webstorm 11 using JSPM and Typescript

I am using JSPM and Typescript for an Angular2 project and Webstorm 11 seems confused about the import paths of the TS classes. The first import is the correct one: import {Component} from "angular2/core"; But the other two are referencing…
korun
  • 2,211
  • 1
  • 16
  • 12
6
votes
1 answer

Can SystemJS plugins modify already transpiled files?

While attempting to get Angular (1.x) working with systemjs I realized that there is not currently the capability (that I know of) to automatically insert $inject into angular components, which keeps the components working even when the arguments to…
Avi Cherry
  • 3,996
  • 1
  • 26
  • 31
6
votes
1 answer

JSPM multiple bundles, vendor and app

Bundling with JSPM is easy, here is a simple task: var exec = require('child_process').exec; gulp.task('jspmBuild', function (cb) { exec('jspm bundle-sfx src/app/app.js dist/app.min.js --skip-source-maps', function (err, stdout, stderr) { …
Dany D
  • 1,189
  • 2
  • 18
  • 44
5
votes
2 answers

Using chart.js with importmaps in rail 7

I am trying to integrate chartjs with importmaps in rails 7 but its not working I have tried with following procedure bin/importmap pin "chart.js@^3.8.0" --download here is my application.js import 'chart.js' I am getting following error…
5
votes
0 answers

What could cause a JSPM bundled module to seek to load from jspm_packages?

On a bundled production build I see a network request for: systemjs-plugin-babel@0.0.21.json from cache... on the same instance where it's unable to load fully all the way through to my app. It fails to load anything being routed from…
buddyp450
  • 528
  • 2
  • 10
  • 27
5
votes
2 answers

Unable to remove Aurelia routing's preceding hashtag

I've run into an issue that I can't seem to resolve. It should be possible to remove the preceding hashtag in routes by executing the steps provided in RouterConfiguration -> Options-> Push State. I've executed all these steps, see the code…
Bryandh
  • 539
  • 1
  • 5
  • 22
5
votes
0 answers

Unexpected value 'FileUploadModule' imported by the module 'UploaderModule' - ng2-file-upload

Using angular 2.0.1 (release) and ng2-file-upload 1.1.0 (latest version) I am getting the above error upon running this code. I am using jspm with systemjs to bundle my app (all fully up-to-date). import {Component, NgModule} from…
crowmagnumb
  • 6,621
  • 9
  • 33
  • 42
5
votes
2 answers

difference between jspm install and npm install

I'm relatively new to jspm. I wanted to know what the difference is when is run jspm install package and npm install package. I know that there is a lookup with jspm/registry. But what's the difference when it comes to setting up config.js. Are…
Sahil Jain
  • 3,649
  • 2
  • 14
  • 16
5
votes
3 answers

d3 V4.2.1 TypeScript 2.0 error importing d3-selection-multi

I am trying to import d3 v4 into a typescript project using jspm and systemjs. I can get d3 imported correctly using this import * as d3 from 'd3'; This works and it allows me to make selections etc. I tried using the attr function and passing it…
Dblock247
  • 6,167
  • 10
  • 44
  • 66
5
votes
3 answers

require bootstrap and jquery in aurelia app

I'm new to Aurelia, so I'm not really sure how this should work. I created a new Aurelia project and also installed bootstrap simply by doing jspm install bootstrap. I saw in console that this also pulled in jquery 3.0.0. Now my question is, how do…
w00
  • 26,172
  • 30
  • 101
  • 147