Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update architecture #241

Merged
merged 14 commits into from
Mar 27, 2024
Merged
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
  •  
  •  
  •  
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .github/FUNDING.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/config.yml
100644 → 100755
Empty file.
Empty file modified .github/SECURITY.md
100644 → 100755
Empty file.
Empty file modified .github/workflows/monorepo-split.yml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion .github/workflows/npm-build.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: yarn install --frozen-lockfile

- name: Build assets
run: yarn build
run: yarn run build

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/phpstan.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.1", "8.2"]
laravel: ["^9.0", "^10.0"]
php: [8.2]
laravel: [10.*]
dependencies: ["highest"]

name: "PHP ${{ matrix.php }} - L${{ matrix.laravel }} ${{ matrix.dependencies == 'highest' && '↑' || '↓' }}"
name: "PHP ${{ matrix.php }} - L${{ matrix.laravel }} ${{ matrix.dependencies == 'highest' && '↑' || '↓' }}"

runs-on: "ubuntu-latest"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout code"
uses: "actions/checkout@v3"
steps:
- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
extensions: "dom, curl, libxml, mbstring, zip, fileinfo"
tools: "composer:v2"
coverage: "none"
- name: "Setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
extensions: "dom, curl, libxml, mbstring, zip, fileinfo"
tools: "composer:v2"
coverage: "none"

- name: "Install dependencies from composer.json"
if: "matrix.dependencies != 'lowest'"
run: "composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress"
- name: "Install dependencies from composer.json"
if: "matrix.dependencies != 'lowest'"
run: "composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress"

- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress --prefer-lowest"
- name: "Install lowest dependencies from composer.json"
if: "matrix.dependencies == 'lowest'"
run: "composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress --prefer-lowest"

- name: "Run PHPStan"
run: ./vendor/bin/phpstan
- name: "Run PHPStan"
run: ./vendor/bin/phpstan
Empty file modified .github/workflows/pint.yml
100644 → 100755
Empty file.
63 changes: 35 additions & 28 deletions .github/workflows/tests.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,38 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1]
laravel: [10.*, 9.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: intl, mbstring, pdo, pdo_sqlite
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: ./vendor/bin/pest --verbose
php: [8.2]
laravel: [10.*]
phpunit-versions: ['latest']
name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl, amqp, dba
tools: composer:v2, phpunit:${{ matrix.php }}

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --dev
composer update --prefer-stable --no-interaction --no-suggest

- name: Execute tests (Unit and Feature tests)
env:
APP_ENV: testing
DB_CONNECTION: testing
DB_DATABASE: ":memory:"
run: ./vendor/bin/pest --verbose
Empty file modified .github/workflows/update-changelog.yml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/.idea
/.vscode
/**/node_modules
/node_modules
/node_modules.nosync
yarn-error.log
/**/vendor
Expand Down
Empty file modified .prettierignore
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified LICENSE.md
100644 → 100755
Empty file.
5 changes: 4 additions & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
</a>
</p>

> [!CAUTION]
> This branch is Work In Progress and should not be considered production-ready.

## Introduction

[Shopper](https://laravelshopper.io) is an Admin Management build for Laravel 9.0+ which includes all the necessary for your online market application.
[Shopper](https://laravelshopper.io) is a Headless e-commerce Admin Panel build for Laravel 10.0+ which includes all the necessary for your online store application.
Web Application has made using Laravel. We feel building ecommerce websites has become a convoluted and confusing process that leaves developers unsatisfied.
We want to turn you around to the simpler side and get back to basics.

Expand Down
13 changes: 7 additions & 6 deletions composer.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,28 @@
"license": "MIT",
"keywords": [
"e-commerce",
"Tallstack",
"Store"
"tallstack",
"store"
],
"authors": [
{
"name": "Arthur Monney",
"email": "[email protected]"
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-intl": "*",
"composer-runtime-api": "^2.1"
},
"require-dev": {
"blade-ui-kit/blade-heroicons": "^1.2",
"blade-ui-kit/blade-heroicons": "^2.0",
"danharrin/livewire-rate-limiting": "^0.3|^1.0",
"doctrine/dbal": "^3.6",
"larastan/larastan": "^2.0",
"laravel/pint": "^1.1",
"laravel/framework": "^10.0|^11.0",
"mockery/mockery": "^1.4",
"nunomaduro/collision": "^5.11|^6.1",
"orchestra/testbench": "^7.0|^8.0",
Expand Down Expand Up @@ -70,7 +72,6 @@
}
},
"scripts": {
"baseline": "./vendor/bin/phpstan analyse --generate-baseline",
"pint": "./vendor/bin/pint",
"pest": "./vendor/bin/pest",
"stan": "./vendor/bin/phpstan analyse --memory-limit=1G"
Expand Down
Loading
Loading