next-drupal
next-drupal copied to clipboard
feat(Local recipe starters): Create Repeatable Local Environment enhancement
This pull request is for: (mark with an "x")
- [ ]
examples/* - [ ]
modules/next - [ ]
packages/next-drupal - [x]
starters/basic-starter - [ ]
starters/graphql-starter(not yet) - [x]
starters/pages-starter - [ ] Other
GitHub Issue: https://github.com/chapter-three/next-drupal/issues/834
Describe your changes
I have pigybacked on https://github.com/chapter-three/next-drupal/tree/local-recipe to use the script based approach to setup ddev locally both for backend and frontend.
The idea here would be to spin up (and down) easily starterkits to improve contirbutions to the project and make it easier also to eventually run some end2end tests (this could easily be added to some CI like github actions to spinup ddev and run tests against)
Happy to get feedback here, or for someone else to use this and make it better..or drop it completely. this also helped me just understand the solution better (you can only get so far just by reading the code:P )
ddev init :
Spins up a new folder local-next-drupal and in it will use the ddev config which will spin up drupal and the frontend. The frontend will run using pm2
The script receives the starter and spins up the right starter accordingly (in it could also copy specific modules / recipes and enable them)
ddev destroy :
stops ddev and removes the folder