Sorry, didn't receive any notification!
So, you need to push some gitignored files? Looks like git-ftp isn't meant to do that indeed. I guess you'd have to use one tool to push modified git-aware files (git-ftp), and another to dumbly push dist files (lftp)...
lftp is a simple FTP command, so I guess you can do whatever you need. There's a
--exclude flag (you can call it multiples times). I'm not an expert so you should take a look here: https://www.cyberciti.biz/faq/lftp-command-mirror-x-exclude-files-sub-directory-syntax/
I know what you mean, Sage 9 is a big step, especially the Webpack part. I also spent a lot of time to get it fit in my workflow. That being said, since Sage 8 is generating
dist files while watching, my workflow was simply to commit them. Not really following the best practices, but much simpler. This way you could just use git-ftp. If you do that, I recommend editing
gulpFile.js and removing all the minifying stuff, like CSSnano:
- this should be done with PHP (eg. W3 Total Cache) IMO,
- it's way faster to compile at each save,
- and the output files are more readable, so you can easily debug them or stage chunk of them.