Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Browsers that we support

last 1 version
> 1%
maintained node versions
last 2 versions
Firefox ESR
Chrome 41 # Support for Googlebot
not dead
ie 11
not IE 9-11 # For IE 9-11 support, remove 'not'.
35 changes: 0 additions & 35 deletions .eslintrc.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
emulsify version (see [releases](https://github.com/emulsify-ds/emulsify-drupal/releases)):

**What you did:**

**What happened:**

**Reproduction repository (if necessary):**

**Problem description:**

**Suggested solution:**
14 changes: 14 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**This PR does the following:**
- Adds functionality bullet item
- Fixes this or that bullet item

### Related Issue(s)
- [Title of the issue](https://github.com/emulsify-ds/emulsify-drupal/issues/1) (if applicable)

### Notes:
- (optional) Document any intentionally unfinished parts or known issues within this PR

### Functional Testing:
- [ ] Document steps that allow someone to fully test your code changes. Include screenshot and links when appropriate.


16 changes: 16 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- 'Priority: Critical'
# Label to use when marking an issue as stale
staleLabel: 'Automatically Closed'
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
3 changes: 2 additions & 1 deletion .github/workflows/addtoprojects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
types:
- opened
workflow_dispatch:

jobs:
add-to-project:
Expand All @@ -18,4 +19,4 @@ jobs:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/emulsify-ds/projects/6
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
token: ${{ secrets.ADD_TO_PROJECT_PAT }}
19 changes: 10 additions & 9 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Add contributors
on:
schedule:
- cron: "20 20 * * *"
- cron: '20 20 * * *'
push:
branches:
- master
- main
workflow_dispatch:

jobs:
add-contributors:
Expand All @@ -13,11 +14,11 @@ jobs:
- uses: actions/checkout@v2
- uses: BobAnkh/add-contributors@master
with:
CONTRIBUTOR: "### Contributors"
COLUMN_PER_ROW: "6"
CONTRIBUTOR: '### Contributors'
COLUMN_PER_ROW: '6'
ACCESS_TOKEN: ${{secrets.ADD_TO_PROJECT_PAT}}
IMG_WIDTH: "100"
FONT_SIZE: "14"
PATH: "/README.md"
COMMIT_MESSAGE: "docs(README): update contributors"
AVATAR_SHAPE: "round"
IMG_WIDTH: '100'
FONT_SIZE: '14'
PATH: '/README.md'
COMMIT_MESSAGE: 'docs(README): update contributors'
AVATAR_SHAPE: 'round'
29 changes: 29 additions & 0 deletions .github/workflows/dev-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Sync Drupal Dev Branch
on:
push:
branches:
- '*.x'
workflow_dispatch:
jobs:
sync:
name: Sync Dev Branch
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Add remote SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DRUPAL_ORG_SSH_KEY }}
config: ${{ secrets.SSH_CONFIG }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Sync dev branch to Drupal.org Project
run: |
git remote add drupal-org '${{ secrets.DRUPAL_REPO_URL }}'
git push drupal-org ${{ steps.extract_branch.outputs.branch }}
30 changes: 30 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Semantic Release on Merge
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
release:
name: Attempt Semantic Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add remote SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.DRUPAL_ORG_SSH_KEY }}
config: ${{ secrets.SSH_CONFIG }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Sync release tags to Drupal.org Project
if: steps.semantic.outputs.new_release_published == 'true'
run: |
git remote add drupal-org '${{ secrets.DRUPAL_REPO_URL }}'
git push drupal-org --tags
git checkout main
git push drupal-org main
23 changes: 8 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
wp-content

# Ignore compiled files.
dist

# Yarn/NPM
node_modules/
yarn.lock
yarn-error.log

# Storybook
.out

# Gatsby
.gatsby-context.js
public
.cache/
# npm
node_modules

# System
.DS_Store
.idea
.vscode

# Git deploy
.publish

# Composer
composer.lock
/vendor/
vendor

# Jest
.coverage
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14
20
27 changes: 0 additions & 27 deletions .storybook/_attach.js

This file was deleted.

12 changes: 0 additions & 12 deletions .storybook/emulsifyTheme.js

This file was deleted.

8 changes: 0 additions & 8 deletions .storybook/main.js

This file was deleted.

7 changes: 0 additions & 7 deletions .storybook/manager.js

This file was deleted.

5 changes: 0 additions & 5 deletions .storybook/preview-head.html

This file was deleted.

18 changes: 0 additions & 18 deletions .storybook/preview.js

This file was deleted.

30 changes: 0 additions & 30 deletions .storybook/setupTwig.js

This file was deleted.

Loading