-
Notifications
You must be signed in to change notification settings - Fork 863
Question: Automate naming and packaging #1223
Comments
@breath-ee , check this: #919 |
@esarantanen, that is exactly what I was asking about! I'll check it out and see if it is still working. Thanks. |
The FoundationPress Generator still works. It managed to pull from the latest git and change the majority of the references to FoundationPress, leaving credits where they are due! I still think for those doing full git pulls and having the config.yml do what the generator does would be better. Although I don't know if this is outside the scope of gulp and yaml! |
@knightknight it sounds like something that could be done with a gulp task and a search and replace plugin. No need for a WordPress plugin then. |
this is implemented in the croft theme
https://github.com/brettsmason/croft/blob/7ccca0ca18a0614f8ae24d08c9f40fa2df91a975/gulpfile.js#L148 |
@MrAndreius looks like they use |
Closing in favor of #1224 |
I'm not familiar with gulp to know how to change the code or if my idea is even worth changing! From my understanding is FoundationPress is a set of starter files, like underscores for WordPress. So I can take FoundationPress and rename it to my shiny new theme name.
However http://underscores.me/ has a generate page that will go through, theme name, slug, author, author uri, description and generate your parent starter theme zip package. I think it even rename the functions to your theme name as well. So is there a way of replicating this setup for FoundationPress for those who want use the starter files but under a different theme name?
Otherwise once I have
git clone [...] my-new-theme
, I then need to manually update styles.css and package.json with the new theme name. So given npm generates everything else could using the config.yml to automatically populate style.css details and change the package.json 'name' so when younpm run package
you will get your new zipped theme named and generated. Rather then be left with the defaultfoundationpress-[date].zip
and if you have remebered to change the styles.css file.I'm think this is more useful when you have finally finished developing you're parent theme and want to use versions numbers for updates after each
npm run package
.. I'm not totally sure if my thinking is even correct and I'm sure something like this has come up before, although I couldn't find reference to it. But FP with npm and gulp does such a good job of automating everything else apart from dealing with with those wanting use FoundationPress as SomethingElsePress.The text was updated successfully, but these errors were encountered: