Wow Grunt is powerful!
Just made a small CSS fix to my theme. Ran
grunt build and it:
- formatted all my code to WordPress standards
- added correct text domain to all
- generated POT file
- compressed all images
- generated .css files from .less (with map file for chrome live editing)
style.cssheader with current theme details and updated version number
- looped through all my custom
theme-plugins/*, formatted code, text domain, POT, plugin headers, then zipped up each plugin into a theme
plugins/folder ready for TGM activation
- set the TGM plugin activation array based on settings in a
- saved the change log to the
theme.jsonfile for later parsing (documentation / description)
- built the updated documentation from a mustache template (with new version number and change log) and pushed to gh-pages hosting
- built the updated item description from a mustache template (with new version number and change log) and saved to HTML file ready for manual item submission.
- zipped up final WordPress theme into a
- zipped up final WordPress theme, photoshop files, documentation and other resources into a
- added a “Version xyz - Date” overlay to the item graphic
- zipped up new screenshots including the updated item graphic with version number
- uploaded all these zip files to Envato FTP
- notifies me when upload is complete so I can login, paste the updated item description, select the zip files and submit for approval.
- sends the whole thing to github
Go learn grunt. Automation can be very powerful.