fourkitchens / sous-drupal-project
Starter project for Sous a Drupal distribution featuring a theme based on Emulsify Design System.
Installs: 917
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 15
Forks: 7
Open Issues: 6
Language:Shell
Type:project
Requires
- php: >=8.1
- composer/installers: ^1.9
- cweagans/composer-patches: ^1.7
- drupal/core-composer-scaffold: ^10.3
- drupal/core-project-message: ^10.3
- drupal/core-recommended: ^10.3
- drush/drush: ^12.1
- ewcomposer/unpack: dev-master
- fourkitchens/sous-admin: dev-main
- fourkitchens/sous-emulsify: dev-main
- oomphinc/composer-installers-extender: ^2.0
- webflo/drupal-finder: ^1.2
- zaporylie/composer-drupal-optimizations: ^1.0
Conflicts
- dev-main
- 6.0.2
- 6.0.1
- 6.0.0
- 5.4.0
- 5.3.0
- 5.2.0
- 5.1.0
- 5.0.0
- 4.4.0
- 4.3.0
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.1.0-beta.1
- 4.0.1
- 4.0.0
- 3.0.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.1.0
- 1.0.0
- 0.0.1
- dev-emulsify-base-theme
- dev-issue-3339711--add-project-ci
- dev-3368059-update-readme-steps
- dev-simplify-script-calls
- dev-3232909-enable-admin-block
- dev-3249228-remove-file-browser
- dev-dependabot/npm_and_yarn/yaml-and-semantic-release--removed
- dev-feat-readme-setup-and-demo
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/minimatch-3.1.2
- dev-remove-profile-legacy-modules
- dev-remove-profile-legacy-modules-timeout
- dev-recipe
- dev-add-theme-module-custom
- dev-fix-default-config-sync-dir
- dev-fix-readme
- dev-3232924-theme-install-broken
- dev-fix-remove-drupal-console
- dev-fix-oomphinc-allow-plugins
- dev-fix-sed-command-for-linux
- dev-beta
- dev-alpha
- dev-next
- dev-next-major
- dev-4.x-beta
- dev-npm-installer
- dev-4.x-beta-package-updates
- dev-docs-update
- dev-admin-gin2
- dev-image-update
- dev-pantheon-systems
- dev-update-php-74
- dev-admin-claro
- dev-fix-emulsify-theme-name
- dev-theme-build-path
- dev-8.x-1.x
This package is auto-updated.
Last update: 2024-08-11 14:39:47 UTC
README
Sous Project
A starter kit for your Drupal project that simplifies your project setup with Emulsify. This starter kit includes a small set of contrib modules, a bundle of basic configuration, and a starter theme generated by EmulsifyCLI.
Features and Configurations
Sous not only generates a custom theme based on Emulsify, it also builds upon Drupal's default configuration to help streamline the project setup process. See the feature set documentation here.
Installation
Requirements
Without these you will have difficulty installing this project.
Use this command below and replace PROJECT_NAME
with your chosen project name.
composer create-project fourkitchens/sous-drupal-project [PROJECT-NAME]
You will be prompted to select the version of Sous you want to install. The main versions are:
- Sous with Layout Builder
- Sous with Paragraphs
Both of these versions include Emulsify as the default theme in addition to a Gin admin and our recommended security, performance and admin modules.
Important last step: Unpacking
Recipe dependencies need to be unpacked to the root composer.json file. This feature is currently under development in Drupal core. In the meantime, you will need to run this command for every recipe in web/recipes:
php /usr/local/bin/composer unpack "$recipe_full_package_name
Eg: php /usr/local/bin/composer unpack fourkitchens/sous-layout-builder
This will move all of the dependencies into the root and remove that recipe from web/recipes.
Working with Emulsify
The Emulsify theme is installed as part of this project.
Additional Tooling
This package provides some additional tooling to support the build.
Helper scripts
To use the helper script provided you will need to have npm
installed. Then just run npm run <command>
. For example: npm run import-data
. These commands are bash scripts located in the ./scripts/sous
directory and defined in package.json
.
Configuration management scripts
confex
npm run confex
Export active configuration to the config directory.
confim
npm run confim
Import the configuration to the database.
import-data
npm run import-data
Import a copy of the canonical database backup into your local instance. This assumes the database backup is located in ./reference/db.sql.gz
.
local-data-bak
npm run local-data-bak
Create a local database backup. Saves the backup to the ./reference
directory.
rebuild
npm run rebuild
Rebuild a fresh local instance of your site. Imports the canonical database backup and imports configuration into it.
setup
npm run setup
This is run during the installation process of composer create project.
theme-build
npm run theme-build
Builds the emulsify based theme.
theme-watch
npm run theme-watch
Used for theme development.
Semantic Versioning
Setup
- This repo has the following named/maintenance branches:
main
x.x
x.x.x
- These branches are protected on GitHub
- A personal access token was created for CircleCI.
- CircleCI was setup to run on this project and tag the releases
- Commit changes following the Conventional commit guidelines
- Push your change up and verify CircleCI passes and has run on your desired branch.
Troubleshooting
- Your branch must be a named stable release branch in order to get a tag.
- Prereleases are not supported with this package because they contain a dot.
Contributing
The composer command can be adjusted to account for a new branch you're working on.
composer create-project fourkitchens/sous-drupal-project:dev-[branch-name] PROJECT_NAME
Contribute without create-project
To run setup + install:
- clone repo
gh repo clone fourkitchens/sous-drupal-project [directory]
cd
to your project directory- change the name of your project in .lando.yml
lando start
composer install
composer run-script post-create-project-cmd
(Requires composer to be installed locally. i.e. outside lando)
To install recipes, use the lando install-recipe
command. Eg. For the paragraphs version of Sous, run:
lando install-recipe fourkitchens/sous-paragraphs