mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
{
|
|
"name": "api",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "apps/api/src",
|
|
"projectType": "application",
|
|
"prefix": "api",
|
|
"generators": {},
|
|
"targets": {
|
|
"build": {
|
|
"configurations": {
|
|
"production": {}
|
|
},
|
|
"outputs": ["{workspaceRoot}/dist/apps/api"]
|
|
},
|
|
"copy-assets": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
{
|
|
"command": "shx rm -rf dist/apps/api"
|
|
},
|
|
{
|
|
"command": "shx mkdir -p dist/apps/api/assets/locales"
|
|
},
|
|
{
|
|
"command": "shx cp -r apps/api/src/assets/* dist/apps/api/assets"
|
|
},
|
|
{
|
|
"command": "shx cp -r apps/client/src/locales/* dist/apps/api/assets/locales"
|
|
}
|
|
],
|
|
"parallel": false
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/js:node",
|
|
"options": {
|
|
"buildTarget": "api:build"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"options": {
|
|
"lintFilePatterns": ["apps/api/**/*.ts"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"options": {
|
|
"jestConfig": "apps/api/jest.config.ts"
|
|
},
|
|
"outputs": ["{workspaceRoot}/coverage/apps/api"]
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|
|
|