Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inviqa/drupal-startup
Drupal startup - project skeleton w/ Lando dev stack, example tests, config and modules.
https://github.com/inviqa/drupal-startup
drupal drupal8 lando
Last synced: about 1 month ago
JSON representation
Drupal startup - project skeleton w/ Lando dev stack, example tests, config and modules.
- Host: GitHub
- URL: https://github.com/inviqa/drupal-startup
- Owner: inviqa
- Created: 2019-02-18T15:48:39.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-03-21T13:32:09.000Z (almost 6 years ago)
- Last Synced: 2024-12-24T04:37:43.940Z (about 2 months ago)
- Topics: drupal, drupal8, lando
- Language: PHP
- Homepage:
- Size: 317 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
____ _____ _ ____ _____ _ _ ____
/ ___|_ _|/ \ | _ \_ _| | | | _ \
\___ \ | | / _ \ | |_) || | | | | | |_) |
___) || |/ ___ \| _ < | | | |_| | __/
|____/ |_/_/ \_\_| \_\|_| \___/|_|########################################
```[![Codeship Status for inviqa/drupal-startup](https://app.codeship.com/projects/0e9dd740-1689-0137-368c-02228243811b/status?branch=develop)](https://app.codeship.com/projects/327924)
# 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!...delete as appropriate!
## Start me up
Start-up your `newproject` in the current directory using composer:
`composer create-project --no-install -s dev inviqa/drupal-startup newproject`
Update the `.gitignore` in the project root
## Project structure
The tree below outlines the project structure and purpose.
```bash
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](https://docs.devwithlando.io/installation/installing.html).**Note: Compatible with v3.0.0-rc1 and below**
### Setup
Run `lando start` from within the project directory.
### 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