Varbase Sub Profile Generator
Last updated
Last updated
Having a generator tool helper. Which helps in extending Varbase profile using the sub profile method.
Example: Let consider that the /var/www/html/products
directory was the default products workspace directory.
Open a terminal window
Create the directory if it was not created yet
Change directory to the coding workspace directory
Clone the Varbase Subprofile generator
Change directory to the varbase-subprofile-generator directory
Set the version of the generator
Example: In case of wanting to generate a sub profile of Varbase 9.0.x run the following commands:
Change the dev_version to mach with the target dev_branch name and alias.
Run the generate command.
In a case of creating a Varbase sub profile named "cv". Run the following commands in the local terminal:
The following directories will be created for the new sub profile.
Saving the code in a repository is important. To let Composer build the project or manage the workflow of updates over code and config changes.
Have a development working directory to work on changing on generated sub profile.
To install the development version of CV 3.0.x run this command:
Commits changes over the code or configs to the cv and cv-project to the public repositories.
That will reflect on composer create-project
, composer install
or composer update
.
Make sure that changes are updated in github.com site.
Do more composer create-project
after committing changes and a new install for the site. To make sure that changes are working on install.
Make sure that changes are updated in the packagest.org site too.
Make sure that the code is synced with the project in Drupal.org site.
Notice the file which will set the default settings for Varbase Sub Profile Generator.
Example: The profile
Change target dev_branch
for the profile
and project
to 3.0.x for the example profile
Example: The profile
Push the generated profile and project template to or for example.
Submit them to to be able to create projects or manage projects using the composer.
Commit to a new project in to list the profile in the projects catalog in Drupal.org
Example: The profile
Example: The profile