Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed May 15, 2023
1 parent 5d09b4d commit 252fdd8
Show file tree
Hide file tree
Showing 4 changed files with 690 additions and 1,026 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public/tmp/
storage/build/*
storage/data/*.sqlit*
.env.ini

dist.tar
36 changes: 0 additions & 36 deletions .packageignore

This file was deleted.

39 changes: 26 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"type": "project",
"license": "MIT",
"require": {
"php": "^7.3",
"bcosca/fatfree": "^3.7.3"
"php": "^7.4 || ^8.0",
"bcosca/fatfree-core": "^3.8.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.17.3",
"phpunit/phpunit": "^9.5.0",
"mockery/mockery": "^1.4.2"
"friendsofphp/php-cs-fixer": "^3.16.0",
"phpunit/phpunit": "^9.6.8",
"mockery/mockery": "^1.5.1"
},
"autoload": {
"psr-4": {
Expand All @@ -27,25 +27,38 @@
"phpcs": "phpcs",
"phpcs:fix": "phpcbf -w",
"app:clear": [
"rm -rf ./storage/build",
"mkdir -p ./storage/build",
"rm -f dist.tar",
"rm -f ./storage/cache/*.*",
"rm -f ./public/tmp/cache/*.*",
"rm -f ./storage/data/*.sqli*",
"composer dump-autoload"
],
"app:package": [
"composer app:clear",
"composer update",
"COPYFILE_DISABLE=1 tar -X './.packageignore' -zcvf ./storage/build/dist.tar.gz ./"
"composer install --no-dev --optimize-autoloader",
"composer archive",
"mv dist-*.tar dist.tar",
"tar -rvf dist.tar vendor"
],
"app:production": [
"composer app:clear",
"echo 'composer install --no-dev --optimize-autoloader'"
],
"docker:clear": [
"rm -rf .docker/data/mysql/*",
"rm -rf .docker/logs/*"
]
},
"archive": {
"name": "dist",
"exclude": [
".docker/",
"coverage/",
"dist/",
"node_modules/",
"tests/",
"vendor/",
".DS_Store",
".env",
".phpunit.result.cache",
"*.md",
"*.xml"
]
}
}
Loading

0 comments on commit 252fdd8

Please sign in to comment.