]> gitweb.hamatoma.de Git - worxer.git/commitdiff
V0.0.1
authorWinfried Kappeler <winfried.kappeler@infeos.eu>
Thu, 28 Mar 2024 19:05:09 +0000 (20:05 +0100)
committerWinfried Kappeler <winfried.kappeler@infeos.eu>
Thu, 28 Mar 2024 19:05:09 +0000 (20:05 +0100)
- new: scripts/InitApp.php
- laraknife is linked not cloned

CHANGELOG.md [new file with mode: 0644]
composer.json
composer.lock
scripts/InitApp.sh [new file with mode: 0755]

diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644 (file)
index 0000000..8d1b5d5
--- /dev/null
@@ -0,0 +1,9 @@
+# V0.0.1
+
+## Added
+
+- new: scripts/InitApp.php
+
+## Changed
+
+- laraknife is linked not cloned
\ No newline at end of file
index e98ec96b37302c4be681d05eb9095307d78bbc36..c550f6d29a153b0e10de943823e64f3089295264 100644 (file)
     "prefer-stable": true,
     "repositories": {
         "laraknife": {
-            "type": "vcs",
-            "url": "https://github.com/hamatoma/laraknife"
+            "type": "path",
+            "url": "../laraknife",
+            "options": {
+                "symlink": true
+            }
         }
     }
 }
index 998580a149427bd1fda9e9d58289a7b19519a80c..a030148566551cb5554c6b3d91e88349008b81f1 100644 (file)
@@ -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",
         {
             "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"
             ],
                 }
             ],
             "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": {
                 "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": {
             ],
             "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",
         },
         {
             "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": {
                 "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",
                 "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",
         },
         {
             "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": {
             "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"
                     "type": "tidelift"
                 }
             ],
-            "time": "2024-03-13T12:42:37+00:00"
+            "time": "2024-03-27T18:14:36+00:00"
         },
         {
             "name": "nette/schema",
         },
         {
             "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": {
                 "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 (executable)
index 0000000..7408251
--- /dev/null
@@ -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