Skip to content

Commit 7e4aa9c

Browse files
author
Bassam Ismail
committed
init
0 parents  commit 7e4aa9c

34 files changed

+9169
-0
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Drupal editor configuration normalization
2+
# @see http://editorconfig.org/
3+
4+
# This is the top-most .editorconfig file; do not search in parent directories.
5+
root = true
6+
7+
# All files.
8+
[*]
9+
end_of_line = LF
10+
indent_style = space
11+
indent_size = 2
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[composer.{json,lock}]
17+
indent_size = 4

.gitattributes

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Drupal git normalization
2+
# @see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
# @see https://www.drupal.org/node/1542048
4+
5+
# Normally these settings would be done with macro attributes for improved
6+
# readability and easier maintenance. However macros can only be defined at the
7+
# repository root directory. Drupal avoids making any assumptions about where it
8+
# is installed.
9+
10+
# Define text file attributes.
11+
# - Treat them as text.
12+
# - Ensure no CRLF line-endings, neither on checkout nor on checkin.
13+
# - Detect whitespace errors.
14+
# - Exposed by default in `git diff --color` on the CLI.
15+
# - Validate with `git diff --check`.
16+
# - Deny applying with `git apply --whitespace=error-all`.
17+
# - Fix automatically with `git apply --whitespace=fix`.
18+
19+
*.config text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
20+
*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
21+
*.dist text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
22+
*.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
23+
*.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html
24+
*.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
25+
*.install text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
26+
*.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
27+
*.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
28+
*.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
29+
*.map text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
30+
*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
31+
*.module text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
32+
*.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
33+
*.po text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
34+
*.profile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
35+
*.script text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
36+
*.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
37+
*.sql text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
38+
*.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
39+
*.theme text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php
40+
*.twig text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
41+
*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
42+
*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
43+
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
44+
45+
# Define binary file attributes.
46+
# - Do not treat them as text.
47+
# - Include binary diff in patches instead of "binary files differ."
48+
*.eot -text diff
49+
*.exe -text diff
50+
*.gif -text diff
51+
*.gz -text diff
52+
*.ico -text diff
53+
*.jpeg -text diff
54+
*.jpg -text diff
55+
*.otf -text diff
56+
*.phar -text diff
57+
*.png -text diff
58+
*.svgz -text diff
59+
*.ttf -text diff
60+
*.woff -text diff
61+
*.woff2 -text diff

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Ignore directories generated by Composer
2+
/drush/contrib/
3+
/vendor/
4+
/console/
5+
/web/core/
6+
/web/modules/contrib/
7+
/web/themes/contrib/
8+
/web/profiles/contrib/
9+
/web/libraries/*
10+
11+
# Ignore Drupal's file directory
12+
/web/sites/*/files/
13+
/web/sites/default/settings.local.php
14+
15+
# Ignore phpunit temp files
16+
/.phpunit.result.cache
17+
/web/sites/simpletest/
18+
19+
# Ignore files generated by PhpStorm
20+
/.idea/
21+
22+
# Ignore database dumps
23+
/*.sql
24+
/*.sql.gz

.gitpod.Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM gitpod/workspace-full
2+
RUN sudo apt-get -qq update && sudo apt-get install -y zsh && sudo chsh -s $(which zsh)
3+
RUN sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --yes && echo 'eval "$(starship init zsh)"' > .zshrc
4+
RUN curl -OL https://github.com/lando/lando/releases/download/v3.1.4/lando-v3.1.4.deb && sudo dpkg -i lando-v3.1.4.deb && rm -rf lando-v3.1.4.deb
5+
RUN mkdir -p ~/.lando && echo "proxy: 'ON'\nproxyHttpPort: 8080\nproxyHttpsPort: 4443\nbindAddress: 0.0.0.0\nproxyBindAddress: 0.0.0.0" > ~/.lando/config.yml

.gitpod.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
tasks:
5+
- name: Drupal start
6+
init: |
7+
lando start
8+
lando composer install
9+
lando drush si -y --account-pass=admin --site-name='gitpod_lando' demo_umami
10+
gp preview $(gp url $(lando info --format=json | jq -r ".[0].urls[1]" | sed -e 's#http://localhost:\(\)#\1#'))
11+
12+
vscode:
13+
extensions:
14+
- felixfbecker.php-debug
15+
- dbaeumer.vscode-eslint
16+
- eamodio.gitlens
17+
- EditorConfig.EditorConfig
18+
- esbenp.prettier-vscode
19+
- stylelint.vscode-stylelint
20+
- tombonnike.vscode-status-bar-format-toggle
21+
- usernamehw.errorlens
22+
- whatwedo.twig
23+
- marcostazi.vs-code-drupal

.lando.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: gitpod-lando
2+
recipe: drupal9
3+
config:
4+
webroot: web

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/skippednote/gitpod-lando)
2+
3+
# Gitpod Lando
4+
5+
Click that button

composer.json

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"name": "drupal/recommended-project",
3+
"description": "Project template for Drupal 9 projects with a relocated document root",
4+
"type": "project",
5+
"license": "GPL-2.0-or-later",
6+
"homepage": "https://www.drupal.org/project/drupal",
7+
"support": {
8+
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
9+
"chat": "https://www.drupal.org/node/314178"
10+
},
11+
"repositories": [
12+
{
13+
"type": "composer",
14+
"url": "https://packages.drupal.org/8"
15+
}
16+
],
17+
"require": {
18+
"composer/installers": "^1.9",
19+
"drupal/core-composer-scaffold": "^9.2",
20+
"drupal/core-project-message": "^9.2",
21+
"drupal/core-recommended": "^9.2",
22+
"drush/drush": "^10.5"
23+
},
24+
"conflict": {
25+
"drupal/drupal": "*"
26+
},
27+
"minimum-stability": "stable",
28+
"prefer-stable": true,
29+
"config": {
30+
"sort-packages": true
31+
},
32+
"extra": {
33+
"drupal-scaffold": {
34+
"locations": {
35+
"web-root": "web/"
36+
}
37+
},
38+
"installer-paths": {
39+
"web/core": [
40+
"type:drupal-core"
41+
],
42+
"web/libraries/{$name}": [
43+
"type:drupal-library"
44+
],
45+
"web/modules/contrib/{$name}": [
46+
"type:drupal-module"
47+
],
48+
"web/profiles/contrib/{$name}": [
49+
"type:drupal-profile"
50+
],
51+
"web/themes/contrib/{$name}": [
52+
"type:drupal-theme"
53+
],
54+
"drush/Commands/contrib/{$name}": [
55+
"type:drupal-drush"
56+
],
57+
"web/modules/custom/{$name}": [
58+
"type:drupal-custom-module"
59+
],
60+
"web/profiles/custom/{$name}": [
61+
"type:drupal-custom-profile"
62+
],
63+
"web/themes/custom/{$name}": [
64+
"type:drupal-custom-theme"
65+
]
66+
},
67+
"drupal-core-project-message": {
68+
"include-keys": [
69+
"homepage",
70+
"support"
71+
],
72+
"post-create-project-cmd-message": [
73+
"<bg=blue;fg=white> </>",
74+
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
75+
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
76+
"<bg=blue;fg=white> </>",
77+
"",
78+
"<bg=yellow;fg=black>Next steps</>:",
79+
" * Install the site: https://www.drupal.org/docs/8/install",
80+
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
81+
" * Get support: https://www.drupal.org/support",
82+
" * Get involved with the Drupal community:",
83+
" https://www.drupal.org/getting-involved",
84+
" * Remove the plugin that prints this message:",
85+
" composer remove drupal/core-project-message"
86+
]
87+
}
88+
}
89+
}

0 commit comments

Comments
 (0)