So I am working through my first aurelia-bundler gulp task. I was following the article here except I declared my file as a gulpfile.js instead of the bundler.js that seems to be setup in his solution (I doubt that will matter). Regardless, when I run gulp bundle I get the following error:
C:\dev\Movies\src\Movies>gulp bundle
[21:13:34] Using gulpfile C:\dev\Movies\src\Movies\gulpfile.js
[21:13:34] Starting 'bundle'...
[21:13:36] 'bundle' errored after 1.68 s
[21:13:36] Error on fetch for aurelia-router.js at file:///C:/dev/Movies/src/Movies/wwwroot/aurelia-router.js
Loading movies/edit.js
Error: ENOENT: no such file or directory, open 'C:\dev\Movies\src\Movies
\wwwroot\aurelia-router.js'
at Error (native)
I am not sure why this would be looking in that location since these libraries are all under the jspm_packages folder. My gulp file is setup as follows:
var gulp = require('gulp');
var bundler = require('aurelia-bundler');
var config = {
force: true,
packagePath: '.',
bundles: {
"wwwroot/appbundle":{
includes:[
'app', 'main', 'about/**', 'movies/**', 'resources/**',
'aurelia-bootstrapper',
'aurelia-framework',
'aurelia-router',
'aurelia-http-client',
'aurelia-validation'
],
options:{
inject: true
}
}
}
};
gulp.task('bundle', function () {
return bundler.bundle(config);
});
gulp.task('unbundle', function () {
return bundler.unbundle(config);
});
Any thoughts why this is happening, I even removed all the aurelia libraries from the config and I still get the aurelia-router.js error?!?