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

How to shim a Bootstrap Plugin installed with jspm / system.js needing global jQuery

I have a ES6 Setup working with jspm and system.js with a additonal registered endpoint for bower. I need that endpoint due to the fact that installing Boostrap via npm or github does not provide the necessary less files for Bootstrap…
4
votes
1 answer

jspm does not transpile code from ES6 to ES5

Running jspm bundle-sfx some/input some/output.js does not transpile my code from ES6 to ES5. This makes the output file unusable. Example contents of input file: [1,2,3,4].map((i)=>i*i);
Konrad Dzwinel
  • 36,825
  • 12
  • 98
  • 105
4
votes
0 answers

Bundling reactjs app with JSPM results in very large file

I'm trying to bundle a simple reactjs app using JSPM's built-in bundling API but it results to a very large file. Here's my sample code: import React from 'react'; class Main extends React.Component { render() { return
Hello…
oragorn
  • 181
  • 1
  • 7
4
votes
1 answer

How do I shim a non CommonJS, non AMD package which depends on global jQuery & lodash?

I am using jspm for the first time and already ran into a snag. I need to figure out how to "shim" a proprietary script which lives on our company's private npm registry. Package: widget Resides on private npm registry Is not a CommonJS, UMD/AMD…
jessegavin
  • 74,067
  • 28
  • 136
  • 164
4
votes
2 answers

Running executable after installing via JSPM

I'm trying to understand how executables can be run after installing a module using the JSPM. For instance if I run jspm install gulp, then I would expect to be able to run the following…
4
votes
0 answers

Publish Polymer component without Bower

I would like to build and publish a component for use with Polymer. While I have read the official article on how to publish components with Bower, I would rather like to distribute my component via GitHub/NPM. I expect the component to get…
user2422960
  • 1,476
  • 6
  • 16
  • 28
3
votes
0 answers

gulp_jspm Domain property building project using gulp

I am getting this error when I try build my project using gulp. It is getting trigger with this logic gulp_jspm. Is there something else I should use to create my bundle files? Do I use this gulp-jspm-builder? [11:18:42] Starting…
Jefferson
  • 173
  • 2
  • 12
  • 32
3
votes
0 answers

SystemJs and jasmine spyOn error "Module Exports Cannot Be Changed Externally"

I was using webpack+aurelia for a project and recently switch to JSPM version 0.16.52. I use jasmine's spyOn for utility or factory functions that are imported into my classes. However tests that have spyOn(object, 'method') have this error: "Module…
jmzagorski
  • 1,135
  • 18
  • 42
3
votes
1 answer

Issues with ES6 import [SystemJS 0.20.9 + TypeScript + Angular 2 + jspm 0.17.0-beta.40]

I am trying to set up Angular 2 application with all the new tools (jspm 0.17.0-beta.40). I am transpiling to System module. Here's the tsconfig.json: { "compileOnSave": false, "compilerOptions": { "target": "ES5", "module":…
Dimdum
  • 322
  • 2
  • 15
3
votes
0 answers

Does app.UseStaticFiles copy files on every request in ASP.NET Core?

I am using ASP.NET Core, with Kestrel for a project and it runs fine. But I have a situation where I want to make the jspm_packages folder available to the application at runtime, but it's in a directory above my wwwroot directory. Searching around,…
Ciel
  • 4,290
  • 8
  • 51
  • 110
3
votes
0 answers

IntelliJ - Typescript paths setup

I am using JSPM to develop a frontend application. My code is written in typescript (which is magically transpiled, at runtime for dev and when bundling for production). We chose angularJS as frontend framework which was autmatically setup in…
Heyjojo
  • 465
  • 1
  • 4
  • 11
3
votes
1 answer

[web-server]: 404: /@angular/core/testing, systemjs, karma, angular2, jspm

I'm using systemjs, karma, angular2 and jspm. The project is running fine. It's when I run the tests I get issues. It's saying that it can't find the core testing library. I'm not sure where to change this configuration. any help is…
Jimi
  • 1,867
  • 7
  • 31
  • 55
3
votes
2 answers

Build:Cannot find module 'aurelia-http-client'

I have done the following: ran jspm install aurelia-http-client set up gulp to package my framework JavaScript. ran gulp bundle checked the resulting file, and it now contains aurelia-http-client and the correct version number. I have ReSharper…
Bjørn
  • 1,138
  • 2
  • 16
  • 47
3
votes
2 answers

EPERM error installing ReactFire in jspm

I'm trying to install ReactFire with jspm. The command I use is: jspm install npm:reactfire It installs a bunch of dependencies, then gives this error: warn Error on build Error: EPERM: operation not permitted, open…
aldel
  • 6,489
  • 1
  • 27
  • 32
3
votes
0 answers

Aurelia: issue configuring bundled asset paths

I'm starting to build a front-end in Aurelia that is integrated into a Clojure project. I checked out some example projects and while I did find them useful for an overview, I've noticed that a lot of the out-of-the-box configurations assume the…
jszpila
  • 676
  • 9
  • 24