89 lines
2.2 KiB
JSON
89 lines
2.2 KiB
JSON
{
|
|
"name": "shop",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"prefix": "app",
|
|
"sourceRoot": "apps/shop/src",
|
|
"tags": ["scope:shop"],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@angular/build:application",
|
|
"outputs": ["{options.outputPath}"],
|
|
"options": {
|
|
"outputPath": "dist/apps/shop",
|
|
"browser": "apps/shop/src/main.ts",
|
|
"polyfills": ["zone.js"],
|
|
"tsConfig": "apps/shop/tsconfig.app.json",
|
|
"assets": [
|
|
{
|
|
"glob": "**/*",
|
|
"input": "apps/shop/public"
|
|
}
|
|
],
|
|
"styles": ["apps/shop/src/styles.css"],
|
|
"server": "apps/shop/src/main.server.ts",
|
|
"ssr": {
|
|
"entry": "apps/shop/src/server.ts"
|
|
},
|
|
"outputMode": "server"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"budgets": [
|
|
{
|
|
"type": "initial",
|
|
"maximumWarning": "500kb",
|
|
"maximumError": "1mb"
|
|
},
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "4kb",
|
|
"maximumError": "8kb"
|
|
}
|
|
],
|
|
"outputHashing": "all"
|
|
},
|
|
"development": {
|
|
"optimization": false,
|
|
"extractLicenses": false,
|
|
"sourceMap": true
|
|
}
|
|
},
|
|
"defaultConfiguration": "production"
|
|
},
|
|
"serve": {
|
|
"dependsOn": ["api:serve"],
|
|
"continuous": true,
|
|
"executor": "@angular/build:dev-server",
|
|
"configurations": {
|
|
"production": {
|
|
"buildTarget": "shop:build:production"
|
|
},
|
|
"development": {
|
|
"buildTarget": "shop:build:development"
|
|
}
|
|
},
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"proxyConfig": "apps/shop/proxy.conf.json"
|
|
}
|
|
},
|
|
"extract-i18n": {
|
|
"executor": "@angular/build:extract-i18n",
|
|
"options": {
|
|
"buildTarget": "shop:build"
|
|
}
|
|
},
|
|
"serve-static": {
|
|
"continuous": true,
|
|
"executor": "@nx/web:file-server",
|
|
"options": {
|
|
"buildTarget": "shop:build",
|
|
"port": 4200,
|
|
"staticFilePath": "dist/apps/shop/browser",
|
|
"spa": true
|
|
}
|
|
}
|
|
}
|
|
}
|