Skip to content

Commit 84fceb0

Browse files
committed
first commit
0 parents  commit 84fceb0

File tree

281 files changed

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

281 files changed

+18033
-0
lines changed

.editorconfig

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

.eslintrc.cjs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
extends: [
3+
"eslint:recommended",
4+
"plugin:vue/vue3-recommended",
5+
"plugin:vue/vue3-essential",
6+
"plugin:vue/vue3-strongly-recommended"
7+
],
8+
rules: {
9+
"no-undef": 0,
10+
"vue/multi-word-component-names": 0,
11+
"vue/no-v-html": 0,
12+
"vue/require-default-prop": 0,
13+
"indent": ["error", 4],
14+
"quotes": ["error", "double"],
15+
}
16+
}

.gitattributes

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.github export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/phpunit.xml.dist export-ignore
9+
/art export-ignore
10+
/docs export-ignore
11+
/tests export-ignore
12+
/.editorconfig export-ignore
13+
/.php_cs.dist.php export-ignore
14+
/psalm.xml export-ignore
15+
/psalm.xml.dist export-ignore
16+
/testbench.yaml export-ignore
17+
/UPGRADING.md export-ignore
18+
/phpstan.neon.dist export-ignore
19+
/phpstan-baseline.neon export-ignore

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [pascalbaljet]

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
labels:
12+
- "dependencies"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: dependabot-auto-merge
2+
on: pull_request_target
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'dependabot[bot]' }}
12+
steps:
13+
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/[email protected]
17+
with:
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"
19+
20+
- name: Auto-merge Dependabot PRs for semver-minor updates
21+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
27+
- name: Auto-merge Dependabot PRs for semver-patch updates
28+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
29+
run: gh pr merge --auto --merge "$PR_URL"
30+
env:
31+
PR_URL: ${{github.event.pull_request.html_url}}
32+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Fix JS code style issues
2+
3+
on: [push]
4+
5+
jobs:
6+
js-code-styling:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version:
12+
- 16
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
with:
18+
ref: ${{ github.head_ref }}
19+
20+
- name: "Install Node"
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: "${{ matrix.node-version }}"
24+
25+
- name: Cache node modules
26+
id: cache-npm
27+
uses: actions/cache@v3
28+
env:
29+
cache-name: cache-node-modules
30+
with:
31+
# npm cache files are stored in `~/.npm` on Linux/macOS
32+
path: ~/.npm
33+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
34+
restore-keys: |
35+
${{ runner.os }}-build-${{ env.cache-name }}-
36+
${{ runner.os }}-build-
37+
${{ runner.os }}-
38+
39+
- if: ${{ steps.cache-npm.outputs.cache-hit == 'false' }}
40+
name: List the state of node modules
41+
continue-on-error: true
42+
run: npm list
43+
44+
- name: "Install locked dependencies with npm"
45+
run: "npm ci --ignore-scripts"
46+
47+
- name: "Run eslint"
48+
run: "npm run eslint"
49+
50+
- name: Commit changes
51+
uses: stefanzweifel/git-auto-commit-action@v4
52+
with:
53+
commit_message: Fix styling
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Fix PHP code style issues
2+
3+
on: [push]
4+
5+
jobs:
6+
php-code-styling:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
with:
13+
ref: ${{ github.head_ref }}
14+
15+
- name: Fix PHP code style issues
16+
uses: aglipanci/[email protected]
17+
18+
- name: Commit changes
19+
uses: stefanzweifel/git-auto-commit-action@v4
20+
with:
21+
commit_message: Fix styling

.github/workflows/run-tests.yml

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [8.1, 8.0]
12+
laravel: [9.*]
13+
dependency-version: [prefer-lowest, prefer-stable]
14+
15+
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
- name: Cache node modules
22+
id: cache-npm
23+
uses: actions/cache@v3
24+
env:
25+
cache-name: cache-node-modules
26+
with:
27+
# npm cache files are stored in `~/.npm` on Linux/macOS
28+
path: ~/.npm
29+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: |
31+
${{ runner.os }}-build-${{ env.cache-name }}-
32+
${{ runner.os }}-build-
33+
${{ runner.os }}-
34+
35+
- if: ${{ steps.cache-npm.outputs.cache-hit == 'false' }}
36+
name: List the state of node modules
37+
continue-on-error: true
38+
run: npm list
39+
40+
- name: "Install locked dependencies with npm"
41+
run: |
42+
npm ci --ignore-scripts
43+
44+
- name: Build package
45+
run: |
46+
npm run build
47+
npm pack
48+
rm -rf node_modules
49+
50+
- name: Setup PHP
51+
uses: shivammathur/setup-php@v2
52+
with:
53+
php-version: ${{ matrix.php }}
54+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
55+
coverage: none
56+
57+
- name: Prepare demo app
58+
run: |
59+
cd app
60+
npm upgrade
61+
cp .env.example .env
62+
touch database/database.sqlite
63+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
64+
npm run build
65+
php artisan migrate:fresh --seed
66+
php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`
67+
68+
- name: Start Chrome Driver
69+
run: |
70+
cd app
71+
./vendor/laravel/dusk/bin/chromedriver-linux &
72+
73+
- name: Start Laravel Websockets
74+
run: |
75+
cd app
76+
php artisan websockets:serve &
77+
78+
- name: Run Laravel Server
79+
run: |
80+
cd app
81+
php artisan serve &
82+
83+
- name: Execute tests
84+
run: |
85+
cd app
86+
php artisan dusk
87+
88+
- name: Upload Screenshots
89+
if: failure()
90+
uses: actions/upload-artifact@v2
91+
with:
92+
name: screenshots
93+
path: app/tests/Browser/screenshots
94+
95+
- name: Upload Snapshots
96+
if: failure()
97+
uses: actions/upload-artifact@v2
98+
with:
99+
name: snapshots
100+
path: app/tests/Browser/__snapshots__
101+
102+
- name: Upload Console Logs
103+
if: failure()
104+
uses: actions/upload-artifact@v2
105+
with:
106+
name: console
107+
path: app/tests/Browser/console
108+
109+
- name: Upload Logs
110+
if: failure()
111+
uses: actions/upload-artifact@v2
112+
with:
113+
name: logs
114+
path: app/storage/logs
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
with:
15+
ref: main
16+
17+
- name: Update Changelog
18+
uses: stefanzweifel/changelog-updater-action@v1
19+
with:
20+
latest-version: ${{ github.event.release.name }}
21+
release-notes: ${{ github.event.release.body }}
22+
23+
- name: Commit updated CHANGELOG
24+
uses: stefanzweifel/git-auto-commit-action@v4
25+
with:
26+
branch: main
27+
commit_message: Update CHANGELOG
28+
file_pattern: CHANGELOG.md

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
.idea
3+
.phpunit.result.cache
4+
build
5+
composer.lock
6+
coverage
7+
docs
8+
phpunit.xml
9+
phpstan.neon
10+
testbench.yaml
11+
vendor
12+
node_modules
13+
protonemedia-laravel-splade-*.tgz

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"volar.completion.preferredTagNameCase": "pascal",
3+
"eslint.format.enable": true,
4+
"[vue]": {
5+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
6+
}
7+
}

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to `laravel-splade` will be documented in this file.

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) protonemedia <[email protected]>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)