Skip to content

Commit

Permalink
Merge pull request #3950 from cloudfoundry/angular-8
Browse files Browse the repository at this point in the history
Angular 8 Migration
  • Loading branch information
Nathan authored Nov 19, 2019
2 parents 22028e9 + 2ddd7e8 commit eb0a221
Show file tree
Hide file tree
Showing 234 changed files with 8,114 additions and 7,572 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "8.11.2"
- "10.16.3"
sudo: required
dist: bionic
services:
Expand All @@ -12,7 +12,6 @@ before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1366x768x24"
- sleep 3
install:
- npm install [email protected] -g
- npm install
- ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts
filter_secrets: false
Expand Down
80 changes: 60 additions & 20 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"styles": [
"src/frontend/packages/core/src/styles.scss",
"src/frontend/packages/cf-autoscaler/src/styles.scss",
"node_modules/xterm/dist/xterm.css"
"node_modules/xterm/css/xterm.css"
],
"scripts": []
},
Expand All @@ -44,10 +44,12 @@
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}]
"fileReplacements": [
{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}
]
}
}
},
Expand Down Expand Up @@ -76,7 +78,7 @@
}
},
"stratos-e2e": {
"root": "",
"root": "e2e",
"sourceRoot": "",
"projectType": "application",
"architect": {
Expand Down Expand Up @@ -122,10 +124,12 @@
},
"configurations": {
"production": {
"fileReplacements": [{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}],
"fileReplacements": [
{
"replace": "src/frontend/packages/core/src/environments/environment.ts",
"with": "src/frontend/packages/core/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
Expand Down Expand Up @@ -185,11 +189,16 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.json"],
"tsConfig": [
"src/tsconfig.json"
],
"tslintConfig": "src/frontend/packages/core/tslint.json",
"files": [
"src/frontend/packages/core/src/**/*.ts",
"src/frontend/packages/core/src/custom/**/*.ts"
],
"exclude": [
"!src/frontend/packages/core/**"
]
}
}
Expand Down Expand Up @@ -219,9 +228,16 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.json"],
"tsConfig": [
"src/tsconfig.json"
],
"tslintConfig": "src/frontend/packages/store/tslint.json",
"files": ["src/frontend/packages/store/src/**/*.ts"]
"files": [
"src/frontend/packages/store/src/**/*.ts"
],
"exclude": [
"!src/frontend/packages/store/**"
]
}
}
}
Expand Down Expand Up @@ -250,9 +266,16 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.json"],
"tsConfig": [
"src/tsconfig.json"
],
"tslintConfig": "src/frontend/packages/store-helpers/tslint.json",
"files": ["src/frontend/packages/store-helpers/src/**/*.ts"]
"files": [
"src/frontend/packages/store-helpers/src/**/*.ts"
],
"exclude": [
"!src/frontend/packages/store-helpers/**"
]
}
}
}
Expand Down Expand Up @@ -281,9 +304,16 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.json"],
"tsConfig": [
"src/tsconfig.json"
],
"tslintConfig": "src/frontend/packages/cloud-foundry/tslint.json",
"files": ["src/frontend/packages/cloud-foundry/src/**/*.ts"]
"files": [
"src/frontend/packages/cloud-foundry/src/**/*.ts"
],
"exclude": [
"!src/frontend/packages/cloud-foundry/**"
]
}
}
}
Expand Down Expand Up @@ -312,9 +342,16 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.json"],
"tsConfig": [
"src/tsconfig.json"
],
"tslintConfig": "src/frontend/packages/cf-autoscaler/tslint.json",
"files": ["src/frontend/packages/cf-autoscaler/src/**/*.ts"]
"files": [
"src/frontend/packages/cf-autoscaler/src/**/*.ts"
],
"exclude": [
"!src/frontend/packages/cf-autoscaler/**"
]
}
}
}
Expand All @@ -329,5 +366,8 @@
"@schematics/angular:directive": {
"prefix": "app"
}
},
"cli": {
"defaultCollection": "@nrwl/angular"
}
}
}
12 changes: 12 additions & 0 deletions browserslist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
4 changes: 2 additions & 2 deletions build/karma.test.reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

this.onRunComplete = function (browser, result) {
if (process.env['CHECK_TESTS'] === 'true' && this.skipped !== 0) {
result.exitCode = 1;
// result.exitCode = 1;
console.log('\x1b[41m\x1b[97m\x1b[1m');
console.log('');
console.log(' ERROR: ' + this.skipped + ' tests were skipped');
console.log(' WRANING: ' + this.skipped + ' tests were skipped');
console.log('');
console.log(' Check that you have not used fdescribe, fit, xdescribe or xit by mistake');
console.log('');
Expand Down
2 changes: 2 additions & 0 deletions deploy/ci/travis/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ echo "Chrome version: ${CHROME_VERSION}"

npm run update-webdriver -- --versions.chrome=${CHROME_VERSION}

export STRATOS_E2E_BASE_URL="https://127.0.0.1:5443"

E2E_TARGET="e2e -- --no-webdriver-update --dev-server-target= --base-url=https://127.0.0.1:5443 --suite=${SUITE}"

# Capture video if configured
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Routes, RouterModule } from '@angular/router';

const customRoutes: Routes = [{
path: 'example',
loadChildren: './nav-extension/nav-extension.module#NavExtensionModule',
loadChildren: () => import('./nav-extension/nav-extension.module').then(m => m.NavExtensionModule),
data: {
stratosNavigation: {
text: 'Example',
Expand Down
Loading

0 comments on commit eb0a221

Please sign in to comment.