2017 © Pedro Pelรกez
 

project drupal-startup

Startup template for Drupal 8 projects.

image

sgrichards/drupal-startup

Startup template for Drupal 8 projects.

  • Monday, March 19, 2018
  • by sgrichards
  • Repository
  • 0 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

 ____ _____  _    ____ _____ _   _ ____
/ ___|_   _|/ \  |  _ \_   _| | | |  _ \
\___ \ | | / _ \ | |_) || | | | | | |_) |
 ___) || |/ ___ \|  _ < | | | |_| |  __/
|____/ |_/_/   \_\_| \_\|_|  \___/|_|

########################################

Codeship Status for inviqa/drupal-startup, (*1)

Drupal 8 / Lando flavoured project template

This project should be used as a skeleton starting point for new Drupal 8 based projects. As such some assumptions and opinionated decisions are included to bootstrap a project with everything you might need to get started!, (*2)

...delete as appropriate!, (*3)

Start me up

Start-up your newproject in the current directory using composer:, (*4)

composer create-project --no-install -s dev inviqa/drupal-startup newproject, (*5)

Update the .gitignore in the project root, (*6)

Project structure

The tree below outlines the project structure and purpose., (*7)

newproject
|
โ”œโ”€โ”€ conf # container related config (eg. solr)
โ”œโ”€โ”€ config
|   โ””โ”€โ”€ sync # Drupal config files
|
โ”œโ”€โ”€ doc # Project related documentation
|
โ”œโ”€โ”€ docroot
|   โ”œโ”€โ”€ modules
|   |   โ””โ”€โ”€ custom # Custom modules
|   โ”œโ”€โ”€ profiles
|   |   โ””โ”€โ”€ custom # Custom install profiles
|   โ”œโ”€โ”€ sites
|   |   โ””โ”€โ”€ default # Default site settings
|   โ””โ”€โ”€ themes
|       โ””โ”€โ”€ custom # Custom themes
|
โ”œโ”€โ”€ scripts
|   โ”œโ”€โ”€ deployment # Shell scripts for deployment
|   โ”œโ”€โ”€ development # Shell scripts for local dev
|   โ””โ”€โ”€ common.inc.sh # Shared scripts for all environments
|
โ””โ”€โ”€ test
    โ””โ”€โ”€ behat # Behat tests

Development Environment

Prerequisites

  1. Install Docker-for-mac
  2. Install Lando.

Note: Compatible with v3.0.0-rc1 and below, (*8)

Setup

Run lando start from within the project directory., (*9)

Tooling

Command Description
lando install Install Drupal site
lando reset Reset codebase removing generated code and lock file
lando refresh Refresh your project (clear cache, import config etc...)
lando composer {install}, {require} etc. Run composer commands in the appserver container
lando drush {cr}, {site-install} etc. Run drush commands in the appserver container
lando phpcs Run code style analysis see ./phpcs.xml.dist for scope
lando phpunit Run phpunit tests see ./phpunit.xml.dist for scope
lando behat Run behat test suite
lando test Run all tests and code evaluation
lando npm Run NPM commands

For further lando related commands see: https://docs.devwithlando.io/config/tooling.html, (*10)

The Versions

19/03 2018
19/03 2018
14/03 2018

0.1.0

0.1.0.0

Startup template for Drupal 8 projects.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Steve Richards