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

force jspm to install newest version

I'm trying to update all my jspm dependencies to the newest version, the only "solution" I found is "jspm update", but this only installs the version, which is defined in the package.json Isn't there anyway to automatically update the packages to…
Ced
  • 1,301
  • 11
  • 30
0
votes
1 answer

How to handle an error raised by gulp-jspm?

How would one add a .on listener that would stop gulp from crashing and simply try again next time it detects a file reload? This is what I have tried currently 'use strict'; const gulp = require('gulp'); const jspm =…
Edward-Lombe
  • 57
  • 1
  • 4
0
votes
1 answer

jspm install on heroku server

I'v just deployed my app to Heroku but when I run it in a browser the network tells me it cannot find the system.js file which lives in jspm_packages/system.js The app works fine locally so I presume heroku is not installing jspm? Do I need to add…
conor909
  • 1,475
  • 14
  • 29
0
votes
1 answer

How to install bootstrap datepicker with JSPM

Today I wanted to install https://github.com/eternicode/bootstrap-datepicker with jspm for my Aurelia project. So I did this jspm install -y npm:bootstrap-datepicker It didn't report any errors back, however the result was only a single .js file,…
Dac0d3r
  • 2,176
  • 6
  • 40
  • 76
0
votes
1 answer

What is SystemJS config.js map?

Using jspm 0.16.13, I've noticed that in addition to mapping "a module alias to a location or package" config.js map also seems to be defining a module's dependencies. For example, see the snippet below. However, in this particular example, at least…
U Avalos
  • 6,538
  • 7
  • 48
  • 81
0
votes
1 answer

Calling jspm minification from Gulp using gulp-jspm

I am working on a project which uses gulp to call jspm to minify all javascript files. Gulp task supposed to be run is gulp.task('jspm_minify', function () { gulp.src('./app/spa/app.js') .pipe(gulp_jspm ()) …
Jeyara
  • 2,198
  • 1
  • 23
  • 26
0
votes
1 answer

Bundling underscore with jspm

I have a module that requires underscore: import _ from "underscore" var numbers = [1, 4, 6, 7, 9, 3, 22, 11, 54, 99, 100]; var evens = _.filter(numbers, x => x % 2 === 0); document.getElementById('output').innerText = evens; This works fine in…
M Falanga
  • 1,897
  • 17
  • 21
0
votes
2 answers

jest testing with es6 + jspm + systemjs + reactJS

I'm trying to figure out how to make my unit tests in my reactJS ES6 application. My application is already using es6 module system, transpiled with jspm/babel to systemJs. I found babel-jest as preprocessor but even with it, I can't run my tests…
nemenos
  • 877
  • 1
  • 10
  • 23
0
votes
0 answers

Facebook SDK api calling issue when using with Jspm.io

I am trying to use Jspm.io and Facebook SDK in my code. Here is how my index.html file looks like. When i try to call FB.api('/me') in main.js file, nothing happens.. I am able to call FB.getLoginStatus() though but there is no response or callback…
0
votes
1 answer

jspm install npm:fb cannot find crypto

I use jspm to intall npm:fb, and use in my js, but I get GET /jspm_packages/npm/crypto@0.0.3.js 404 my step: jspm init jspm install npm:fb Should I add something to fix it? My index.html
Asoul
  • 996
  • 1
  • 10
  • 22
0
votes
1 answer

jspm/ES6 compile error, packages location incorrect

I'm having a difficult time getting the jspm_packages to work correctly in my jspm configuration in my packages.json. I'm writing an app in EM6 (babel engine). I have a gulp file that places my ES6 javascript to a folder called…
Connor Black
  • 6,921
  • 12
  • 39
  • 70
0
votes
1 answer

React, Material UI, JSPM and Babel : Error: Can't add property context, object is not extensible

I am trying to setup Material UI for React, using JSPM and ES6 through Babel. 1) installed material-ui with jspm install material-ui=npm:material-ui 2) this gave me the ability to import material ui into my React Component files like this : import…
Cosmin
  • 2,082
  • 3
  • 20
  • 24
0
votes
1 answer

Updating registry cache message during jspm package installation

When I run jspm install Aurelia-framework at the command prompt, I see a message Updating Registry Cache.... Is the jspm updating the Windows Operating System registry or package.json file in the project or something else?
wonderful world
  • 10,969
  • 20
  • 97
  • 194
0
votes
1 answer

jspm + KarmaJS - exclude files from watch but not from serve

I can't figure out how to make karma to not watch for changes in folder jspm_packages/. If I try to add 'jspm_packages' into exclude section then I get following errors: DEBUG [web-server]: serving (cached):…
0
votes
1 answer

Bundling an Angular2 app using JSPM

I am trying to create a bundle for an Angular2 app. Here is my jspm config file: https://gist.github.com/ivanbatic/fa4f2d76b44e0204f21d When I start the app, although it starts 390 HTTP requests in order to render the "Hello World" string, it works.…
Ivan Batić
  • 476
  • 2
  • 8