83 lines
2.3 KiB
JSON
83 lines
2.3 KiB
JSON
{
|
|
"name": "ui",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/ui/src",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/webpack:webpack",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"compiler": "babel",
|
|
"outputPath": "dist/packages/ui",
|
|
"index": "packages/ui/src/index.html",
|
|
"baseHref": "/",
|
|
"main": "packages/ui/src/main.tsx",
|
|
"polyfills": "packages/ui/src/polyfills.ts",
|
|
"tsConfig": "packages/ui/tsconfig.app.json",
|
|
"assets": ["packages/ui/src/favicon-dark.svg", "packages/ui/src/assets"],
|
|
"styles": ["packages/ui/src/styles.css"],
|
|
"scripts": [],
|
|
"webpackConfig": "@nx/react/plugins/webpack"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"extractLicenses": false,
|
|
"optimization": false,
|
|
"sourceMap": true,
|
|
"vendorChunk": true
|
|
},
|
|
"production": {
|
|
"fileReplacements": [
|
|
{
|
|
"replace": "packages/ui/src/environments/environment.ts",
|
|
"with": "packages/ui/src/environments/environment.prod.ts"
|
|
}
|
|
],
|
|
"optimization": true,
|
|
"outputHashing": "all",
|
|
"sourceMap": false,
|
|
"namedChunks": false,
|
|
"extractLicenses": true,
|
|
"vendorChunk": false
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/webpack:dev-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "ui:build",
|
|
"hmr": true,
|
|
"proxyConfig": "packages/ui/proxy.config.json"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "ui:build:development"
|
|
},
|
|
"production": {
|
|
"buildTarget": "ui:build:production",
|
|
"hmr": false
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/linter:eslint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["packages/ui/**/*.{ts,tsx,js,jsx}"]
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/jest:jest",
|
|
"outputs": ["{workspaceRoot}/coverage/packages/ui"],
|
|
"options": {
|
|
"jestConfig": "packages/ui/jest.config.ts",
|
|
"passWithNoTests": true
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|