Last active
September 25, 2015 21:34
-
-
Save mikeobrien/eb72fb510347c0f02671 to your computer and use it in GitHub Desktop.
Package Scoped Bundle?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: ENOENT, open '/Volumes/Data/.../src/InternalWeb/app/aurelia-framework.js' | |
at Error (native) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
}, | |
} | |
}; | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.config({ | |
baseURL: "/", | |
defaultJSExtensions: true, | |
transpiler: "none", | |
paths: { | |
"*": "app/*.js", | |
"github:*": "jspm_packages/github/*", | |
"npm:*": "jspm_packages/npm/*" | |
}, | |
... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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