ahmadawais / WPGulp

An advanced Gulp workflow for WordPress development with extensive documentation. Used by 40,000+ themes and plugins.
https://twitter.com/MrAhmadAwais/
MIT License
1.77k stars 303 forks source link

Add a build/deploy functionality #188

Closed jamieschmid closed 3 years ago

jamieschmid commented 4 years ago

Is your feature request related to a problem? Please describe. After developing, you need to remove a lot of files, and zip the folder in order to upload to WP if you are doing a manual process. This means removing sass folder, any compiler files, node_modules, maybe a docs folder etc. A way to deploy a production build within a new directory would complete this tool I believe!

Describe the solution you'd like

There's some existing PR's for this you can review also-

Deploy script generates zip file PR: https://github.com/ahmadawais/WPGulp/pull/143

PR using gulp-if and gulp-clean to run a deploy https://github.com/ahmadawais/WPGulp/pull/135

ahmadawais commented 4 years ago

I'm looking into this as a solution that does the following:

Is that it?

ahmadawais commented 3 years ago

Finally got some time to do this:

New configurable zip settings https://github.com/ahmadawais/WPGulp/blob/master/WPGulp/wpgulp.config.js#L79-L110

V3 Release notes: https://github.com/ahmadawais/WPGulp/releases/tag/3.0.0

Major refactor and also updated the demo WPGulpTheme

Please test it and enjoy the v3 release.

lopezs commented 3 years ago

Hi @ahmadawais thank you for your work on this, but I'm not sure how to run a task to do it.

I don't see anywhere in the source code where zip related settings are actually referenced.