Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 930 Bytes

DEVELOPMENT.md

File metadata and controls

39 lines (27 loc) · 930 Bytes

Development notes

Setting up development copy of the project

# 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.

Testing

# 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

Building PHAR executable

  1. Install dependencies without dev packages composer install --no-dev.
  2. Run scripts/compile.sh script.
  3. Test the generated archive: php dcg.phar --version.