# Clone the project.
git clone https://github.com/Chi-teck/drupal-code-generator
# Change working directory.
cd drupal-code-generator
# Install dependencies.
composer install
# Run generator.
bin/dcg
To make dcg available in any system location append this line to your .bashrc file:
alias dcg-dev=/path/to/to/drupal-code-generator/bin/dcg
Then after you have logged out and in the dcg development version will be accessible through dcg-dev command.
# Test code generator.
/path/to/drupal-code-generator/scripts/run-dcg-tests.sh
# Test generated code.
/path/to/drupal-code-generator/scripts/run-sut-tests.sh
- Install dependencies without dev packages
composer install --no-dev
. - Run
scripts/compile.sh
script. - Test the generated archive:
php dcg.phar --version
.