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.
		
		
		
		
		
			
		
			
				
					
					
						
							78 lines
						
					
					
						
							2.0 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							78 lines
						
					
					
						
							2.0 KiB
						
					
					
				| { | |
|   "name": "api", | |
|   "$schema": "../../node_modules/nx/schemas/project-schema.json", | |
|   "sourceRoot": "apps/api/src", | |
|   "projectType": "application", | |
|   "prefix": "api", | |
|   "generators": {}, | |
|   "targets": { | |
|     "build": { | |
|       "executor": "@nx/webpack:webpack", | |
|       "options": { | |
|         "compiler": "tsc", | |
|         "deleteOutputPath": false, | |
|         "main": "apps/api/src/main.ts", | |
|         "outputPath": "dist/apps/api", | |
|         "sourceMap": true, | |
|         "target": "node", | |
|         "tsConfig": "apps/api/tsconfig.app.json", | |
|         "webpackConfig": "apps/api/webpack.config.js" | |
|       }, | |
|       "configurations": { | |
|         "production": { | |
|           "generatePackageJson": true, | |
|           "optimization": true, | |
|           "extractLicenses": true, | |
|           "inspect": false, | |
|           "fileReplacements": [ | |
|             { | |
|               "replace": "apps/api/src/environments/environment.ts", | |
|               "with": "apps/api/src/environments/environment.prod.ts" | |
|             } | |
|           ] | |
|         } | |
|       }, | |
|       "outputs": ["{options.outputPath}"] | |
|     }, | |
|     "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": [] | |
| }
 | |
| 
 |