Skip to content

Instantly share code, notes, and snippets.

@mikeobrien
Last active September 25, 2015 21:34
Show Gist options
  • Save mikeobrien/eb72fb510347c0f02671 to your computer and use it in GitHub Desktop.
Save mikeobrien/eb72fb510347c0f02671 to your computer and use it in GitHub Desktop.
Package Scoped Bundle?
Error: ENOENT, open '/Volumes/Data/.../src/InternalWeb/app/aurelia-framework.js'
at Error (native)
var gulp = require('gulp');
var bundle = require('aurelia-bundler').bundle;
var config = {
force: true,
packagePath: 'src/InternalWeb',
bundles: {
"dist/app": {
includes: [
'[*]', // <-- Limit to the package
'*.html!text'
],
options: {
inject: true,
minify: true
}
},
"dist/aurelia": {
includes: [
'aurelia-bootstrapper',
'aurelia-http-client'
],
options: {
inject: true,
minify: true
}
},
}
};
...
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "none",
paths: {
"*": "app/*.js",
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
...
}
I have multiple sites that have their own jspm root within the same repo. Not sure if that makes a difference.
/
/node_modules
/src
/InternalWeb
/app
/dist
/jspm_packages
package.json <-- For jspm
bundle.js
config.js
package.json
{
"jspm": {
"directories": {},
"dependencies": {
"aurelia-bootstrapper": "github:aurelia/bootstrapper@^0.16.0",
"aurelia-http-client": "github:aurelia/http-client@^0.11.0",
"core-js": "npm:core-js@^1.1.3",
"text": "github:systemjs/plugin-text@^0.0.2"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment