Varbase Sub Profile Generator
Having a generator tool helper. Which helps in extending Varbase profile using the sub profile method.
Download the Varbase Sub profile generator from
and get ready to generate profiles.
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
mkdir /var/www/html/products
cd /var/www/html/products
git clone [email protected]:Vardot/varbase-subprofile-generator.git
cd /var/www/html/products/varbase-subprofile-generator
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:
cd /var/www/html/products/varbase-subprofile-generator
git checkout 9.0.0
source:
profile:
git_repository: [email protected]:Vardot/varbase_subprofile_basic.git
dev_branch:
name: 9.0.x
alias: 9.0.x-dev
label: 9.0.x
project:
git_repository: [email protected]:Vardot/varbase-subprofile-basic-project.git
dev_branch:
name: 9.0.x
alias: 9.0.x-dev
label: 9.0.x
target:
profile:
dev_branch:
name: 1.0.x
alias: 1.0.x-dev
label: 1.0.x
project:
dev_branch:
name: 1.0.x
alias: 1.0.x-dev
label: 1.0.x
Change the dev_version to mach with the target dev_branch name and alias.
target:
profile:
dev_branch:
name: 3.0.x
alias: 3.0.x-dev
label: 3.0.x
project:
dev_branch:
name: 3.0.x
alias: 3.0.x-dev
label: 3.0.x
Run the generate command.
In a case of creating a Varbase sub profile named "cv". Run the following commands in the local terminal:
$ bash generate-varbase-subprofile.sh "cv" "/var/www/html/products" -vvv
The following directories will be created for the new sub profile.
$ cd /var/www/html/products
$ ls -l
products/
- cv/
- cv-project/
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.
Push the generated profile and project template to https://github.com or https://gitlab.com for example.
Submit them to https://packagist.org to be able to create projects or manage projects using the composer.
Commit to a new project in https://drupal.org to list the profile in the projects catalog in Drupal.org
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:
composer create-project vardot/cv-project:3.0.x-dev PROJECT_DIR_NAME --stability dev --no-interaction
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.
Last modified 3mo ago