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
116
votes
7 answers

How can moment.js be imported with typescript?

I'm trying to learn Typescript. While I don't think it's relevant, I'm using VSCode for this demo. I have a package.json that has these pieces in it: { "devDependencies": { "gulp": "^3.9.1", "jspm": "^0.16.33", "typescript": "^1.8.10" …
peinearydevelopment
  • 11,042
  • 5
  • 48
  • 76
77
votes
2 answers

Package Manager: Bower vs jspm

How is Bower different than jspm? Can Bower provide jspm functionality about SystemJS universal module loader?
Lee Chee Kiam
  • 11,450
  • 10
  • 65
  • 87
53
votes
3 answers

Angular2 + Jspm.io : reflect-metadata shim is required when using class decorators

I am having the following problem running the below versions of JSPM with Angular2 and SystemJS (Versions: Angular@2.0.0-alpha.27 with JSPM@0.16.0-beta.2 and SystemJS@0.18.0) That once the typescript is compiled (without errors) i get the following…
N.Schipper
  • 1,668
  • 3
  • 18
  • 25
51
votes
2 answers

What's the purpose of if (typeof window !== 'undefined')

What is the purpose of calling if (typeof window !== 'undefined') I saw it in JSPM plugin-css, and some other libraries.
YiFeng
  • 961
  • 2
  • 7
  • 15
33
votes
0 answers

Backbone from NPM via JSPM

I'm trying to install backbone.marionette from NPM with the JSPM for client dependency resolving. A simple operation with the following command in commandprompt: jspm install marionette=npm:backbone.marionette All dependencies - except jQuery is…
Jesper Jensen
  • 835
  • 8
  • 16
30
votes
3 answers

Installing npm packages via jspm with dependencies

I understand that I can install npm packages with jspm by running: jspm install npm: and this will allow me to use it in development (e.g. within my JS file: import myPackage from 'myPackage';). If the package.json file of the npm package…
30secondstosam
  • 4,476
  • 4
  • 28
  • 33
29
votes
1 answer

Can anyone explain what es7 reflect-metadata is all about?

Been studying ES6, JSPM & angular2 for a week now and I found this repo ES6-loader if we look at the index.html at the bottom script you'll see System.import('reflect-metadata') .then(function() { return System.import('app/index'); }) …
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
28
votes
2 answers

jspm / jQuery / TypeScript - module "jquery" has no default export

I'm trying to bootstrap a web app using TypeScript and jspm & system.js for module loading. I'm not getting very far. After installing jspm, and using it to install jQuery: jspm install jquery And the basics:
user888734
  • 3,797
  • 5
  • 36
  • 67
27
votes
4 answers

How to bundle Angular 2 Typescript app using Gulp and SystemJS?

I'm using Typescript with SystemJS for module loading and Gulp for task runner in my Angular 2 project. The current version of Angular in the project is RC2 but the problem is present also with RC1. I followed the steps of brando's answer…
Nikola Nikolov
  • 1,310
  • 2
  • 10
  • 20
22
votes
1 answer

jspm saying "github rate limit reached" - how to fix?

When I run jspm install to install JS dependencies in my Aurelia project, jspm says Github rate limit reached How to fix?
nitech
  • 1,822
  • 3
  • 21
  • 35
20
votes
2 answers

Importing RxJS 6 in browser?

Now that all modern browser support javascript modules, I'm trying out importing code right in the browser. We can get npm modules from unpkg.com, and I've found the jspm project, which wraps npm modules into a format that can be consumed by the…
nicholas
  • 14,184
  • 22
  • 82
  • 138
19
votes
1 answer

ES6 imports - what does the exclamation mark mean?

I'm following along with the Choose ES6 Modules Today guide, and I noticed one of the import statements he's using has an exclamation mark at the end: import 'bootstrap/css/bootstrap.css!'; What does that exclamation mark signify? This import…
Lukas S.
  • 5,698
  • 5
  • 35
  • 50
16
votes
2 answers

How to update the JSPM modules to the latest version?

Does the command jspm install . update the packages to the latest version?
wonderful world
  • 10,969
  • 20
  • 97
  • 194
14
votes
1 answer

How to use minified third party Javascript files using JSPM

My application is using JSPM and SystemJS for module loading and is using angular. My config.js file has angular map like: "angular": "github:angular/bower-angular@1.5.8" So when I do import angular from 'angular', I am getting the angular.js file…
mukund
  • 2,866
  • 5
  • 31
  • 41
14
votes
1 answer

jspm or npm to install packages?

I'm new to jspm, transitioning from npm-only. I have one fundamental question. I have some dependencies in the package.json, and I runned jspm init, which created a nice jspm config.js file. My question is, what it the point of installing these…
jeanpaul62
  • 9,451
  • 13
  • 54
  • 94
1
2 3
36 37