jspm

jspm install can't download packages from npm and github due to proxy settings

偶尔善良 提交于 2019-12-14 03:00:29
问题 I am trying to run simple angular 2 unit test application. I have cloned below git and following steps given in readme file. https://github.com/matthewharwood/Hit-the-gym I have setup proxy setting for npm and disabled strict-ssl setting for git. I have also exported environment variable for http_proxy and https_proxy. When I run below command npm install it throws error for "jspm install" command as below: C:\angularjs20\unit-test1\Hit-the-gym>npm install npm WARN package.json @ No

Aurelia JSPM install -y not working on window

时光总嘲笑我的痴心妄想 提交于 2019-12-13 07:15:29
问题 I am doing the aurelia tutorial http://aurelia.io/get-started.html Im trying to install aurelia dependencies using gulp and jspm. I runned "jspm install -y" with no problem. And when I go to the browser and open the console i have this error: localhost/:5 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation-app/jspm_packages/npm/font-awesome@4.2.0/css/font-awesome.min.css 404 (Not Found) es6-module-loader.src.js:2563 GET http://localhost/proyectos/fabho/Aurelia/firstApp/navigation

How to import 'bootstrap-datetimepicker' into Aurelia project

落花浮王杯 提交于 2019-12-13 04:27:16
问题 I'm trying to add 'Eonasdan/bootstrap-datetimepicker' into an Aurelia with typescript project and call this.birthDateDatePicker.datetimepicker(); in the "attached" method from the Aurelia life-cycle. I added: import $ from 'jquery'; import {datepicker} from 'Eonasdan/bootstrap-datetimepicker'; and there was no error, but when I try to inject like this @inject(HttpClient, json, datepicker) I get the following error: GET http://127.0.0.1:8080/jquery.js 404 (Not Found) I'm not sure the two

Setup AngularJS 2 Project using `jspm`

落花浮王杯 提交于 2019-12-12 05:13:40
问题 I'm trying to setup AngularJS 2 project using jspm , firstly I had tried to setup by following instruction on the angular.io, it's working just fine So I'm trying to setup another same project but using jspm I'm having error about " ZoneSpec required ", I had tried to google but I have found nothing so far, so please guide me what to do angular.io Version app/index.ts import { bootstrap } from 'angular2/platform/browser'; import { AppComponent } from './components/App'; bootstrap(AppComponent

Develop NPM Package with TypeScript for JSPM Application

为君一笑 提交于 2019-12-12 03:45:26
问题 Basically, I have the same question as asked here: I have developed a NPM Package (typed-lexer) that properly ships its d.ts file (with corresponding entries in the package.json file). Consuming the package in a plain node js app via npm install and tsc --init works fine - both the IDE (in my case Visual Studio Code) and the compiler are able to locate my typed-lexer's type definition file. However, it works everything else than fine when I install my package via jspm. As the d.ts file is an

Angular 2 + Karma + karma-jspm + karma-coverage + typescript report phantomJS failure

旧城冷巷雨未停 提交于 2019-12-11 14:02:17
问题 I've been fighting the last few days with getting coverage reports working and I've hit an issue I haven't been able to resolve. The stack trace I'm receiving, with a couple of lines of surrounding debug code, is 15 07 2016 14:41:53.413:DEBUG [middleware:source-files]: Requesting /jspm_packages/npm/process@0.11.5/browser.js / 15 07 2016 14:41:53.413:DEBUG [middleware:source-files]: Fetching /jspm_packages/npm/process@0.11.5/browser.js 15 07 2016 14:41:53.415:DEBUG [proxy]: proxying request -

Error installing an npm library with jspm

时光怂恿深爱的人放手 提交于 2019-12-11 10:00:04
问题 I'm trying to install react-bootstrap-datetimepicker with jspm and I'm getting this error: $ jspm install npm:react-bootstrap-datetimepicker Password: Looking up npm:react-bootstrap-datetimepicker Updating registry cache... Downloading npm:react-bootstrap-datetimepicker@0.0.21 Looking up npm:babel-runtime Looking up npm:classnames Looking up npm:moment Looking up npm:react-bootstrap Looking up npm:react Downloading npm:classnames@2.1.5 Downloading npm:react-bootstrap@0.16.1 Downloading npm

JSPM - Are there any advantages/disadvantages in including client side library files using import vs using the script tag?

眉间皱痕 提交于 2019-12-10 23:23:50
问题 I'm starting to use JSPM in my Aurelia web projects and I want to know if there are any consequences or advantages in using the import "<client side library>" ? I've seen code like so for client side libraries inside JS classes : import "jquery"; import "bootstrap/css/bootstrap.css!" import "bootstrap"; export class App { constructor { } } Question: What is the difference/advantages/disadvantages between importing it this way as oppose to the traditional include of <script> and <link> tags in

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

守給你的承諾、 提交于 2019-12-10 18:36:33
问题 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": "System", "moduleResolution": "Node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "noImplicitAny": true, "rootDir": "../" } } The issue is with ES6 import . After something like this is transpiled: import { Component, ViewEncapsulation, AfterViewInit }

After bundling my aurelia app I get a: No PLATFORM.Loader error

前提是你 提交于 2019-12-10 17:14:44
问题 After bundling a simple aurelia application with jspm bundle-sfx I get the following error: No PLATFORM.Loader is defined and there is neither a System API (ES6) or a Require API (AMD) globally available to load your app. An example application: https://github.com/Baudin999/jspm-bundling-test You can use: npm run setup:dev in a non windows env to switch back to the dev settings (which is just a comment/uncomment in the ./src/client/index.html) and you can use npm run setup:prod to switch back