98 lines
2.4 KiB
JSON
98 lines
2.4 KiB
JSON
{
|
|
"name": "web",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"prefix": "ts",
|
|
"sourceRoot": "apps/web/src",
|
|
"tags": ["scope:web", "type:app"],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@angular/build:application",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/apps/web",
|
|
"browser": "apps/web/src/main.ts",
|
|
"tsConfig": "apps/web/tsconfig.app.json",
|
|
"inlineStyleLanguage": "scss",
|
|
"assets": [
|
|
{
|
|
"glob": "**/*",
|
|
"input": "apps/web/public"
|
|
}
|
|
],
|
|
"styles": ["apps/web/src/styles.scss"],
|
|
"stylePreprocessorOptions": {
|
|
"includePaths": ["node_modules"]
|
|
},
|
|
"allowedCommonJsDependencies": ["lodash"]
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"budgets": [
|
|
{
|
|
"type": "initial",
|
|
"maximumWarning": "2mb",
|
|
"maximumError": "3mb"
|
|
},
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "8kb",
|
|
"maximumError": "16kb"
|
|
}
|
|
],
|
|
"outputHashing": "all"
|
|
},
|
|
"development": {
|
|
"optimization": false,
|
|
"extractLicenses": false,
|
|
"sourceMap": true
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"continuous": true,
|
|
"executor": "@angular/build:dev-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"port": 4200,
|
|
"proxyConfig": "apps/web/proxy.conf.json"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"buildTarget": "web:build:production"
|
|
},
|
|
"development": {
|
|
"buildTarget": "web:build:development"
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint"
|
|
},
|
|
"test": {
|
|
"executor": "@angular/build:unit-test",
|
|
"options": {
|
|
"watch": false
|
|
}
|
|
},
|
|
"serve-static": {
|
|
"continuous": true,
|
|
"executor": "@nx/web:file-server",
|
|
"options": {
|
|
"buildTarget": "web:build",
|
|
"port": 4200,
|
|
"staticFilePath": "dist/apps/web/browser",
|
|
"spa": true
|
|
}
|
|
},
|
|
"codegen": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "graphql-codegen --config codegen.ts"
|
|
},
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|