Open aurooba opened 2 years ago
@aurooba Thanks, this has been on my mind but I haven't decided how I want to handle it yet. I appreciate the sample script!
I've got another repo for a potential Node package that would pull the scaffold and handle the search and replace, since it's just a one-time setup kind of thing. But it would also be useful to handle creating the .env
file for local dev to set the local domain.
Yes! A node package has been on my list forever. The gulp thing was always meant to be a stand-in.
I always thought it would be cool if the node package could pull in a scaffold of your choice with variables/replace-tokens defined and then the package could handle the search replace and stuff for you. I have about 3 scaffolds right now that I use based on the project complexity and type.
On Wed, Feb 16, 2022 at 4:41 PM Cory Hughart @.***> wrote:
@aurooba https://github.com/aurooba Thanks, this has been on my mind but I haven't decided how I want to handle it yet. I appreciate the sample script!
I've got another repo for a potential Node package that would pull the scaffold and handle the search and replace, since it's just a one-time setup kind of thing. But it would also be useful to handle creating the .env file for local dev to set the local domain.
— Reply to this email directly, view it on GitHub https://github.com/BlackbirdDigital/wp-theme-scaffold/issues/25#issuecomment-1042414810, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABU2XTABWHLTJW55GX3DMYDU3QYZRANCNFSM5OTBW7KQ . You are receiving this because you were mentioned.Message ID: @.***>
-- Cheers,
Aurooba Ahmed (she/her) https://aurooba.com
Office Hours: Monday to Thursday, 10am – 4pm Mountain Time
In my own scaffold, I have this thing in my gulpfile, to save myself from the search/replace life. You might find it helpful :) It uses
gulp-prompt
andgulp-replace
, and keyed to agulp setup
command. It's a bit old and needs cleanup and refining, but it works really well and is so quick.