Skip to main content

Scaffold a Drupal site template

Project description

Template scripts

Requirements

You need Python 3.6+ and pip to install and use this script. Follow these instructions to install pip if you don't already have it.

The script relies on certain developer tools to be available when running.

  • git - To initialise the project as a repository.
  • composer - To download the dependencies. If composer is not present, the dependencies don't get downloaded.

Installation

Install this script via pip (or pip3).

pip3 install axl-template

init-drupal

(Requires Python 3.6+)

Scaffold a Drupal codebase in a subdirectory.

Usage for init-drupal

Usage: init-drupal [OPTIONS] NAME

  Scaffold a Drupal site template

  Create a Drupal site template with NAME. Where NAME is the name of your
  application package (e.g., axelerant/site)

Options:
  --directory DIRECTORY           Directory where the files should be set up
                                  (e.g., drupal). The directory will be
                                  emptied.  [default: drupal]

  --description TEXT              Description of the package
  -core, --core-package [core|recommended]
                                  Select the core package
  --core                          Select the drupal/core package
  --recommended                   Select the drupal/core-recommended package
  --core-version TEXT             Drupal core version  [default: ^8.8.0]
  --docroot PATH                  The document root
  --no-install                    Do not run composer install
  --cache [redis|memcache]        Add a cache service
  --lando                         Add Lando support
  -f, --force                     Force delete the target directory if it
                                  exists

  --help                          Show this message and exit.

Example

init-drupal axelerant/site --cache redis --core

The above command will generate a composer.json and in a drupal directory and run composer install. It will use the regular drupal/core package along with the Redis module and few other packages.

init-lando

(Requires Python 3.6+)

Scaffold Lando configuration for a Drupal site in the current directory.

Usage for init-lando

usage: init-lando

No options are required. The tool reads the composer.json file and sets up the Lando configuration accordingly. It also sets up a settings.lando.php file to include Lando specific database and caching configuration.

Lando support can also be added when running init-drupal by passing the --lando argument.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axl-template-0.2.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axl_template-0.2.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file axl-template-0.2.1.tar.gz.

File metadata

  • Download URL: axl-template-0.2.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for axl-template-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5c0ecff5e012eb354d8a3b075b91f3303839fc6db73da6163ad530107faca68a
MD5 cc723f510d57b6d750b3bc488b597d70
BLAKE2b-256 53d48cf6845041e4fd779c3f34419a94504a2fc259a4a8d7b0e0738c71cded16

See more details on using hashes here.

File details

Details for the file axl_template-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: axl_template-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for axl_template-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 521d7fc701ab5eadf17f1d3ae9b17644fc7f90a863f3109b3bb118af4ade2984
MD5 4556bc2c227469cba860d184e2f52c04
BLAKE2b-256 b96c9804c99fc58c7570517100e4d1dcba1b9ba31b6a641218c8f78e5c161afd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page