From f6484c372ad3252026598b8acb4788e121eabcf1 Mon Sep 17 00:00:00 2001 From: Winfried Kappeler Date: Thu, 28 Mar 2024 20:05:09 +0100 Subject: [PATCH] V0.0.1 - new: scripts/InitApp.php - laraknife is linked not cloned --- CHANGELOG.md | 9 +++++ composer.json | 7 +++- composer.lock | 97 +++++++++++++++++++++++++--------------------- scripts/InitApp.sh | 37 ++++++++++++++++++ 4 files changed, 104 insertions(+), 46 deletions(-) create mode 100644 CHANGELOG.md create mode 100755 scripts/InitApp.sh diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8d1b5d5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# V0.0.1 + +## Added + +- new: scripts/InitApp.php + +## Changed + +- laraknife is linked not cloned \ No newline at end of file diff --git a/composer.json b/composer.json index e98ec96..c550f6d 100644 --- a/composer.json +++ b/composer.json @@ -68,8 +68,11 @@ "prefer-stable": true, "repositories": { "laraknife": { - "type": "vcs", - "url": "https://github.com/hamatoma/laraknife" + "type": "path", + "url": "../laraknife", + "options": { + "symlink": true + } } } } diff --git a/composer.lock b/composer.lock index 998580a..a030148 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a49068b102429f4f731a4a54d2550486", + "content-hash": "acecdffb1e1c04aaadd82226400ed03f", "packages": [ { "name": "brick/math", @@ -1048,14 +1048,21 @@ { "name": "hamatoma/laraknife", "version": "dev-main", + "source": { + "type": "git", + "url": "https://github.com/hamatoma/laraknife.git", + "reference": "7ed4b7846c8bf3547bdecdf1435a21976d6df6a8" + }, "dist": { - "type": "path", - "url": "../laraknife", - "reference": "e1c7deac27cee202205a0950a3ceb65ad5da52f9" + "type": "zip", + "url": "https://api.github.com/repos/hamatoma/laraknife/zipball/7ed4b7846c8bf3547bdecdf1435a21976d6df6a8", + "reference": "7ed4b7846c8bf3547bdecdf1435a21976d6df6a8", + "shasum": "" }, "require-dev": { "phpunit/phpunit": "11.0.x-dev" }, + "default-branch": true, "bin": [ "scripts/laraknife-tool.sh" ], @@ -1075,23 +1082,24 @@ } ], "description": "Helpers for development with Laravel.", - "transport-options": { - "symlink": true, - "relative": true - } + "support": { + "source": "https://github.com/hamatoma/laraknife/tree/main", + "issues": "https://github.com/hamatoma/laraknife/issues" + }, + "time": "2024-03-26T20:10:02+00:00" }, { "name": "laravel/framework", - "version": "v11.0.8", + "version": "v11.1.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "0379a7ccb77e2029c43ce508fa76e251a0d68fce" + "reference": "4a9195f68b529b20fe01e24864f99991459c48d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/0379a7ccb77e2029c43ce508fa76e251a0d68fce", - "reference": "0379a7ccb77e2029c43ce508fa76e251a0d68fce", + "url": "https://api.github.com/repos/laravel/framework/zipball/4a9195f68b529b20fe01e24864f99991459c48d4", + "reference": "4a9195f68b529b20fe01e24864f99991459c48d4", "shasum": "" }, "require": { @@ -1283,20 +1291,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-03-21T14:15:49+00:00" + "time": "2024-03-26T15:17:39+00:00" }, { "name": "laravel/prompts", - "version": "v0.1.16", + "version": "v0.1.17", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "ca6872ab6aec3ab61db3a61f83a6caf764ec7781" + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/ca6872ab6aec3ab61db3a61f83a6caf764ec7781", - "reference": "ca6872ab6aec3ab61db3a61f83a6caf764ec7781", + "url": "https://api.github.com/repos/laravel/prompts/zipball/8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", "shasum": "" }, "require": { @@ -1338,9 +1346,9 @@ ], "support": { "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.1.16" + "source": "https://github.com/laravel/prompts/tree/v0.1.17" }, - "time": "2024-02-21T19:25:27+00:00" + "time": "2024-03-13T16:05:43+00:00" }, { "name": "laravel/serializable-closure", @@ -1470,16 +1478,16 @@ }, { "name": "laravel/ui", - "version": "v4.5.0", + "version": "v4.5.1", "source": { "type": "git", "url": "https://github.com/laravel/ui.git", - "reference": "da3811f409297d13feccd5858ce748e7474b3d11" + "reference": "a3562953123946996a503159199d6742d5534e61" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/ui/zipball/da3811f409297d13feccd5858ce748e7474b3d11", - "reference": "da3811f409297d13feccd5858ce748e7474b3d11", + "url": "https://api.github.com/repos/laravel/ui/zipball/a3562953123946996a503159199d6742d5534e61", + "reference": "a3562953123946996a503159199d6742d5534e61", "shasum": "" }, "require": { @@ -1487,7 +1495,8 @@ "illuminate/filesystem": "^9.21|^10.0|^11.0", "illuminate/support": "^9.21|^10.0|^11.0", "illuminate/validation": "^9.21|^10.0|^11.0", - "php": "^8.0" + "php": "^8.0", + "symfony/console": "^6.0|^7.0" }, "require-dev": { "orchestra/testbench": "^7.35|^8.15|^9.0", @@ -1526,9 +1535,9 @@ "ui" ], "support": { - "source": "https://github.com/laravel/ui/tree/v4.5.0" + "source": "https://github.com/laravel/ui/tree/v4.5.1" }, - "time": "2024-03-04T13:58:27+00:00" + "time": "2024-03-21T18:12:29+00:00" }, { "name": "league/commonmark", @@ -2026,16 +2035,16 @@ }, { "name": "nesbot/carbon", - "version": "3.1.1", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "34ccf6f6b49c915421c7886c88c0cb77f3ebbfd2" + "reference": "6bfea14bb0792e85f2e1ff0919487c88419c5883" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/34ccf6f6b49c915421c7886c88c0cb77f3ebbfd2", - "reference": "34ccf6f6b49c915421c7886c88c0cb77f3ebbfd2", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/6bfea14bb0792e85f2e1ff0919487c88419c5883", + "reference": "6bfea14bb0792e85f2e1ff0919487c88419c5883", "shasum": "" }, "require": { @@ -2053,14 +2062,14 @@ "require-dev": { "doctrine/dbal": "^3.6.3 || ^4.0", "doctrine/orm": "^2.15.2 || ^3.0", - "friendsofphp/php-cs-fixer": "^3.18.0", - "kylekatarnls/multi-tester": "^2.2.0", - "ondrejmirtes/better-reflection": "^6.11.0.0", - "phpmd/phpmd": "^2.13.0", - "phpstan/extension-installer": "^1.3.0", - "phpstan/phpstan": "^1.10.20", - "phpunit/phpunit": "^10.2.2", - "squizlabs/php_codesniffer": "^3.7.2" + "friendsofphp/php-cs-fixer": "^3.52.1", + "kylekatarnls/multi-tester": "^2.5.3", + "ondrejmirtes/better-reflection": "^6.25.0.4", + "phpmd/phpmd": "^2.15.0", + "phpstan/extension-installer": "^1.3.1", + "phpstan/phpstan": "^1.10.65", + "phpunit/phpunit": "^10.5.15", + "squizlabs/php_codesniffer": "^3.9.0" }, "bin": [ "bin/carbon" @@ -2128,7 +2137,7 @@ "type": "tidelift" } ], - "time": "2024-03-13T12:42:37+00:00" + "time": "2024-03-27T18:14:36+00:00" }, { "name": "nette/schema", @@ -6051,16 +6060,16 @@ }, { "name": "laravel/pint", - "version": "v1.14.0", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "6b127276e3f263f7bb17d5077e9e0269e61b2a0e" + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/6b127276e3f263f7bb17d5077e9e0269e61b2a0e", - "reference": "6b127276e3f263f7bb17d5077e9e0269e61b2a0e", + "url": "https://api.github.com/repos/laravel/pint/zipball/c52de679b3ac01207016c179d7ce173e4be128c4", + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4", "shasum": "" }, "require": { @@ -6113,7 +6122,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-02-20T17:38:05+00:00" + "time": "2024-03-26T16:40:24+00:00" }, { "name": "laravel/sail", diff --git a/scripts/InitApp.sh b/scripts/InitApp.sh new file mode 100755 index 0000000..7408251 --- /dev/null +++ b/scripts/InitApp.sh @@ -0,0 +1,37 @@ +#! /bin/bash + +function Wait(){ + read answer "OK? Break with Ctrl-C" +} +function SeedIt(){ + for class in DatabaseSeeder ModuleSeeder SPropertySeeder RoleSeeder UserSeeder \ + MenuitemSeeder RoleWorxerSeeder FileSeeder NoteSeeder \ + WordSeeder NounSeeder; do + sudo -u www-data ./artisan db:seed --class=$class + done +} +function DoIt(){ + sudo composer update + Wait + ./artisan migrate + Wait + SeedIt + Wait + npm run build +} +if [ "$(id -u)" != 0 ]; then + echo "+++ Be root" +elif [ ! -e .dev.user ]; then + echo "+++ call './Own all' before!" +elif [ ! -d ../laraknife ]; then + echo "+++ missing ../laraknife" + echo "git clone git@github.com:hamatoma/laraknife.git" +elif [ ! -f .env ]; then + echo "+++ missing .env" + echo "cp -a env.example .env" +elif [ ! -d /var/lib/mysql/lrvworxer ]; then + echo "+++ missing db lrvworxer" + echo "sudo mysqladmin create lrvworxer" +else + DoIt +fi \ No newline at end of file -- 2.39.5