Open sruloart opened 9 years ago
What I'm going to add in the next version will be:
could it works in this way or I missed something?
I've added the other request around openfl update
in the backlog
First of all, Great! :) maybe .txt as well?
when live reload folder is specified I'm going to exclude from the watching directories so it will be "watched" only by the live reload server
I don't really understand what that line means :) but if it means you can specify which folders (any folders in the project directory) you want to watch / exclude from watching (in the hx-watch.json config file) then the answer is a big YES. And that's a lot better idea than mine.
The project.xml is still out of reach though, no? unless the "root" folder is also available to be watched. Maybe you can specify specific files to be watched? but that's pretty complicated, with the files paths and all.
Currently I'm excluding the following folders from the watcher:
Plus, if specified, the livereload path specified in the configuration file or via command line
Added all the extensions requested, please check the new version 1.3.0 :+1:
Might take me some time to try all, tomorrow then :)
No rush! Take your time :-)
export
folder, including all the files extensions currently supported for changes,I think the default OpenFL's jsons on the website should have no src folder specified (so the user would have his Assets
folder being watched by default). Also, it would be useful for the user to know about all of the non-watchable folders you've specified above.
Can I request more extensions to be supported? now that it's working I can see some missing:
Assets
folder: watching the 'Assets' folder for changes in .xml/.json/.png files (i.e. files that can be used as assets in an OpenFL project, also .ogg/.wav/.mp3/.m4a for SFX, .ttf, .otf for fonts and so on would be a nice addition :D) is much more useful than watching these on theExport
folder since you don't ever work on the exported assets, you work on the assets in your Assets folder.openfl update
). Maybe some users would prefer to rebuild their project instead, so this can be an option.Sorry, it turned out a lot longer than intended :)