Tag: systemjs jspm

JSPM – jspm安装提供错误“未findregistry”

最近我开始玩aurelia框架,到目前为止这么好,但是当我编辑config.js添加一些我通过jspm安装的文件没有错误,但是当我克隆到另一台机器,运行jspm安装失败,导致它不像我有我的config.js中npm和github以外的其他path Configjs paths: { "*": "dist/*", "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*", "lib:*": "lib/*", "styles:*": "styles/*" }, map: { "app-styles": "styles:app-styles", "uisearch": "lib:uisearch/uisearch@1.0.0", "component": "lib:component/component", "classie": "lib:classie/classie@2.0.0", "material": "lib:material/material", "ripples": "lib:ripples/ripples", "bootstrap-select": "lib:bootstrap-select/bootstrap-select@1.7.2" other deps… } 错误信息 找不到registrylib。 err无法加载registry库 警告安装更改未保存。 请帮助新来这:)

System.js builder.buildStatic只是输出文件名

我刚刚简化了源文件到下面,当我在脚本标记中使用System.import时,它工作正常。 import angular from "angular"; angular.element(document).ready(function () { alert('Hello word');; }); 以下是我的config.js System.config({ baseURL: "/", defaultJSExtensions: true, transpiler: "typescript", paths: { "npm:": "jspm_packages/npm/" }, map: { "angular": "npm:angular@1.5.2", "typescript": "npm:typescript@1.8.9" } }); 我有一个吞咽任务来build立它: gulp.task('bundle:js', ['clean:js'], function () { var builder = new Builder(); builder.loadConfig('./config.js').then(function () { var destination = paths.coreJsDest; builder.buildStatic(paths.srcRoot + 'js/ng/homepage', destination, { […]