From e4cc39915b54bbe99e07a6852f8bc6538093133b Mon Sep 17 00:00:00 2001 From: John Cyrill Corsanes Date: Mon, 16 Oct 2023 11:11:55 +0800 Subject: [PATCH] CI fix: Added new commands for setting up --- composer.json | 11 +++++++++-- debug.php | 4 +++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index ff4db09..8fd510a 100644 --- a/composer.json +++ b/composer.json @@ -32,10 +32,17 @@ "post-autoload-dump": [ "php -r \"file_exists('configs/system.php') || copy('configs/system.php.example', 'configs/system.php');\"", "php -r \"file_exists('configs/database.php') || copy('configs/database.php.example', 'configs/database.php');\"", - "php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + "php -r \"file_exists('.env') || copy('.env.example', '.env');\"", + "composer run nodejs" ], "lint": [ - "./vendor/bin/phpcs classes libraries error.php forgotpassword.php index.php multiuser.php register.php" + "./vendor/bin/phpcs classes/ libraries/ *.php" + ], + "lintfix": [ + "./vendor/bin/phpcbf classes/ libraries/ *.php" + ], + "nodejs": [ + "npm install" ] } } diff --git a/debug.php b/debug.php index b3b3f1b..ec60b32 100644 --- a/debug.php +++ b/debug.php @@ -1 +1,3 @@ - +