Created
December 14, 2020 22:59
-
-
Save kuccello/e1b55ba7af9fccb94c3779d2606181a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"projects": { | |
"my-api": { | |
"root": "apps/my-api", | |
"sourceRoot": "apps/my-api/src", | |
"projectType": "application", | |
"prefix": "my-api", | |
"targets": { | |
"build": { | |
"executor": "@nrwl/node:build", | |
"outputs": [ | |
"{options.outputPath}" | |
], | |
"options": { | |
"outputPath": "dist/apps/my-api", | |
"main": "apps/my-api/src/main.ts", | |
"tsConfig": "apps/my-api/tsconfig.app.json", | |
"assets": [ | |
"apps/my-api/src/assets" | |
] | |
}, | |
"configurations": { | |
"production": { | |
"optimization": true, | |
"extractLicenses": true, | |
"inspect": false, | |
"fileReplacements": [ | |
{ | |
"replace": "apps/my-api/src/environments/environment.ts", | |
"with": "apps/my-api/src/environments/environment.prod.ts" | |
} | |
] | |
} | |
} | |
}, | |
"serve": { | |
"executor": "@nrwl/node:execute", | |
"options": { | |
"buildTarget": "my-api:build" | |
} | |
}, | |
"lint": { | |
"executor": "@nrwl/linter:eslint", | |
"options": { | |
"lintFilePatterns": [ | |
"apps/my-api/**/*.ts" | |
] | |
} | |
}, | |
"test": { | |
"executor": "@nrwl/jest:jest", | |
"outputs": [ | |
"coverage/apps/my-api" | |
], | |
"options": { | |
"jestConfig": "apps/my-api/jest.config.js", | |
"passWithNoTests": true | |
} | |
} | |
} | |
}, | |
"data-model": { | |
"root": "libs/data-model", | |
"sourceRoot": "libs/data-model/src", | |
"projectType": "library", | |
"targets": { | |
"lint": { | |
"executor": "@nrwl/linter:eslint", | |
"options": { | |
"lintFilePatterns": [ | |
"libs/data-model/**/*.ts" | |
] | |
} | |
}, | |
"test": { | |
"executor": "@nrwl/jest:jest", | |
"outputs": [ | |
"coverage/libs/data-model" | |
], | |
"options": { | |
"jestConfig": "libs/data-model/jest.config.js", | |
"passWithNoTests": true | |
} | |
}, | |
"migrate-save": { | |
"builder": "@nrwl/workspace:run-commands", | |
"outputs": [], | |
"options": { | |
"command": "npx prisma migrate dev --create-only --preview-feature --schema ./prisma/schema.prisma", | |
"cwd": "libs/data-model" | |
} | |
}, | |
"migrate-up": { | |
"builder": "@nrwl/workspace:run-commands", | |
"outputs": [], | |
"options": { | |
"command": "npx prisma migrate dev --preview-feature --schema ./prisma/schema.prisma", | |
"cwd": "libs/data-model" | |
} | |
}, | |
"migrate-reset": { | |
"builder": "@nrwl/workspace:run-commands", | |
"outputs": [], | |
"options": { | |
"command": "npx prisma migrate reset --preview-feature --schema ./prisma/schema.prisma", | |
"cwd": "libs/data-model" | |
} | |
}, | |
"migrate-deploy": { | |
"builder": "@nrwl/workspace:run-commands", | |
"outputs": [], | |
"options": { | |
"command": "npx prisma migrate deploy --preview-feature --schema ./prisma/schema.prisma", | |
"cwd": "libs/data-model" | |
} | |
}, | |
"migrate-status": { | |
"builder": "@nrwl/workspace:run-commands", | |
"outputs": [], | |
"options": { | |
"command": "npx prisma migrate status --preview-feature --schema ./prisma/schema.prisma", | |
"cwd": "libs/data-model" | |
} | |
} | |
} | |
} | |
}, | |
"cli": { | |
"defaultCollection": "@nrwl/nest" | |
}, | |
"defaultProject": "my-api" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment