Skip to content
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

Precompile on file changes #15

Closed
simpleshadow opened this issue Jun 16, 2013 · 5 comments
Closed

Precompile on file changes #15

simpleshadow opened this issue Jun 16, 2013 · 5 comments

Comments

@simpleshadow
Copy link

As a developer, it's cumbersome to constantly open the terminal and call ember-precompile while building templates. I want ember-precompile to have a watch feature to detect file changes of a specific directory or file and precompile the output to a specified directory.

This functionality can be found in the node module Fuse (https://github.com/smebberson/fuse#on-the-command-line).

@gabrielgrant
Copy link
Owner

I agree that this is a useful feature, but I'm not sure that it belongs inside ember-precompile itself: I think it may be better to rely on external tools. Personally, I use PRO with ember-precompile all the time (the example in the README actually contains a line for handlebars)

Do you think maybe just adding a pointer into the ember-precompile README could work?

@simpleshadow
Copy link
Author

I just submitted a pull request that adds this support.

It's fairly unforgiving if your template has a syntax error; I should add better error handling in the future.

@Blackshawk
Copy link
Contributor

I agree with @gabrielgrant that watch functionality doesn't belong here. It seems useful at first glance but there are a plethora of existing solutions for this that can easily integrate.

@simpleshadow
Copy link
Author

Fair enough. Several other node-based CLI tools I've used have this feature. Thought I'd add it here too since it wasn't much effort.

@Blackshawk
Copy link
Contributor

I understand - maybe its just me but I feel like node tools in general don't put enough effort into depending on each to handle common tasks (like watching). This is something that other ecosystems like Ruby, Python, and PHP have done very well - I would like to see JS tools achieve the same level of inter-support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants