-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] 'watch' option for the 'build' task #265
Comments
It's a recuring theme here.
and in
with:
Actually, you don't event have to know |
Thank you for your detailed answer. |
This implementation has a problem if you try to run a quick fix will be to set a different flag for watch in build. |
You'r right, but better fix will be to add In
and in
|
I was also looking for this feature for similar reasons (custom host/serve process used during development) when I stumbled upon this issue and #240. While it's possible to use "au run" as a workaround, or modify the build task like @zamotany suggests, I second adding this as a built-in feature to the cli. It's not uncommon to have this scenario, in particular in enterprise environments where apps have to fit in existing infrastructure. And there's really no reason to force every developer looking for this feature to implement it themselves when it's seemingly easy to provide out of the box. Other than that, great work on the cli; it makes development much more comfortable - thanks for that! |
@avrahamcool, could you do me a favor and add "[Feature Request]" to the beginning of this issue? It would help with organizing the issues for us :) |
For several issues that I encounter using @zamotany code, I replaced some of imports with this
|
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
The improved --watch flag causes fewer crashes, performs better and is now also available on the build command. Closes aurelia#293 and aurelia#265.
I'm submitting a feature request
It will be helpfull if we could use
watch
also in thebuild
command. (currently available only forrun
)Library Version:
v0.17.0
Operating System:
Windows 10
Node Version:
v4.4.7
NPM Version:
3.8.9
Browser:
all
Language:
all
Current behavior:
we can't use the
watch
option in the build command.so changes in the code don't reflect back to the app.
Expected/desired behavior:
allow the
watch
option also for thebuild
command, thus allowing the developer to choose how to serve his app, while gaining the benefits of synchronization between the code and the app.the
watch
should behave just like it does in therun
command. (listen to changes in the code, and rebundle the affected files).[the developer will need to manualy refresh the app in the browser to see the changes, because
browserSync
will not be active]the motivation behind this request is that we already have a server who takes care of serving the app. this server also server a webApi on the same address as the web project.
so we need to be able to build our code in such a way that let us choose our own methode of serving the app, while actively listening to the changes in the code.
FYI:
as a workaround, we are currently using
run --watch
, so the app is served by theaurelia-cli
withwatch
on his default port, and then we also serve the same app with our server on our port.but we really could use an option to
build
withwatch
withoutserve
.The text was updated successfully, but these errors were encountered: