Skip to content

Commit

Permalink
chore: Update project.json demo
Browse files Browse the repository at this point in the history
Update project.json config to use new build angular application
  • Loading branch information
Tu Nuevo Nombre committed Apr 10, 2024
1 parent 7a4974d commit 834ba1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 2 additions & 4 deletions apps/demo-ngx-facebook-messenger/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"tags": [],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
"executor": "@angular-devkit/build-angular:application",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/apps/demo-ngx-facebook-messenger",
"index": "apps/demo-ngx-facebook-messenger/src/index.html",
"main": "apps/demo-ngx-facebook-messenger/src/main.ts",
"browser": "apps/demo-ngx-facebook-messenger/src/main.ts",
"polyfills": [
"zone.js"
],
Expand Down Expand Up @@ -46,9 +46,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand Down
14 changes: 10 additions & 4 deletions libs/ngx-facebook-messenger/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"targets": {
"build": {
"executor": "@nx/angular:package",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"outputs": [
"{workspaceRoot}/dist/{projectRoot}"
],
"options": {
"project": "libs/ngx-facebook-messenger/ng-package.json"
},
Expand All @@ -24,7 +26,9 @@
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"outputs": [
"{workspaceRoot}/coverage/{projectRoot}"
],
"options": {
"jestConfig": "libs/ngx-facebook-messenger/jest.config.ts",
"passWithNoTests": true
Expand All @@ -38,7 +42,9 @@
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": [
"libs/ngx-facebook-messenger/**/*.ts",
Expand All @@ -53,4 +59,4 @@
}
}
}
}
}

0 comments on commit 834ba1a

Please sign in to comment.