Skip to content

Commit 76163c6

Browse files
committed
Repo split
0 parents  commit 76163c6

File tree

103 files changed

+28878
-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.

103 files changed

+28878
-0
lines changed

.gitattributes

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/.github/ export-ignore
2+
/.husky/ export-ignore
3+
4+
/.gitattributes export-ignore
5+
/.gitignore export-ignore
6+
/.lintstagedrc.json export-ignore
7+
/.prettierignore export-ignore
8+
/.prettierrc.json export-ignore
9+
/.releaserc.yaml export-ignore
10+
/composer.lock export-ignore
11+
/ecs.php export-ignore
12+
/package.json export-ignore
13+
/package-lock.json export-ignore
14+
/phpstan.neon export-ignore
15+
/webpack.config.js export-ignore
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug Report
3+
about: Report an issue or unexpected behavior with the craftcms/cloud extension.
4+
labels:
5+
- bug # Linear
6+
- Cloud Extension # Linear
7+
---
8+
9+
### Description
10+
11+
12+
13+
### Steps to reproduce
14+
15+
1.
16+
2.
17+
18+
### Additional info
19+
20+
- `craftcms/cms` version:
21+
- `craftcms/cloud` version:
22+
- PHP version:
23+
- Database driver & version:
24+
- Plugins & versions:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Craft Cloud Issue
4+
url: https://craftcms.com/support-services
5+
about: Report a issue with Craft Cloud
6+
- name: Feature Request
7+
url: https://github.com/craftcms/cloud/discussions/new?category=feature-requests-enhancements
8+
about: Start a new discussion about your idea

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- 1.x
7+
- 2.x
8+
pull_request:
9+
permissions:
10+
contents: read
11+
concurrency:
12+
group: ci-${{ github.ref }}
13+
cancel-in-progress: true
14+
jobs:
15+
code-quality:
16+
name: Code Quality
17+
uses: craftcms/.github/.github/workflows/code-quality.yml@v3
18+
with:
19+
node_version: '18'
20+
php_version: '8.1'
21+
jobs: '["ecs", "phpstan", "prettier"]'

.github/workflows/split.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Split Packages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- 'cloud/[0-9]*'
9+
- 'cloud-ops/[0-9]*'
10+
workflow_dispatch:
11+
12+
jobs:
13+
split:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
package:
19+
- name: cloud
20+
path: packages/cloud
21+
prefix: cloud/
22+
- name: cloud-ops
23+
path: packages/cloud-ops
24+
prefix: cloud-ops/
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Determine tag
33+
id: tag
34+
run: |
35+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
36+
TAG="${{ github.ref_name }}"
37+
PREFIX="${{ matrix.package.prefix }}"
38+
if [[ "$TAG" == ${PREFIX}* ]]; then
39+
echo "tag=${TAG#$PREFIX}" >> $GITHUB_OUTPUT
40+
echo "should_run=true" >> $GITHUB_OUTPUT
41+
else
42+
echo "should_run=false" >> $GITHUB_OUTPUT
43+
fi
44+
else
45+
echo "should_run=true" >> $GITHUB_OUTPUT
46+
echo "tag=" >> $GITHUB_OUTPUT
47+
fi
48+
49+
- name: Split ${{ matrix.package.name }}
50+
if: steps.tag.outputs.should_run == 'true'
51+
uses: symplify/monorepo-split-github-action@v2.3.0
52+
with:
53+
package_directory: ${{ matrix.package.path }}
54+
repository_organization: craftcms
55+
repository_name: ${{ matrix.package.name }}
56+
user_name: 'craftcms'
57+
user_email: 'github@craftcms.com'
58+
tag: ${{ steps.tag.outputs.tag }}
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.CLOUD_SPLIT_REPO_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
vendor
2+
node_modules
3+
.env
4+
packages/cloud/tests/_output
5+
packages/cloud/tests/.env
6+
packages/cloud/tests/_support/_generated

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npx lint-staged
2+
composer run phpstan analyse

.lintstagedrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"**/*.php": ["composer run fix-cs"],
3+
"*": "prettier --ignore-unknown --write"
4+
}

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.md
2+
*.php
3+
composer.lock
4+
src/templates/*
5+
vendor/*
6+
src/web/assets/**/dist

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"bracketSpacing": false,
4+
"vueIndentScriptAndStyle": true
5+
}

0 commit comments

Comments
 (0)