Package skeleton update
Test / test_all (push) Successful in 17s
Details
Test / test_all (push) Successful in 17s
Details
parent
532853e944
commit
25e5682546
|
@ -0,0 +1,27 @@
|
||||||
|
name: Test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test_all:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
container: git.gertjankrol.nl/docker/php-toolkit:latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: composer install
|
||||||
|
run: composer install --profile
|
||||||
|
- name: phpunit
|
||||||
|
run: composer unit
|
||||||
|
- name: phplint
|
||||||
|
run: composer lint
|
||||||
|
- name: phpcs
|
||||||
|
run: composer style
|
||||||
|
- name: composer require check
|
||||||
|
run: composer require-check
|
||||||
|
- name: composer security check
|
||||||
|
run: composer security-check
|
||||||
|
- name: composer unused package check
|
||||||
|
run: composer unused-check
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) Author
|
Copyright (c) 2023 - Gertjan Krol
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
11
README.md
11
README.md
|
@ -20,10 +20,13 @@ composer require crawl/skeleton
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
- Run PHPUnit: `composer unit`
|
||||||
```bash
|
- Run PHPLint: `composer lint`
|
||||||
composer test
|
- Run PHPCS/PHPCBF: `composer style`/`composer fix-style`
|
||||||
```
|
- Run require checker: `composer require-check`
|
||||||
|
- Run security checker: `composer security-check`
|
||||||
|
- Check for unused packages: `composer unused-check`
|
||||||
|
- **Run all tests: `composer test-all`**
|
||||||
|
|
||||||
### Changelog
|
### Changelog
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,31 @@
|
||||||
{
|
{
|
||||||
"name": "crawl/skeleton",
|
"name": "crawl/skeleton",
|
||||||
"description": "Crawl Laravel package skeleton",
|
"description": "Crawl Laravel package skeleton",
|
||||||
|
"license": "MIT",
|
||||||
|
"type": "library",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"crawl",
|
"crawl",
|
||||||
"skeleton"
|
"skeleton"
|
||||||
],
|
],
|
||||||
"homepage": "https://git.gertjankrol.nl/crawl/skeleton",
|
|
||||||
"license": "MIT",
|
|
||||||
"type": "library",
|
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Gertjan Krol",
|
"name": "Gertjan Krol",
|
||||||
"email": "hello@gertjankrol.nl"
|
"email": "hello@gertjankrol.nl"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"homepage": "https://git.gertjankrol.nl/crawl/skeleton",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.2",
|
||||||
"illuminate/support": "^9.25"
|
"laravel/framework": "^10.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"crawl/coding-standard": "^1.1",
|
||||||
"enlightn/security-checker": "^1.10",
|
"enlightn/security-checker": "^1.10",
|
||||||
"crawl/coding-standard": "^1.0",
|
"ergebnis/composer-normalize": "^2.31",
|
||||||
|
"icanhazstring/composer-unused": "^0.8.8",
|
||||||
|
"maglnet/composer-require-checker": "^4.6",
|
||||||
"mockery/mockery": "^1.5",
|
"mockery/mockery": "^1.5",
|
||||||
|
"orchestra/testbench": "^8.5",
|
||||||
"overtrue/phplint": "^4.3",
|
"overtrue/phplint": "^4.3",
|
||||||
"phpunit/phpunit": "^9.5"
|
"phpunit/phpunit": "^9.5"
|
||||||
},
|
},
|
||||||
|
@ -35,28 +39,39 @@
|
||||||
"Crawl\\Skeleton\\Tests\\": "tests"
|
"Crawl\\Skeleton\\Tests\\": "tests"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
|
||||||
"lint": "vendor/bin/phplint ./ --exclude=vendor",
|
|
||||||
"style": "vendor/bin/phpcs --standard=phpcs.xml",
|
|
||||||
"fix-style": "vendor/bin/phpcbf --standard=phpcs.xml",
|
|
||||||
"security-checker": "vendor/bin/security-checker security:check composer.lock",
|
|
||||||
"test": "vendor/bin/phpunit --configuration phpunit.xml --colors=never"
|
|
||||||
},
|
|
||||||
"config": {
|
"config": {
|
||||||
"optimize-autoloader": true,
|
|
||||||
"sort-packages": true,
|
|
||||||
"allow-plugins": {
|
"allow-plugins": {
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
"dealerdirect/phpcodesniffer-composer-installer": true,
|
||||||
}
|
"ergebnis/composer-normalize": true
|
||||||
|
},
|
||||||
|
"optimize-autoloader": true,
|
||||||
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"laravel": {
|
"laravel": {
|
||||||
"providers": [
|
|
||||||
"Crawl\\Skeleton\\SkeletonServiceProvider"
|
|
||||||
],
|
|
||||||
"aliases": {
|
"aliases": {
|
||||||
"Skeleton": "Crawl\\Skeleton\\SkeletonFacade"
|
"Skeleton": "Crawl\\Skeleton\\SkeletonFacade"
|
||||||
}
|
},
|
||||||
|
"providers": [
|
||||||
|
"Crawl\\Skeleton\\SkeletonServiceProvider"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"fix-style": "vendor/bin/phpcbf --standard=phpcs.xml",
|
||||||
|
"lint": "vendor/bin/phplint ./ --exclude=vendor",
|
||||||
|
"require-check": "vendor/bin/composer-require-checker check composer.json",
|
||||||
|
"security-check": "vendor/bin/security-checker security:check composer.lock",
|
||||||
|
"style": "vendor/bin/phpcs --standard=phpcs.xml",
|
||||||
|
"test-all": [
|
||||||
|
"composer unit",
|
||||||
|
"composer lint",
|
||||||
|
"composer style",
|
||||||
|
"composer require-check",
|
||||||
|
"composer security-check",
|
||||||
|
"composer unused-check"
|
||||||
|
],
|
||||||
|
"unit": "vendor/bin/phpunit --configuration phpunit.xml --colors=never",
|
||||||
|
"unused-check": "vendor/bin/composer-unused"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
"build": "vite build"
|
"build": "vite build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"laravel-vite-plugin": "^0.5",
|
"laravel-vite-plugin": "^0.7",
|
||||||
"vite": "^3.0"
|
"sass": "^1.62",
|
||||||
|
"vite": "^4.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
13
phpunit.xml
13
phpunit.xml
|
@ -1,10 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
|
||||||
<coverage processUncoveredFiles="true">
|
<coverage/>
|
||||||
<include>
|
|
||||||
<directory suffix=".php">./src</directory>
|
|
||||||
</include>
|
|
||||||
</coverage>
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Unit">
|
<testsuite name="Unit">
|
||||||
<directory suffix="Test.php">./tests/</directory>
|
<directory suffix="Test.php">./tests/</directory>
|
||||||
|
@ -13,4 +9,9 @@
|
||||||
<php>
|
<php>
|
||||||
|
|
||||||
</php>
|
</php>
|
||||||
|
<source>
|
||||||
|
<include>
|
||||||
|
<directory suffix=".php">./src</directory>
|
||||||
|
</include>
|
||||||
|
</source>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"resources/js/app.js": {
|
"resources/js/app.js": {
|
||||||
"file": "app.cdb7ca6c.js",
|
"file": "app.js",
|
||||||
"src": "resources/js/app.js",
|
"isEntry": true,
|
||||||
"isEntry": true
|
"src": "resources/js/app.js"
|
||||||
},
|
},
|
||||||
"resources/sass/app.scss": {
|
"resources/sass/app.scss": {
|
||||||
"file": "app.923f0842.css",
|
"file": "app.css",
|
||||||
"src": "resources/sass/app.scss",
|
"isEntry": true,
|
||||||
"isEntry": true
|
"src": "resources/sass/app.scss"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,7 +4,12 @@ import laravel from 'laravel-vite-plugin';
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {
|
build: {
|
||||||
outDir: 'public',
|
outDir: 'public',
|
||||||
assetsDir: '',
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
entryFileNames: `[name].js`,
|
||||||
|
assetFileNames: `[name].[ext]`
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
laravel({
|
laravel({
|
||||||
|
@ -13,8 +18,6 @@ export default defineConfig({
|
||||||
'resources/js/app.js',
|
'resources/js/app.js',
|
||||||
],
|
],
|
||||||
refresh: false,
|
refresh: false,
|
||||||
publicDirectory: 'public',
|
|
||||||
buildDirectory: '.',
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
});
|
});
|
Loading…
Reference in New Issue