mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
98 lines
2.4 KiB
JSON
98 lines
2.4 KiB
JSON
{
|
|
"name": "core",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"sourceRoot": "apps/core",
|
|
"targets": {
|
|
"lock": {
|
|
"executor": "@nxlv/python:run-commands",
|
|
"options": {
|
|
"command": "poetry lock --no-update",
|
|
"cwd": "apps/core"
|
|
}
|
|
},
|
|
"add": {
|
|
"executor": "@nxlv/python:add",
|
|
"options": {}
|
|
},
|
|
"update": {
|
|
"executor": "@nxlv/python:update",
|
|
"options": {}
|
|
},
|
|
"remove": {
|
|
"executor": "@nxlv/python:remove",
|
|
"options": {}
|
|
},
|
|
"dev": {
|
|
"executor": "@nxlv/python:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"./otel/start-otel-collector.sh",
|
|
"poetry run letta server"
|
|
],
|
|
"parallel": true,
|
|
"cwd": "apps/core"
|
|
}
|
|
},
|
|
"debug": {
|
|
"executor": "@nxlv/python:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"./otel/start-otel-collector.sh",
|
|
"poetry run letta server --debug --reload"
|
|
],
|
|
"parallel": true,
|
|
"cwd": "apps/core"
|
|
}
|
|
},
|
|
"build": {
|
|
"executor": "@nxlv/python:build",
|
|
"outputs": ["{projectRoot}/dist"],
|
|
"options": {
|
|
"outputPath": "apps/core/dist",
|
|
"publish": false,
|
|
"lockedVersions": true,
|
|
"bundleLocalDependencies": true
|
|
}
|
|
},
|
|
"install": {
|
|
"executor": "@nxlv/python:run-commands",
|
|
"options": {
|
|
"command": "poetry install --all-extras",
|
|
"cwd": "apps/core"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nxlv/python:run-commands",
|
|
"options": {
|
|
"command": "poetry run isort --profile black . && poetry run black . && poetry run autoflake --remove-all-unused-imports --remove-unused-variables --in-place --recursive --ignore-init-module-imports .",
|
|
"cwd": "apps/core"
|
|
}
|
|
},
|
|
"database:migrate": {
|
|
"executor": "@nxlv/python:run-commands",
|
|
"options": {
|
|
"command": "poetry run alembic upgrade head",
|
|
"cwd": "apps/core"
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nxlv/python:run-commands",
|
|
"outputs": [
|
|
"{workspaceRoot}/reports/apps/core/unittests",
|
|
"{workspaceRoot}/coverage/apps/core"
|
|
],
|
|
"options": {
|
|
"command": "poetry run pytest tests/",
|
|
"cwd": "apps/core"
|
|
}
|
|
}
|
|
},
|
|
"tags": [],
|
|
"release": {
|
|
"version": {
|
|
"generator": "@nxlv/python:release-version"
|
|
}
|
|
}
|
|
}
|