This repository has been archived by the owner on May 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from studiometa/release/0.1.0
v0.1.0 Added - Init basic Drupal^9 (#1) - Add custom dev from Studiometa in the repo (#1) - Add simple configuration about icons for example (#1) - Add script about enable few necessary modules and database creation (#1) - Add Studiometa theme which extends stable9 (#1)
- Loading branch information
Showing
160 changed files
with
46,856 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: drupal-project | ||
type: drupal9 | ||
docroot: web | ||
php_version: "8.0" | ||
webserver_type: nginx-fpm | ||
router_http_port: "80" | ||
router_https_port: "443" | ||
xdebug_enabled: false | ||
additional_hostnames: [] | ||
additional_fqdns: [] | ||
database: | ||
type: mariadb | ||
version: "10.3" | ||
nfs_mount_enabled: false | ||
mutagen_enabled: false | ||
use_dns_when_possible: true | ||
composer_version: "2" | ||
web_environment: [] | ||
nodejs_version: "16" | ||
disable_settings_management: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Drupal editor configuration normalization | ||
# @see http://editorconfig.org/ | ||
|
||
# This is the top-most .editorconfig file; do not search in parent directories. | ||
root = true | ||
|
||
# All files. | ||
[*] | ||
end_of_line = LF | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[composer.{json,lock}] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# ============================================ | ||
# Global configuration | ||
# ============================================ | ||
APP_HOST=www.example.com | ||
APP_ENV=local # local | staging | preprod | production | ||
APP_DEBUG=true # true | false | ||
APP_CACHE=false # true | false | ||
APP_SSL=true # true | false | ||
|
||
# ============================================ | ||
# Database configuration | ||
# ============================================ | ||
DB_HOST=db | ||
DB_PORT=3306 | ||
DB_NAME=db | ||
DB_USER=db | ||
DB_PASS=db | ||
DB_PREFIX= | ||
DB_UNIX_SOCKET= | ||
|
||
# ============================================ | ||
# Makefile configuration | ||
# ============================================ | ||
## Host | ||
DB_REMOTE_NAME="dbname" | ||
HOST_REMOTE_PATH="/var/www/html" | ||
HOST_REMOTE_PHP_VERSION="php" | ||
## SSH parameters | ||
SSH_CONFIG=myconfigname | ||
SSH_PORT=22 | ||
SSH_HOST=[email protected] | ||
SSH_USER=root | ||
|
||
# ============================================ | ||
# Drupal configuration | ||
# ============================================ | ||
HASH_SALT='' | ||
|
||
# ============================================ | ||
# Elasticsearch config | ||
# | ||
# ELASTICSEARCH_INDEX key should not be main_search_index on your local environment or on preproductions. | ||
# ============================================ | ||
ELASTICSEARCH_INDEX='' | ||
|
||
# ============================================ | ||
# Sentry config | ||
# Visit https://sentry.io/settings/studio-meta/projects/example_com-php/install/php/ | ||
# | ||
# SENTRY_ENV key should be uniq to identify your local environment | ||
# ============================================ | ||
SENTRY_DSN='' | ||
SENTRY_ENV='local-your-name' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
extends: '@studiometa/eslint-config', | ||
overrides: [ | ||
{ | ||
files: ['**/*.spec.js'], | ||
rules: { | ||
'require-jsdoc': 'off', | ||
'max-classes-per-file': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Drupal git normalization | ||
# @see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | ||
# @see https://www.drupal.org/node/1542048 | ||
|
||
# Normally these settings would be done with macro attributes for improved | ||
# readability and easier maintenance. However macros can only be defined at the | ||
# repository root directory. Drupal avoids making any assumptions about where it | ||
# is installed. | ||
|
||
# Define text file attributes. | ||
# - Treat them as text. | ||
# - Ensure no CRLF line-endings, neither on checkout nor on checkin. | ||
# - Detect whitespace errors. | ||
# - Exposed by default in `git diff --color` on the CLI. | ||
# - Validate with `git diff --check`. | ||
# - Deny applying with `git apply --whitespace=error-all`. | ||
# - Fix automatically with `git apply --whitespace=fix`. | ||
|
||
*.config text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.dist text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html | ||
*.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.install text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.map text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.module text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.po text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.profile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.script text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.sql text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.theme text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php | ||
*.twig text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
|
||
# Define binary file attributes. | ||
# - Do not treat them as text. | ||
# - Include binary diff in patches instead of "binary files differ." | ||
*.eot -text diff | ||
*.exe -text diff | ||
*.gif -text diff | ||
*.gz -text diff | ||
*.ico -text diff | ||
*.jpeg -text diff | ||
*.jpg -text diff | ||
*.otf -text diff | ||
*.phar -text diff | ||
*.png -text diff | ||
*.svgz -text diff | ||
*.ttf -text diff | ||
*.woff -text diff | ||
*.woff2 -text diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
env: | ||
COMPOSER_MEMORY_LIMIT: -1 | ||
SIMPLETEST_DB: sqlite://tmp/site.sqlite | ||
SIMPLETEST_BASE_URL: "http://127.0.0.1:8080" | ||
|
||
jobs: | ||
build: | ||
runs-on: 'macos-latest' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['8.0', '8.1'] | ||
drupal-release: ['stable'] | ||
composer-channel: ['stable'] | ||
include: | ||
- php-versions: '8.1' | ||
drupal-release: dev | ||
composer-channel: stable | ||
- php-versions: '8.1' | ||
drupal-release: stable | ||
composer-channel: snapshot | ||
steps: | ||
- name: Dump matrix context | ||
env: | ||
MATRIX_CONTEXT: ${{ toJSON(matrix) }} | ||
run: echo "$MATRIX_CONTEXT" | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: gd, pdo_sqlite | ||
|
||
- name: Update composer | ||
run: composer --verbose self-update --${{ matrix.composer-channel }} | ||
|
||
- name: Dump composer version | ||
run: composer --version | ||
|
||
- name: Validate composer.json | ||
run: composer --verbose validate | ||
|
||
- name: Install dependencies | ||
run: composer --verbose install | ||
|
||
- if: matrix.drupal-release == 'dev' | ||
run: composer --verbose require --no-update drupal/core-recommended:9.4.x-dev && composer --verbose require --no-update --dev drupal/core-dev:9.4.x-dev | ||
|
||
- if: matrix.drupal-release == 'dev' | ||
run: composer --verbose update | ||
|
||
- run: ./vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite | ||
|
||
- run: ./vendor/bin/drush runserver $SIMPLETEST_BASE_URL & | ||
|
||
- run: until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null | ||
|
||
- run: composer require phpspec/prophecy-phpunit:^2 | ||
|
||
- name: Run a single unit test to verfiy the testing setup. | ||
run: ./vendor/bin/phpunit -c ./web/core ./web/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php | ||
|
||
- run: ./vendor/bin/drush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
# Created by https://www.toptal.com/developers/gitignore/api/sublimetext,macos,drupal8,visualstudiocode | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=sublimetext,macos,drupal8,visualstudiocode | ||
|
||
### Drupal ### | ||
# Ignore configuration files that may contain sensitive information | ||
/web/sites/*/*settings*.php | ||
/web/sites/*/*services*.yml | ||
.env | ||
.htpasswd | ||
|
||
# Ignore composer executable | ||
composer.phar | ||
|
||
# Ignore paths that may contain user-generated content | ||
/backups | ||
/web/.phpstorm.meta.php | ||
/web/sites/*/files | ||
/web/sites/*/public | ||
/web/sites/*/private | ||
/web/sites/*/files-public | ||
/web/sites/*/files-private | ||
|
||
# Ignore paths that may contain temporary files | ||
/web/sites/*/translations | ||
/web/sites/*/tmp | ||
/web/sites/*/cache | ||
|
||
# Ignore SimpleTest multi-site environment. | ||
/web/sites/simpletest | ||
|
||
# Ignore drupal core (if not versioning drupal sources) | ||
/web/core | ||
/web/libraries/ | ||
/web/modules/README.txt | ||
/web/modules/contrib/ | ||
/web/profiles/README.txt | ||
/web/sites/README.txt | ||
/web/sites/example.sites.php | ||
/web/sites/example.settings.local.php | ||
/web/sites/development.services.yml | ||
/web/sites/production.services.yml | ||
/web/themes/README.txt | ||
/web/themes/contrib/ | ||
/vendor | ||
/web/.csslintrc | ||
/web/.editorconfig | ||
/web/.eslintignore | ||
/web/.eslintrc.json | ||
/web/.gitattributes | ||
/web/.htaccess | ||
/web/.ht.router.php | ||
/web/autoload.php | ||
/web/example.gitignore | ||
/web/index.php | ||
/web/LICENSE.txt | ||
/web/INSTALL.txt | ||
/web/README.txt | ||
/web/robots.txt | ||
/web/update.php | ||
/web/web.config | ||
/web/modules/README.txt | ||
/web/profiles/README.txt | ||
|
||
### dev dependencies ### | ||
node_modules/ | ||
|
||
### Cypress ### | ||
tests/cypress/screenshots/ | ||
tests/cypress/videos/ | ||
|
||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### SublimeText ### | ||
# Cache files for Sublime Text | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
*.stTheme.cache | ||
|
||
# Workspace files are user-specific | ||
*.sublime-workspace | ||
|
||
# Project files should be checked into the repository, unless a significant | ||
# proportion of contributors will probably not be using Sublime Text | ||
# *.sublime-project | ||
|
||
# SFTP configuration file | ||
sftp-config.json | ||
|
||
# Package control specific files | ||
Package Control.last-run | ||
Package Control.ca-list | ||
Package Control.ca-bundle | ||
Package Control.system-ca-bundle | ||
Package Control.cache/ | ||
Package Control.ca-certs/ | ||
Package Control.merged-ca-bundle | ||
Package Control.user-ca-bundle | ||
oscrypto-ca-bundle.crt | ||
bh_unicode_properties.cache | ||
|
||
# Sublime-github package stores a github token in this file | ||
# https://packagecontrol.io/packages/sublime-github | ||
GitHub.sublime-settings | ||
|
||
### PhpStorm ### | ||
.idea/* | ||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
*.code-workspace | ||
|
||
### VisualStudioCode Patch ### | ||
# Ignore all local history of files | ||
.history | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/sublimetext,macos,drupal8,visualstudiocode | ||
|
||
# Personnal files | ||
retrospective.md | ||
|
||
# Build files | ||
/web/themes/custom/<?slug>/dist |
Oops, something went wrong.