Skip to content

Commit 8767d19

Browse files
release: v1.2.0
- Initial release of free version of Hyve
2 parents f688260 + dc87afa commit 8767d19

Some content is hidden

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

73 files changed

+35232
-2
lines changed

.browserslistrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Browsers that we support
2+
3+
last 1 version
4+
> 1%
5+
not ie > 0
6+
not ie_mob > 0
7+
not dead

.distignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.git
2+
.distignore
3+
.gitignore
4+
.travis.yml
5+
.jshintrc
6+
Gruntfile.js
7+
phpcs.xml
8+
.eslintrc
9+
.gitattributes
10+
.releaserc.yml
11+
.DS_Store
12+
.editorconfig
13+
.browserslistrc
14+
postcss.config.js
15+
docker-compose.yml
16+
webpack.config.js
17+
CONTRIBUTING.md
18+
package.json
19+
composer.json
20+
composer.lock
21+
package-lock.json
22+
themeisle-hash.json
23+
npm-debug.log
24+
phpstan.neon
25+
tailwind.config.js
26+
/grunt
27+
/node_modules
28+
/logs
29+
/.github
30+
/.wordpress-org
31+
/.idea
32+
/src
33+
/bin
34+
/tests
35+
/phpunit.xml
36+
/dist
37+
/artifact

.editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = tab
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.md]
19+
trim_trailing_whitespace = false

.eslintrc

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": "wordpress",
7+
"parserOptions": {
8+
"ecmaFeatures": {
9+
"jsx": true
10+
},
11+
"ecmaVersion": 2021,
12+
"sourceType": "module"
13+
},
14+
"ignorePatterns": [ "node_modules", "assets" ],
15+
"rules": {
16+
"indent": [
17+
"error",
18+
"tab"
19+
],
20+
"linebreak-style": [
21+
"error",
22+
"unix"
23+
],
24+
"quotes": [
25+
"error",
26+
"single"
27+
],
28+
"semi": [
29+
"error",
30+
"always"
31+
],
32+
"prefer-destructuring": [
33+
"warn",
34+
{
35+
"array": false,
36+
"object": true
37+
},
38+
{
39+
"enforceForRenamedProperties": false
40+
}
41+
],
42+
"array-bracket-spacing": [
43+
"warn",
44+
"always",
45+
{
46+
"arraysInArrays": false,
47+
"objectsInArrays": false
48+
}
49+
],
50+
"key-spacing": [
51+
"warn",
52+
{
53+
"beforeColon": false,
54+
"afterColon": true
55+
}
56+
],
57+
"object-curly-spacing": [
58+
"warn",
59+
"always",
60+
{
61+
"arraysInObjects": true,
62+
"objectsInObjects": false
63+
}
64+
],
65+
}
66+
}

.gitattributes

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
.travis.yml export-ignore
4+
Gruntfile.js export-ignore
5+
sample-theme export-ignore
6+
docker-compose.yml export-ignore
7+
.releaserc.json export-ignore
8+
composer.json export-ignore
9+
composer.lock export-ignore
10+
.nvmrc export-ignore
11+
package.json export-ignore
12+
package-lock.json export-ignore
13+
phpcs.xml export-ignore
14+
phpunit.xml export-ignore
15+
README.md export-ignore
16+
tests export-ignore
17+
bin export-ignore
18+
README.md export-ignore
19+
# Set the default behavior for all files.
20+
* text=auto
21+
22+
# Normalized and converts to
23+
# native line endings on checkout.
24+
*.php text
25+
26+
# Convert to LF line endings on checkout.
27+
*.sh text eol=lf
28+
29+
# Binary files.
30+
*.png binary
31+
*.jpg binary

.github/labeler.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
regression:
2+
- '(Yes, this is a regression)'
3+
4+
customer report:
5+
- '(helpscout|wordpress.org/support)'
6+
7+
doc-needed:
8+
- '(Yes, it requires documentation.)'

.github/workflows/create-buld-url.yml

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Build and publish the ZIP build file
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, ready_for_review]
6+
branches-ignore:
7+
- 'update_dependencies'
8+
jobs:
9+
dev-zip:
10+
name: Build ZIP and upload to s3
11+
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
12+
runs-on: ubuntu-latest
13+
outputs:
14+
branch-name: ${{ steps.retrieve-branch-name.outputs.branch_name }}
15+
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
16+
steps:
17+
- name: Check out source files
18+
uses: actions/checkout@v2
19+
- name: Get Composer Cache Directory
20+
id: composer-cache
21+
run: |
22+
echo "::set-output name=dir::$(composer config cache-files-dir)"
23+
- name: Configure Composer cache
24+
uses: actions/cache@v1
25+
with:
26+
path: ${{ steps.composer-cache.outputs.dir }}
27+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-composer-
30+
- name: Install composer deps
31+
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
32+
- name: Install npm deps
33+
run: npm ci
34+
- name: Build files
35+
run: npm run build
36+
- name: Create zip
37+
run: npm run dist
38+
- name: Retrieve branch name
39+
id: retrieve-branch-name
40+
run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"
41+
- name: Retrieve git SHA-8 string
42+
id: retrieve-git-sha-8
43+
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
44+
- name: Upload Latest Version to S3
45+
uses: jakejarvis/s3-sync-action@master
46+
with:
47+
args: --acl public-read --follow-symlinks --delete
48+
env:
49+
AWS_S3_BUCKET: ${{ secrets.AWS_DEV_BUCKET }}
50+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_KEY_ARTIFACTS }}
51+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ARTIFACTS }}
52+
SOURCE_DIR: artifact/
53+
DEST_DIR: ${{ github.event.pull_request.base.repo.name }}-${{ steps.retrieve-branch-name.outputs.branch_name }}-${{ steps.retrieve-git-sha-8.outputs.sha8 }}/
54+
55+
comment-on-pr:
56+
name: Comment on PR with links to plugin ZIPs
57+
if: ${{ github.head_ref && github.head_ref != null }}
58+
runs-on: ubuntu-latest
59+
needs: dev-zip
60+
env:
61+
CI: true
62+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
63+
outputs:
64+
pr_number: ${{ steps.get-pr-number.outputs.num }}
65+
comment_body: ${{ steps.get-comment-body.outputs.body }}
66+
steps:
67+
- name: Get PR number
68+
id: get-pr-number
69+
run: echo "::set-output name=num::$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')"
70+
71+
- name: Check if a comment was already made
72+
id: find-comment
73+
uses: peter-evans/find-comment@v2
74+
with:
75+
issue-number: ${{ steps.get-pr-number.outputs.num }}
76+
comment-author: github-actions[bot]
77+
body-includes: Download Plugin - [Download]
78+
79+
- name: Get comment body
80+
id: get-comment-body
81+
run: |
82+
body="Plugin build for ${{ github.event.pull_request.head.sha }} is ready :bellhop_bell:!
83+
- Download Plugin - [Download](https://verti-artifacts.s3.amazonaws.com/${{ github.event.pull_request.base.repo.name }}-${{ needs.dev-zip.outputs.branch-name }}-${{ needs.dev-zip.outputs.git-sha-8 }}/hyve-lite.zip)"
84+
body="${body//$'\n'/'%0A'}"
85+
echo "::set-output name=body::$body"
86+
87+
- name: Create comment on PR with links to plugin builds
88+
if: ${{ steps.find-comment.outputs.comment-id == '' }}
89+
uses: peter-evans/create-or-update-comment@v2
90+
with:
91+
issue-number: ${{ steps.get-pr-number.outputs.num }}
92+
body: ${{ steps.get-comment-body.outputs.body }}
93+
94+
- name: Update comment on PR with links to plugin builds
95+
if: ${{ steps.find-comment.outputs.comment-id != '' }}
96+
uses: peter-evans/create-or-update-comment@v2
97+
with:
98+
comment-id: ${{ steps.find-comment.outputs.comment-id }}
99+
edit-mode: replace
100+
body: ${{ steps.get-comment-body.outputs.body }}

.github/workflows/create-tag.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
create_tag:
9+
runs-on: ubuntu-latest
10+
if: "! contains(github.event.head_commit.message, '[skip ci]')"
11+
strategy:
12+
matrix:
13+
node-version: [20.x]
14+
steps:
15+
- uses: actions/checkout@master
16+
with:
17+
persist-credentials: false
18+
- name: Build files using ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: Release new version
23+
id: release
24+
run: |
25+
npm ci
26+
npm run release
27+
env:
28+
CI: true
29+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
30+
GIT_AUTHOR_NAME: themeisle[bot]
31+
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_EMAIL }}
32+
GIT_COMMITTER_NAME: themeisle[bot]
33+
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }}
34+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_ANNOUNCEMENTS }}
35+
SEMANTIC_RELEASE_PACKAGE: Hyve Lite
36+
empty-job:
37+
# if no jobs run, github action considers it a test failure -- which seems like a bug
38+
# this makes it so the top-level if statement for the job does not give status failure.
39+
runs-on: ubuntu-latest
40+
if: success()
41+
steps:
42+
- name: Meep
43+
run: |
44+
echo "Nothing to do"

.github/workflows/deploy.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
tag:
8+
name: Deploy to WordPress.org
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Get the version
13+
id: get_version
14+
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
15+
- name: Install composer deps
16+
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
17+
- name: Install npm deps
18+
run: npm ci
19+
- name: Build files
20+
run: npm run build
21+
- name: Build zip
22+
run: npm run dist
23+
- name: Upload Latest Version to S3
24+
uses: jakejarvis/s3-sync-action@master
25+
with:
26+
args: --acl public-read --follow-symlinks --delete
27+
env:
28+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }}
29+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }}
30+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }}
31+
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1
32+
SOURCE_DIR: 'artifact' # optional: defaults to entire repository
33+
DEST_DIR: ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/hyve-lite/latest
34+
- name: Upload Tagged Version to S3
35+
uses: jakejarvis/s3-sync-action@master
36+
with:
37+
args: --acl public-read --follow-symlinks --delete
38+
env:
39+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }}
40+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }}
41+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }}
42+
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1
43+
SOURCE_DIR: 'artifact' # optional: defaults to entire repository
44+
DEST_DIR: ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/hyve-lite/$BUILD_VERSION
45+
- name: Send update to the store
46+
env:
47+
PRODUCT_ID: ${{ secrets.THEMEISLE_ID }}
48+
AUTH_TOKEN: ${{ secrets.THEMEISLE_STORE_AUTH }}
49+
STORE_URL: ${{ secrets.THEMEISLE_STORE_URL }}
50+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
51+
BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }}
52+
uses: Codeinwp/action-store-release@main

.github/workflows/issue-labeler.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Issue Labeler"
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
triage:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: github/issue-labeler@master
11+
with:
12+
repo-token: "${{ secrets.BOT_TOKEN }}"
13+
enable-versioned-regex: 0
14+
configuration-path: .github/labeler.yml

0 commit comments

Comments
 (0)