zewa666 / generator-aurelia

Yeoman generator for the JavaScript Framework Aurelia
77 stars 18 forks source link

dist/aurelia.js not found when executes gulp watch. #22

Closed emaung closed 8 years ago

emaung commented 8 years ago

Hi,

I am having an error saying 404 not found for dist/aurelia.js when I run "gulp watch"

Currently, it works only if I add a "bundle" task to "build" one as dependency. Am I missing something or is it supposed to be like that?

Cheers, Tin

zewa666 commented 8 years ago

to be honest I haven't looked into the bundled scenario at all, since most of the times this is used only for production sites without the need for browsersync etc. I'm pretty sure the skeleton navs tasks have been updated to provide support for that, if you have time you could look it up and create a PR for the generator so we get the feature in here as well.

eskalera commented 8 years ago

Same issue here. @tinhtooaung, how did you add it as a dependency? I tried

gulp.task('build', ['bundle'], ....

but still getting an Error: ENOENT: no such file or directory.

emaung commented 8 years ago

HI @eskalera Here is what I got

gulp.task('build', function(callback) { return runSequence( 'clean', ['build-system', 'build-html', 'build-css', 'bundle'], callback ); });

eskalera commented 8 years ago

Thanks @tinhtooaung. It works now.