Skip to content

Commit c325696

Browse files
committed
Initial commit
0 parents  commit c325696

File tree

246 files changed

+67293
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+67293
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Media**
23+
If applicable, add screenshots or video to help explain your problem.
24+
25+
**Your Environment (please complete the following information):**
26+
- Device: [e.g. iPhone6]
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--- Provide a general summary of your changes in the title above -->
2+
3+
## Types of changes
4+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
5+
- [ ] Bug fix (a non-breaking change which fixes an issue)
6+
- [ ] New feature (a non-breaking change which adds functionality)
7+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
8+
9+
10+
## Description
11+
<!--- Describe your changes in detail -->
12+
<!--- Why is this change required? What problem does it solve? -->
13+
<!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #1337" -->
14+
15+
16+
## Screenshots/Media:
17+
<!--- Add any screenshots or other type of media to demonstrate your change -->

.gitignore

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# VSCode
104+
.vscode/*
105+
# VSCode Xdebug settings
106+
!.vscode/launch.json
107+
108+
# Intellij idea
109+
*.iml
110+
.idea
111+
112+
# OSX
113+
.DS_Store
114+
.AppleDouble
115+
.LSOverride
116+
117+
# Files that might appear in the root of a volume
118+
.DocumentRevisions-V100
119+
.fseventsd
120+
.Spotlight-V100
121+
.TemporaryItems
122+
.Trashes
123+
.VolumeIcon.icns
124+
.com.apple.timemachine.donotpresent
125+
126+
# Directories potentially created on remote AFP share
127+
.AppleDB
128+
.AppleDesktop
129+
Network Trash Folder
130+
Temporary Items
131+
.apdisk
132+
CHANGELOG.md

.gitpod.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
image:
2+
file: .gitpod/Dockerfile
3+
4+
tasks:
5+
- init: |
6+
# Installing DDev and Drupal backend.
7+
.gitpod/scripts/ddev-download-images.sh
8+
.gitpod/scripts/ddev-setup.sh
9+
.gitpod/scripts/drupal-setup.sh
10+
# Installing Nuxt/Druxt frontend.
11+
.gitpod/scripts/nuxt-setup.sh
12+
command: |
13+
.gitpod/scripts/ddev-setup.sh
14+
.gitpod/scripts/nuxt-setup.sh
15+
cd $GITPOD_REPO_ROOT/nuxt && NUXT_TELEMETRY_DISABLED=1 npm run dev
16+
17+
# VScode xdebug extension
18+
vscode:
19+
extensions:
20+
- dbaeumer.vscode-eslint
21+
- editorconfig.editorconfig
22+
- felixfbecker.php-debug
23+
- octref.vetur
24+
25+
ports:
26+
# Drupal
27+
- port: 8080
28+
onOpen: ignore
29+
visibility: public
30+
31+
# Nuxt/Druxt
32+
- port: 3000
33+
onOpen: ignore
34+
visibility: public
35+
36+
# Nuxt/Druxt
37+
- port: 3003
38+
onOpen: ignore
39+
visibility: public
40+
41+
# Currently un-notified and unsupported mailhog http port
42+
- port: 8025
43+
onOpen: ignore
44+
# Currently un-notified and unsupported mailhog https port
45+
- port: 8026
46+
onOpen: ignore
47+
# Currently un-notified and unsupported phpmyadmin http port
48+
- port: 8036
49+
onOpen: ignore
50+
# Currently un-notified and unsupported phpmyadmin https port
51+
- port: 8037
52+
onOpen: ignore
53+
# router http port that we're ignoring.
54+
- port: 8888
55+
onOpen: ignore
56+
# router https port that we're ignoring.
57+
- port: 8889
58+
onOpen: ignore
59+
# xdebug port
60+
- port: 9000
61+
onOpen: ignore
62+
63+
github:
64+
prebuilds:
65+
master: true
66+
branches: true
67+
pullRequests: true
68+
pullRequestsFromForks: true
69+
addCheck: true
70+
addComment: false
71+
addBadge: true
72+
addLabel: true

.gitpod/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM gitpod/workspace-full
2+
SHELL ["/bin/bash", "-c"]
3+
4+
RUN sudo apt-get -qq update
5+
6+
# Install ddev
7+
RUN brew update && brew install drud/ddev/ddev
8+
9+
# Install latest composer
10+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
11+
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
12+
RUN sudo php composer-setup.php --install-dir /usr/bin --filename composer
13+
RUN php -r "unlink('composer-setup.php');"
14+
15+
# Install latest npm
16+
RUN npm install -g npm
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
ddev version | awk '/(drud|phpmyadmin)/ {print $2;}' >/tmp/images.txt
4+
while IFS= read -r item
5+
do
6+
docker pull "$item"
7+
done < <(cat /tmp/images.txt)

.gitpod/scripts/ddev-setup.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
DRUPAL_DIR="${GITPOD_REPO_ROOT}/drupal"
4+
5+
# Misc housekeeping before start
6+
ddev config global --instrumentation-opt-in=true
7+
8+
# Start ddev
9+
cd $DRUPAL_DIR && ddev start

.gitpod/scripts/drupal-setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -eu -o pipefail
3+
4+
DRUPAL_DIR="${GITPOD_REPO_ROOT}/drupal"
5+
6+
# Set up Drupal website
7+
cd "$DRUPAL_DIR" && ddev drupal-install

0 commit comments

Comments
 (0)