Last active
January 17, 2022 21:37
-
-
Save ftischler/99d4134fb6b9a106dafbf437ee884315 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
nx affected:e2e -c e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"cli": { | |
"defaultCollection": "@ngrx/schematics" | |
}, | |
"defaultProject": "app-shell", | |
"projects": { | |
"app-shell": { | |
"architect": { | |
"build": { | |
"builder": "@angular-devkit/architect:concat", | |
"configurations": { | |
"e2e": { | |
"targets": [ | |
{ | |
"target": "app-shell:build-browser:e2e" | |
}, | |
{ | |
"target": "app-shell:server:e2e" | |
} | |
] | |
}, | |
"production": { | |
"targets": [ | |
{ | |
"target": "app-shell:build-browser:production" | |
}, | |
{ | |
"target": "app-shell:server:production" | |
} | |
] | |
} | |
}, | |
"options": { | |
"targets": [ | |
{ | |
"target": "app-shell:build-browser" | |
}, | |
{ | |
"target": "app-shell:server" | |
} | |
] | |
} | |
}, | |
"build-browser": { | |
"builder": "@nrwl/angular:webpack-browser", | |
"configurations": { | |
"development": { | |
"budgets": [ | |
{ | |
"maximumError": "5mb", | |
"maximumWarning": "2mb", | |
"type": "initial" | |
}, | |
{ | |
"maximumWarning": "6kb", | |
"type": "anyComponentStyle" | |
} | |
], | |
"extractLicenses": true, | |
"optimization": true, | |
"outputHashing": "all", | |
"vendorChunk": false | |
}, | |
"e2e": { | |
"customWebpackConfig": { | |
"path": "apps/app-shell/webpack.prod.config.js" | |
}, | |
"budgets": [], | |
"extractLicenses": true, | |
"fileReplacements": [ | |
{ | |
"replace": "apps/app-shell/src/environments/environment.ts", | |
"with": "apps/app-shell/src/environments/environment.e2e.ts" | |
} | |
], | |
"namedChunks": false, | |
"optimization": true, | |
"outputHashing": "all", | |
"sourceMap": false, | |
"vendorChunk": false | |
}, | |
"production": { | |
"customWebpackConfig": { | |
"path": "apps/app-shell/webpack.prod.config.js" | |
}, | |
"budgets": [ | |
{ | |
"maximumError": "5mb", | |
"maximumWarning": "2mb", | |
"type": "initial" | |
}, | |
{ | |
"maximumWarning": "6kb", | |
"type": "anyComponentStyle" | |
} | |
], | |
"extractLicenses": true, | |
"fileReplacements": [ | |
{ | |
"replace": "apps/app-shell/src/environments/environment.ts", | |
"with": "apps/app-shell/src/environments/environment.prod.ts" | |
} | |
], | |
"namedChunks": false, | |
"optimization": { | |
"scripts": true, | |
"styles": { | |
"minify": true, | |
"inlineCritical": false | |
}, | |
"fonts": true | |
}, | |
"outputHashing": "all", | |
"sourceMap": false, | |
"vendorChunk": false | |
} | |
}, | |
"defaultConfiguration": "production", | |
"options": { | |
"assets": [ | |
"apps/app-shell/src/assets", | |
"apps/app-shell/src/favicon.ico", | |
"apps/app-shell/src/robots.txt" | |
], | |
"customWebpackConfig": { | |
"path": "apps/app-shell/webpack.config.js" | |
}, | |
"index": "apps/app-shell/src/index.html", | |
"main": "apps/app-shell/src/main.ts", | |
"outputPath": "dist/apps/app-shell/browser", | |
"polyfills": "apps/app-shell/src/polyfills.ts", | |
"styles": [ | |
"apps/app-shell/src/styles.scss" | |
], | |
"tsConfig": "apps/app-shell/tsconfig.app.json", | |
"vendorChunk": true, | |
"extractLicenses": false, | |
"buildOptimizer": false, | |
"sourceMap": true, | |
"optimization": false, | |
"namedChunks": true | |
} | |
}, | |
"extract-i18n": { | |
"builder": "@angular-devkit/build-angular:extract-i18n", | |
"options": { | |
"browserTarget": "app-shell:build" | |
} | |
}, | |
"lint": { | |
"builder": "@nrwl/linter:eslint", | |
"options": { | |
"lintFilePatterns": [ | |
"apps/app-shell/**/*.ts", | |
"apps/app-shell/**/*.html" | |
] | |
} | |
}, | |
"prerender": { | |
"builder": "@nguniversal/builders:prerender", | |
"configurations": { | |
"production": {} | |
}, | |
"options": { | |
"browserTarget": "app-shell:build-browser:production", | |
"routes": [ | |
"/" | |
], | |
"serverTarget": "app-shell:server:production" | |
} | |
}, | |
"serve": { | |
"builder": "@nrwl/angular:webpack-server", | |
"configurations": { | |
"e2e": { | |
"port": 4200, | |
"browserTarget": "app-shell:build-browser:e2e", | |
"proxyConfig": "config/e2e-proxy.conf.json" | |
}, | |
"production": { | |
"browserTarget": "app-shell:build-browser:production" | |
}, | |
"options": { | |
"browserTarget": "app-shell:build-browser", | |
"sourceMap": true, | |
"proxyConfig": "config/proxy.conf.json" | |
} | |
}, | |
"serve-ssr": { | |
"builder": "@nguniversal/builders:ssr-dev-server", | |
"configurations": { | |
"production": { | |
"browserTarget": "app-shell:build-browser:production", | |
"serverTarget": "app-shell:server:production" | |
} | |
}, | |
"options": { | |
"browserTarget": "app-shell:build-browser", | |
"serverTarget": "app-shell:server", | |
"proxyConfig": "config/proxy.conf.json" | |
} | |
}, | |
"server": { | |
"builder": "@angular-devkit/build-angular:server", | |
"configurations": { | |
"e2e": { | |
"fileReplacements": [ | |
{ | |
"replace": "apps/app-shell/src/environments/environment.ts", | |
"with": "apps/app-shell/src/environments/environment.e2e.ts" | |
} | |
], | |
"outputHashing": "media", | |
"sourceMap": false, | |
"optimization": true | |
}, | |
"production": { | |
"fileReplacements": [ | |
{ | |
"replace": "apps/app-shell/src/environments/environment.ts", | |
"with": "apps/app-shell/src/environments/environment.prod.ts" | |
} | |
], | |
"outputHashing": "media", | |
"sourceMap": false, | |
"optimization": true | |
}, | |
"development": { | |
"outputHashing": "media" | |
} | |
}, | |
"options": { | |
"externalDependene2ees": "all", | |
"main": "apps/app-shell/server.ts", | |
"outputPath": "dist/apps/app-shell/server", | |
"tsConfig": "apps/app-shell/tsconfig.server.json", | |
"sourceMap": true, | |
"optimization": false | |
} | |
}, | |
"test": { | |
"builder": "@nrwl/jest:jest", | |
"options": { | |
"jestConfig": "apps/app-shell/jest.config.js", | |
"passWithNoTests": true | |
} | |
}, | |
"serve-mf": { | |
"builder": "@nrwl/workspace:run-commands", | |
"options": { | |
"commands": [ | |
"nx serve app-shell", | |
"nx serve mf-app-1 --port 4220", | |
"nx serve mf-app-2 --port 4221" | |
], | |
"parallel": true | |
} | |
}, | |
"serve-mf-deps": { | |
"builder": "@nrwl/workspace:run-commands", | |
"options": { | |
"commands": [ | |
"nx serve mf-app-1 -c production --port 4220", | |
"nx serve mf-app-2 -c production --port 4221" | |
] | |
} | |
}, | |
"serve-mf-e2e": { | |
"builder": "@nrwl/workspace:run-commands", | |
"options": { | |
"commands": [ | |
"nx run app-shell:serve-mf-deps", | |
"nx run app-shell:serve:e2e" | |
], | |
"parallel": true, | |
"readyWhen": "listening on localhost:4217" | |
} | |
} | |
}, | |
"prefix": "app-shell", | |
"projectType": "application", | |
"root": "apps/app-shell", | |
"schematics": { | |
"@schematics/angular:component": { | |
"style": "scss" | |
} | |
}, | |
"sourceRoot": "apps/app-shell/src" | |
} | |
}, | |
"app-shell-e2e": { | |
"root": "apps/app-shell-e2e", | |
"sourceRoot": "apps/app-shell-e2e/src", | |
"projectType": "application", | |
"architect": { | |
"e2e": { | |
"builder": "@nrwl/cypress:cypress", | |
"options": { | |
"cypressConfig": "apps/app-shell-e2e/cypress.json", | |
"tsConfig": "apps/app-shell-e2e/tsconfig.e2e.json", | |
"devServerTarget": "app-shell:serve:cypress", | |
"browser": "chrome" | |
}, | |
"configurations": { | |
"e2e": { | |
"devServerTarget": "app-shell:serve-mf-e2e", | |
"baseUrl": "http://localhost:4200", | |
"port": "4200", | |
"headless": true | |
}, | |
"production": { | |
"devServerTarget": "app-shell:serve:production", | |
"headless": true | |
} | |
} | |
}, | |
"lint": { | |
"builder": "@nrwl/linter:eslint", | |
"options": { | |
"lintFilePatterns": ["apps/app-shell-e2e/**/*.ts", "apps/app-shell-e2e/**/*.html"] | |
} | |
} | |
} | |
}, | |
"mf-app-1": { | |
"architect": { | |
"build": { | |
"builder": "@nrwl/angular:webpack-browser", | |
"configurations": { | |
"development": { | |
"budgets": [ | |
{ | |
"maximumError": "5mb", | |
"maximumWarning": "2mb", | |
"type": "initial" | |
}, | |
{ | |
"maximumWarning": "6kb", | |
"type": "anyComponentStyle" | |
} | |
], | |
"extractLicenses": true, | |
"optimization": true, | |
"outputHashing": "all", | |
"vendorChunk": false | |
}, | |
"e2e": { | |
"budgets": [], | |
"extractLicenses": true, | |
"fileReplacements": [ | |
{ | |
"replace": "apps/mf-app-1/src/environments/environment.ts", | |
"with": "apps/mf-app-1/src/environments/environment.e2e.ts" | |
} | |
], | |
"namedChunks": false, | |
"optimization": true, | |
"outputHashing": "all", | |
"sourceMap": false, | |
"vendorChunk": false, | |
"customWebpackConfig": { | |
"path": "apps/mf-app-1/webpack.prod.config.js" | |
} | |
}, | |
"production": { | |
"budgets": [ | |
{ | |
"maximumError": "5mb", | |
"maximumWarning": "2mb", | |
"type": "initial" | |
}, | |
{ | |
"maximumWarning": "6kb", | |
"type": "anyComponentStyle" | |
} | |
], | |
"extractLicenses": true, | |
"fileReplacements": [ | |
{ | |
"replace": "apps/mf-app-1/src/environments/environment.ts", | |
"with": "apps/mf-app-1/src/environments/environment.prod.ts" | |
} | |
], | |
"namedChunks": false, | |
"optimization": true, | |
"outputHashing": "all", | |
"sourceMap": false, | |
"vendorChunk": false, | |
"customWebpackConfig": { | |
"path": "apps/mf-app-1/webpack.prod.config.js" | |
} | |
} | |
}, | |
"options": { | |
"assets": [ | |
"apps/mf-app-1/src/assets" | |
], | |
"index": "apps/mf-app-1/src/index.html", | |
"main": "apps/mf-app-1/src/main.ts", | |
"outputPath": "dist/apps/mf-app-1", | |
"polyfills": "apps/mf-app-1/src/polyfills.ts", | |
"scripts": [], | |
"styles": [ | |
"apps/mf-app-1/src/styles.scss" | |
], | |
"tsConfig": "apps/mf-app-1/tsconfig.app.json", | |
"vendorChunk": true, | |
"extractLicenses": false, | |
"buildOptimizer": false, | |
"sourceMap": true, | |
"optimization": false, | |
"namedChunks": true, | |
"customWebpackConfig": { | |
"path": "apps/mf-app-1/webpack.config.js" | |
} | |
} | |
}, | |
"extract-i18n": { | |
"builder": "@angular-devkit/build-angular:extract-i18n", | |
"options": { | |
"browserTarget": "mf-app-1:build" | |
} | |
}, | |
"lint": { | |
"builder": "@nrwl/linter:eslint", | |
"options": { | |
"lintFilePatterns": ["apps/mf-app-1/**/*.ts", "apps/mf-app-1/**/*.html"] | |
} | |
}, | |
"serve": { | |
"builder": "@nrwl/angular:webpack-server", | |
"configurations": { | |
"e2e": { | |
"browserTarget": "mf-app-1:build:e2e" | |
}, | |
"production": { | |
"browserTarget": "mf-app-1:build:production" | |
} | |
}, | |
"options": { | |
"browserTarget": "mf-app-1:build", | |
"sourceMap": true, | |
"proxyConfig": "config/proxy.conf.json" | |
} | |
}, | |
"test": { | |
"builder": "@nrwl/jest:jest", | |
"options": { | |
"jestConfig": "apps/mf-app-1/jest.config.js", | |
"passWithNoTests": true | |
} | |
} | |
}, | |
"prefix": "fonl", | |
"projectType": "application", | |
"root": "apps/mf-app-1/", | |
"schematics": { | |
"@nrwl/schematics:component": { | |
"style": "scss" | |
} | |
}, | |
"sourceRoot": "apps/mf-app-1/src" | |
}, | |
"mf-app-1-e2e": { | |
"architect": { | |
"e2e": { | |
"builder": "@nrwl/cypress:cypress", | |
"options": { | |
"cypressConfig": "apps/mf-app-1-e2e/cypress.json", | |
"tsConfig": "apps/mf-app-1-e2e/tsconfig.e2e.json", | |
"devServerTarget": "mf-app-1:serve", | |
"browser": "chrome" | |
}, | |
"configurations": { | |
"e2e": { | |
"devServerTarget": "mf-app-1:serve:e2e", | |
"headless": true, | |
"port": 4210 | |
}, | |
"production": { | |
"devServerTarget": "mf-app-1:serve:production", | |
"headless": true | |
} | |
} | |
}, | |
"lint": { | |
"builder": "@nrwl/linter:eslint", | |
"options": { | |
"lintFilePatterns": ["apps/mf-app-1-e2e/**/*.{js,ts}", "apps/mf-app-1-e2e/**/*.html"] | |
} | |
} | |
}, | |
"projectType": "application", | |
"root": "apps/mf-app-1-e2e/" | |
}, | |
"mf-app-2": { | |
"projectType": "application", | |
"root": "apps/mf-app-2", | |
"sourceRoot": "apps/mf-app-2/src", | |
"prefix": "fonl2", | |
"architect": { | |
"build": { | |
"builder": "@nrwl/angular:webpack-browser", | |
"outputs": ["{options.outputPath}"], | |
"options": { | |
"outputPath": "dist/apps/mf-app-2", | |
"index": "apps/mf-app-2/src/index.html", | |
"main": "apps/mf-app-2/src/main.ts", | |
"polyfills": "apps/mf-app-2/src/polyfills.ts", | |
"tsConfig": "apps/mf-app-2/tsconfig.app.json", | |
"inlineStyleLanguage": "scss", | |
"assets": ["apps/mf-app-2/src/favicon.ico", "apps/mf-app-2/src/assets"], | |
"styles": [ | |
"apps/mf-app-2/src/styles.scss" | |
], | |
"scripts": [], | |
"customWebpackConfig": { | |
"path": "apps/mf-app-2/webpack.config.js" | |
} | |
}, | |
"configurations": { | |
"production": { | |
"budgets": [ | |
{ | |
"type": "initial", | |
"maximumWarning": "500kb" | |
}, | |
{ | |
"type": "anyComponentStyle", | |
"maximumWarning": "2kb" | |
} | |
], | |
"fileReplacements": [ | |
{ | |
"replace": "apps/mf-app-2/src/environments/environment.ts", | |
"with": "apps/mf-app-2/src/environments/environment.prod.ts" | |
} | |
], | |
"outputHashing": "all", | |
"customWebpackConfig": { | |
"path": "apps/mf-app-2/webpack.prod.config.js" | |
} | |
}, | |
"e2e": { | |
"budgets": [ | |
{ | |
"type": "initial", | |
"maximumWarning": "500kb" | |
}, | |
{ | |
"type": "anyComponentStyle", | |
"maximumWarning": "2kb" | |
} | |
], | |
"fileReplacements": [ | |
{ | |
"replace": "apps/mf-app-2/src/environments/environment.ts", | |
"with": "apps/mf-app-2/src/environments/environment.e2e.ts" | |
} | |
], | |
"outputHashing": "all", | |
"customWebpackConfig": { | |
"path": "apps/mf-app-2/webpack.prod.config.js" | |
} | |
}, | |
"development": { | |
"buildOptimizer": false, | |
"optimization": false, | |
"vendorChunk": true, | |
"extractLicenses": false, | |
"sourceMap": true, | |
"namedChunks": true | |
} | |
}, | |
"defaultConfiguration": "production" | |
}, | |
"serve": { | |
"builder": "@nrwl/angular:webpack-server", | |
"configurations": { | |
"production": { | |
"browserTarget": "mf-app-2:build:production" | |
}, | |
"e2e": { | |
"browserTarget": "mf-app-2:build:production" | |
}, | |
"development": { | |
"browserTarget": "mf-app-2:build:development" | |
} | |
}, | |
"defaultConfiguration": "development", | |
"options": { | |
"browserTarget": "mf-app-2:build", | |
"sourceMap": true, | |
"proxyConfig": "config/proxy.conf.json" | |
} | |
}, | |
"extract-i18n": { | |
"builder": "@angular-devkit/build-angular:extract-i18n", | |
"options": { | |
"browserTarget": "mf-app-2:build" | |
} | |
}, | |
"lint": { | |
"builder": "@nrwl/linter:eslint", | |
"options": { | |
"lintFilePatterns": ["apps/mf-app-2/src/**/*.ts", "apps/mf-app-2/src/**/*.html"] | |
} | |
}, | |
"test": { | |
"builder": "@nrwl/jest:jest", | |
"outputs": ["coverage/apps/mf-app-2"], | |
"options": { | |
"jestConfig": "apps/mf-app-2/jest.config.js", | |
"passWithNoTests": true | |
} | |
} | |
} | |
}, | |
"mf-app-2-e2e": { | |
"root": "apps/mf-app-2-e2e", | |
"sourceRoot": "apps/mf-app-2-e2e/src", | |
"projectType": "application", | |
"architect": { | |
"e2e": { | |
"builder": "@nrwl/cypress:cypress", | |
"options": { | |
"cypressConfig": "apps/mf-app-2-e2e/cypress.json", | |
"devServerTarget": "mf-app-2:serve:development", | |
"browser": "chrome" | |
}, | |
"configurations": { | |
"e2e": { | |
"devServerTarget": "mf-app-2:serve:e2e", | |
"headless": true, | |
"port": 4211 | |
}, | |
"production": { | |
"devServerTarget": "mf-app-2:serve:production" | |
} | |
} | |
}, | |
"lint": { | |
"builder": "@nrwl/linter:eslint", | |
"outputs": ["{options.outputFile}"], | |
"options": { | |
"lintFilePatterns": ["apps/mf-app-2-e2e/**/*.{js,ts}"] | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"/remotes/mf-app-1": { | |
"target": "http://localhost:4220", | |
"secure": false, | |
"pathRewrite": { | |
"^/remotes/mf-app-1": "" | |
} | |
}, | |
"/remotes/mf-app-2": { | |
"target": "http://localhost:4221", | |
"secure": false, | |
"pathRewrite": { | |
"^/remotes/mf-app-2": "" | |
} | |
}, | |
"/assets/mf-app-1": { | |
"target": "http://localhost:4220", | |
"secure": false | |
}, | |
"/assets/mf-app-2": { | |
"target": "http://localhost:4221", | |
"secure": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment