upgrade APIlite and change build backend use TypeScript instead of JavaScript
This commit is contained in:
7
backend/composer.lock
generated
7
backend/composer.lock
generated
@ -8,11 +8,11 @@
|
||||
"packages": [
|
||||
{
|
||||
"name": "tpsoft/apilite",
|
||||
"version": "v1.1.0",
|
||||
"version": "v1.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://gitea.tpsoft.org/TPsoft.org/APIlite.git",
|
||||
"reference": "fab8efd780ede046ced076f237351cdba5a8a51f"
|
||||
"reference": "d258bcc91948424711dd79fde57254e1384d0091"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=8.2"
|
||||
@ -41,6 +41,7 @@
|
||||
"description": "A set of tools to simplify the work of creating backend APIs for your frontend projects.",
|
||||
"keywords": [
|
||||
"api",
|
||||
"javascript",
|
||||
"json",
|
||||
"php",
|
||||
"rest",
|
||||
@ -52,7 +53,7 @@
|
||||
"type": "other"
|
||||
}
|
||||
],
|
||||
"time": "2026-02-09T06:33:17+00:00"
|
||||
"time": "2026-02-13T08:54:08+00:00"
|
||||
},
|
||||
{
|
||||
"name": "tpsoft/dbmodel",
|
||||
|
||||
@ -9,7 +9,7 @@ $backend_api = new TPsoft\Nutrio\API('typescript', 'import.meta.env.VITE_BACKEND
|
||||
$output = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
$ts_path = realpath(__DIR__ . '/../../frontend/src').'/BackendAPI.js';
|
||||
$ts_path = realpath(__DIR__ . '/../../frontend/src').'/BackendAPI.ts';
|
||||
$suc = file_put_contents($ts_path, $output);
|
||||
if ($suc === false) {
|
||||
echo "✗ TypeScript store into file failed\n";
|
||||
|
||||
Reference in New Issue
Block a user