Skip to content
/ d8_starter Public template

This is a "starter repo" for Drupal projects at Promet. Project includes test, local setup and other tools.

License

Notifications You must be signed in to change notification settings

promet/d8_starter

Repository files navigation

Promet Starter Repository

Build Status

The goal for this project is to be a "starter" project for Promet Projects.

This project emphasizes:

  • Easy project setup
  • Easy test setup
  • Commands for asset creation and deployment

This is a work in progress.

Similar projects

Setting up

  1. Install docksal
  2. fin init

OR

  1. Install ddev
  2. ddev start
  3. ddev init

Testing

Tests are in /tests folder.

Behat

Run fin/ddev behat

Pa11y

Run fin/ddev pa11y

Cypress

Currently there is not a container for cypress. This will make it easier to use locally. To install cypress: cd tests/cypress; npm i.

To run cypress tests: cd tests/cypress; node_modules/.bin/cypress open to open the interactive test runner or cd tests/cypress; node_modules/.bin/cypress run to run all tests.

PHP Unit

Coming soon.

Theme

There is a starter theme for setup and testing. It is recommended to install a new theme.

To build the theme assets:

ddev/fin build-theme

To run storybook:

ddev/fin storybook

Fixtures

This project uses Entity staging for fixtures. The fixtures are used for tests as well as test content. To install the fixtures run:

fin/ddev test-content

Assets

Item Description
Local development ddev or docksal
single init command
artifact building:
single command to get database from hosting provider
Testing travis setup
behat tests
cypress tests
pa11y tests
Deployment artifact creation fin build-artifacts
single deployment command for pantheon and acquia fin deploy
terminus integration
Drupal Tools
memcache
drush
drupal console (included with docksal)
environment switching fin site-mode dev
entity staging (for test content)

Desired Assets

Item Description
Testing visual regression
phpunit tests
Drupal Tools
redis for pantheon

About

This is a "starter repo" for Drupal projects at Promet. Project includes test, local setup and other tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published