Skip to content

Commit abb0bb3

Browse files
committed
initial
0 parents  commit abb0bb3

File tree

103 files changed

+16609
-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

+16609
-0
lines changed

.editorconfig

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

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text=auto eol=lf
2+
/.github export-ignore
3+
.scrutinizer.yml export-ignore
4+
BACKERS.md export-ignore
5+
CONTRIBUTING.md export-ignore
6+
CHANGELOG.md export-ignore
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Bug Report
2+
description: Report a bug or unexpected behavior
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to report this bug!
10+
11+
- type: textarea
12+
id: description
13+
attributes:
14+
label: Bug Description
15+
description: A clear and concise description of what the bug is.
16+
placeholder: Tell us what you see!
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: reproduction
22+
attributes:
23+
label: Steps To Reproduce
24+
description: Steps to reproduce the behavior.
25+
placeholder: |
26+
1. Run command '...'
27+
2. With options '...'
28+
3. See error
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
id: expected
34+
attributes:
35+
label: Expected Behavior
36+
description: What did you expect to happen?
37+
placeholder: Describe the expected behavior
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: actual
43+
attributes:
44+
label: Actual Behavior
45+
description: What actually happened?
46+
placeholder: Describe the actual behavior
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
id: environment
52+
attributes:
53+
label: Environment
54+
description: Please provide details about your environment
55+
value: |
56+
- illuminate-cli version:
57+
- PHP version:
58+
- OS:
59+
- Installation method (global composer, local, etc):
60+
validations:
61+
required: true
62+
63+
- type: textarea
64+
id: additional
65+
attributes:
66+
label: Additional Context
67+
description: Add any other context about the problem here (error messages, screenshots, etc.)
68+
placeholder: Any additional information that might help
69+
validations:
70+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Question or Discussion
4+
url: https://github.com/surgiie/illuminate-cli/discussions
5+
about: Ask questions or discuss ideas
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Feature Request
2+
description: Suggest a new feature or enhancement
3+
title: "[Feature]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for suggesting a new feature!
10+
11+
- type: textarea
12+
id: description
13+
attributes:
14+
label: Feature Description
15+
description: A clear and concise description of the feature you'd like to see.
16+
placeholder: Describe the feature
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: problem
22+
attributes:
23+
label: Problem Statement
24+
description: What problem does this feature solve? Is your feature request related to a problem?
25+
placeholder: "I'm frustrated when..."
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: solution
31+
attributes:
32+
label: Proposed Solution
33+
description: How would you like this feature to work?
34+
placeholder: Describe your ideal solution
35+
validations:
36+
required: true
37+
38+
- type: textarea
39+
id: alternatives
40+
attributes:
41+
label: Alternatives Considered
42+
description: What alternative solutions or features have you considered?
43+
placeholder: Describe any alternative approaches
44+
validations:
45+
required: false
46+
47+
- type: textarea
48+
id: examples
49+
attributes:
50+
label: Usage Example
51+
description: Provide an example of how you would use this feature
52+
placeholder: |
53+
```bash
54+
illuminate example:command --option
55+
```
56+
validations:
57+
required: false
58+
59+
- type: textarea
60+
id: additional
61+
attributes:
62+
label: Additional Context
63+
description: Add any other context, screenshots, or examples about the feature request.
64+
placeholder: Any additional information
65+
validations:
66+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## Description
2+
3+
<!-- Provide a clear and concise description of your changes -->
4+
5+
## Type of Change
6+
7+
<!-- Mark the relevant option with an 'x' -->
8+
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] Documentation update
13+
- [ ] Code quality improvement (refactoring, optimization, etc.)
14+
15+
## Motivation and Context
16+
17+
<!-- Why is this change required? What problem does it solve? -->
18+
<!-- If it fixes an open issue, please link to the issue here -->
19+
20+
Fixes #(issue)
21+
22+
## Testing
23+
24+
<!-- Describe the tests you ran to verify your changes -->
25+
<!-- Provide instructions so reviewers can reproduce -->
26+
27+
- [ ] I have added tests that prove my fix is effective or that my feature works
28+
- [ ] New and existing tests pass locally with my changes
29+
30+
## Checklist
31+
32+
<!-- Mark completed items with an 'x' -->
33+
34+
- [ ] My code follows the code style of this project
35+
- [ ] I have run `composer format` to ensure code formatting
36+
- [ ] I have run `composer phpstan` and resolved any issues
37+
- [ ] I have run `composer test` and all tests pass
38+
- [ ] I have updated the documentation accordingly
39+
- [ ] I have added tests to cover my changes
40+
- [ ] All new and existing tests pass
41+
- [ ] My changes generate no new warnings or errors
42+
- [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) guidelines
43+
44+
## Screenshots (if appropriate)
45+
46+
<!-- Add screenshots to help explain your changes -->
47+
48+
## Additional Notes
49+
50+
<!-- Add any other context about the pull request here -->

.github/workflows/format.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Format
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
paths:
8+
- "app/**"
9+
- "tests/**"
10+
- "config/**"
11+
12+
jobs:
13+
format:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 5
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 2
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: '8.2'
26+
coverage: none
27+
28+
- name: Install composer dependencies
29+
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-curl
30+
31+
- name: Format files with Laravel Pint
32+
run: composer format
33+
34+
- name: Commit changes
35+
uses: stefanzweifel/git-auto-commit-action@v5
36+
with:
37+
commit_message: Apply formatting changes [skip actions]
38+
branch: ${{ github.head_ref }}

.github/workflows/phpstan.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "app/**"
8+
- "config/**"
9+
- "bootstrap/**"
10+
- "phpstan.neon"
11+
pull_request:
12+
branches: [main]
13+
paths:
14+
- "app/**"
15+
- "config/**"
16+
- "bootstrap/**"
17+
- "phpstan.neon"
18+
19+
jobs:
20+
phpstan:
21+
runs-on: ubuntu-latest
22+
timeout-minutes: 10
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Setup PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: '8.2'
31+
coverage: none
32+
33+
- name: Validate composer.json and composer.lock
34+
run: composer validate --strict
35+
36+
- name: Cache Composer packages
37+
id: composer-cache
38+
uses: actions/cache@v4
39+
with:
40+
path: vendor
41+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
42+
restore-keys: |
43+
${{ runner.os }}-php-
44+
45+
- name: Install dependencies
46+
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-curl
47+
48+
- name: Run PHPStan
49+
run: composer phpstan

.github/workflows/tests.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "app/**"
8+
- "tests/**"
9+
- "composer.json"
10+
- "composer.lock"
11+
pull_request:
12+
branches: [main]
13+
paths:
14+
- "app/**"
15+
- "tests/**"
16+
- "composer.json"
17+
- "composer.lock"
18+
19+
jobs:
20+
tests:
21+
if: ${{ github.actor != 'github-actions[bot]' }}
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 10
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: '8.2'
32+
coverage: none
33+
34+
- name: Validate composer.json and composer.lock
35+
run: composer validate --strict
36+
37+
- name: Cache Composer packages
38+
id: composer-cache
39+
uses: actions/cache@v4
40+
with:
41+
path: vendor
42+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
43+
restore-keys: |
44+
${{ runner.os }}-php-
45+
46+
- name: Install dependencies
47+
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-curl
48+
49+
- name: Run test suite
50+
run: composer test

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/vendor
2+
/.idea
3+
/.vscode
4+
/.vagrant
5+
.phpunit.result.cache
6+
tests/workspace
7+
storage/framework/cache
8+
storage/framework/compiled

0 commit comments

Comments
 (0)