https://github.com/acromedia/drupal-scaffold
https://github.com/acromedia/drupal-scaffold
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/acromedia/drupal-scaffold
- Owner: AcroMedia
- Created: 2020-06-24T00:43:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T04:06:55.000Z (almost 6 years ago)
- Last Synced: 2025-04-26T05:28:35.812Z (about 1 year ago)
- Language: PHP
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## INTRODUCTION
This package aims to be all you need to meet full Acro Standards development specifications on your project.
## INSTALLATION
### Composer
1. You will need to specifically allow non-standard scaffold packages. Add the following to your composer.json
```
"extra": {
"drupal-scaffold": {
"allowed-packages": [
"acromedia/drupal-scaffold"
],
"locations": {
"web-root": "./web",
"project-root": "."
}
}
}
```
2. Use composer to add package as a dev dependency
```
composer require acromedia/drupal-scaffold --dev
```
3. (Optional) Setup your project name
```
inv setname
```
This will set the correct project name in the lando and phpunit config, otherwise you will have to do so manually
## Overridding
### Invoke
This package provides standard tasks but you can also provide your own. It is recommended to provide your own additional tasks as opposed to overriding the existing tasks. Since everything is python based, you can also call on individual functions.
### Lando
This package provides a `.lando.base.yml` with a standard Drupal setup, you should provide your specific customization in a `.lando.yml` file and commit that to your project. If you wish to have specific config only to you, you can provide a `.lando.local.yml` file.
[Lando Docs](https://docs.lando.dev/config/lando.html)
### NPM/Yarn - Package.json
NPM does not have any mechanism for base files or overrides. This package provides package.json changes as appends, to hopefully work with your existing files, but you may have to manually merge changes.
### Composer
Like NPM, composer doesn't have any mechanism for base files, so the same append workflow is used.