Skip to content

Commit

Permalink
Init (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Jan 29, 2025
1 parent 73d4473 commit 65941a0
Show file tree
Hide file tree
Showing 13 changed files with 108 additions and 376 deletions.
27 changes: 6 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
# Rapidez :package_name_without_prefix
<!--delete-->
This repository can be used as template for a new Rapidez package.
# Rapidez demo-helper

- Click on "Use this template" on the top of this Github repo page
- Run `php ./configure.php`
This package contains some of the code used specifically for https://demo.rapidez.io

Credits to [`spatie/package-skeleton-laravel`](https://github.com/spatie/package-skeleton-laravel) for the inpiration for this template.

Keep in mind that if you contribute to this template; it should work for official and unofficial packages!
- `rapidez/something`
- `someone/rapidez-something`
<!--/delete-->
:package_description
It includes a middleware that sets specific configuration values based on the user's session.

## Installation

```
composer require :vendor_slug/:package_slug
```

## Configuration

You can publish the config with:
```
php artisan vendor:publish --tag=rapidez-:package_slug_without_prefix-config
composer config repositories.demo-helper vcs https://github.com/rapidez/demo-helper.git
composer require rapidez/demo-helper
```

## Views

You can publish the views with:
```
php artisan vendor:publish --tag=rapidez-:package_slug_without_prefix-views
php artisan vendor:publish --tag=rapidez-demo-helper-views
```

## License
Expand Down
28 changes: 18 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
{
"name": ":vendor_slug/:package_slug",
"description": ":package_description",
"name": "rapidez/demo-helper",
"description": "This package contains some of the code used specifically for https://demo.rapidez.io",
"keywords": [
"rapidez",
":package_slug"
"demo-helper"
],
"homepage": "https://github.com/:vendor_slug/:package_slug",
"homepage": "https://demo.rapidez.io",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": ":author_name",
"email": "author@domain.com",
"name": "indy koning",
"email": "indy@justbetter.nl",
"role": "Developer"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.1|^8.2",
"rapidez/core": "^2.0|^3.0"
"php": "^8.1|^8.2|^8.3",
"rapidez/core": "^3.0"
},
"require-dev": {
"larastan/larastan": "^2.9",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^10.5.34|^11.3.5"
},
"autoload": {
"psr-4": {
"VendorName\\Skeleton\\": "src"
"Rapidez\\DemoHelper\\": "src"
}
},
"config": {
Expand All @@ -31,8 +36,11 @@
"extra": {
"laravel": {
"providers": [
"VendorName\\Skeleton\\SkeletonServiceProvider"
"Rapidez\\DemoHelper\\DemoHelperServiceProvider"
]
}
},
"scripts": {
"analyse": "phpstan --memory-limit=256M"
}
}
4 changes: 0 additions & 4 deletions config/rapidez/skeleton.php

This file was deleted.

217 changes: 0 additions & 217 deletions configure.php

This file was deleted.

35 changes: 0 additions & 35 deletions resources/js/components/Example.vue

This file was deleted.

15 changes: 0 additions & 15 deletions resources/js/package.js

This file was deleted.

Empty file.
7 changes: 7 additions & 0 deletions resources/views/top-bar.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@return(!request()->routeIs('checkout'))
<div class="w-screen bg-white my-2">
<div class="container py-2 text-center">
<x-rapidez::button.outline class="min-h-0" href="/checkout?checkout=default">@lang('default checkout')</x-rapidez::button.outline>
<x-rapidez::button.outline class="min-h-0" href="/checkout?checkout=onestep">@lang('onestep checkout')</x-rapidez::button.outline>
</div>
</div>
5 changes: 0 additions & 5 deletions routes/api.php

This file was deleted.

5 changes: 0 additions & 5 deletions routes/web.php

This file was deleted.

Loading

0 comments on commit 65941a0

Please sign in to comment.