Hello I watched your screencast and it is very helpful! But I still have some questions.
What ist the difference between the gulp and the gulp --production
When I upload my theme – what are the necessary files? As far as i understood the /dist/ folder ist for distribution – does this imply that the assets folder is just for my developing setup? What about the /bower_components/ and the /node_modules/?
embedding custom scripts with conditional tags is working fine! But is it possible that the gulp watch command is not “watching” or updating those custom scripts? I had the impression that it started to take effect after running the gulp command.
The dist/ folder is what you need to upload. Do not upload node_modules or bower_components. Those combined with the assets folder are used to build the dist/ folder. The dist/ folder can be treated like a binary.
So basically upload everything but bower_components/ and node_modules/ – if i get this right?! Thats what i thought.
I’m sorry that am being a little slow on that, but i still don’t understand the difference for the --production flag. When am i suppose to use it?
Regarding the custom scripts i was talking about scripts that i inserted in the manifest.json file and enqueue them in the assets.php (as shown in the screencast by benworld). They seem to be only compiled and updated to the /dist/ folder when i use the gulp not the gulp watch command. I was wondering if i could automate this as well.