Skip to content

Commit

Permalink
feat: angular 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
satanTime committed Oct 3, 2020
1 parent 7772491 commit af50a72
Show file tree
Hide file tree
Showing 117 changed files with 76,527 additions and 119 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
/e2e/a10es5noivy/node_modules
/e2e/a10es2015ivy/node_modules
/e2e/a10es2015noivy/node_modules
/e2e/a11es5ivy/node_modules
/e2e/a11es5noivy/node_modules
/e2e/a11es2015ivy/node_modules
/e2e/a11es2015noivy/node_modules
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ VOLUME /app/e2e/a10es5ivy/node_modules
VOLUME /app/e2e/a10es5noivy/node_modules
VOLUME /app/e2e/a10es2015ivy/node_modules
VOLUME /app/e2e/a10es2015noivy/node_modules
VOLUME /app/e2e/a11es5ivy/node_modules
VOLUME /app/e2e/a11es5noivy/node_modules
VOLUME /app/e2e/a11es2015ivy/node_modules
VOLUME /app/e2e/a11es2015noivy/node_modules

RUN npm config set cache /npm --global

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The current version can be used and has been tested on:
- Angular 8 (Jasmine, Jest, es5, es2015)
- Angular 9 (Jasmine, Jest, Ivy, es5, es2015)
- Angular 10 (Jasmine, Jest, Ivy, es5, es2015)
- Angular 11 (Jasmine, Jest, Ivy, es5, es2015)

## Why use this?

Expand Down
6 changes: 3 additions & 3 deletions e2e/a10es2015ivy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"test": "npm run test:jasmine -- --progress=false && npm run test:jest",
"test:jasmine": "ng test",
"test:jasmine:debug": "ng test -- --watch --browsers Chrome",
"test:jest": "jest --runInBand",
"test:jest": "jest",
"test:jest:debug": "jest --watch",
"lint": "ng lint",
"puppeteer": "npm install puppeteer@~3.3.0 --no-save"
"puppeteer": "npm install puppeteer@~5.3.1 --no-save"
},
"private": true,
"peerDependencies": {
"ng-mocks": "*",
"puppeteer": "~3.3.0"
"puppeteer": "~5.3.1"
},
"dependencies": {
"@angular/animations": "^10.0.2",
Expand Down
6 changes: 3 additions & 3 deletions e2e/a10es2015noivy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"test": "npm run test:jasmine -- --progress=false && npm run test:jest",
"test:jasmine": "ng test",
"test:jasmine:debug": "ng test -- --watch --browsers Chrome",
"test:jest": "jest --runInBand",
"test:jest": "jest",
"test:jest:debug": "jest --watch",
"lint": "ng lint",
"puppeteer": "npm install puppeteer@~3.3.0 --no-save"
"puppeteer": "npm install puppeteer@~5.3.1 --no-save"
},
"private": true,
"peerDependencies": {
"ng-mocks": "*",
"puppeteer": "~3.3.0"
"puppeteer": "~5.3.1"
},
"dependencies": {
"@angular/animations": "^10.0.2",
Expand Down
6 changes: 3 additions & 3 deletions e2e/a10es5ivy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"test": "npm run test:jasmine -- --progress=false && npm run test:jest",
"test:jasmine": "ng test",
"test:jasmine:debug": "ng test -- --watch --browsers Chrome",
"test:jest": "jest --runInBand",
"test:jest": "jest",
"test:jest:debug": "jest --watch",
"lint": "ng lint",
"puppeteer": "npm install puppeteer@~3.3.0 --no-save"
"puppeteer": "npm install puppeteer@~5.3.1 --no-save"
},
"private": true,
"peerDependencies": {
"ng-mocks": "*",
"puppeteer": "~3.3.0"
"puppeteer": "~5.3.1"
},
"dependencies": {
"@angular/animations": "^10.0.2",
Expand Down
6 changes: 3 additions & 3 deletions e2e/a10es5noivy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"test": "npm run test:jasmine -- --progress=false && npm run test:jest",
"test:jasmine": "ng test",
"test:jasmine:debug": "ng test -- --watch --browsers Chrome",
"test:jest": "jest --runInBand",
"test:jest": "jest",
"test:jest:debug": "jest --watch",
"lint": "ng lint",
"puppeteer": "npm install puppeteer@~3.3.0 --no-save"
"puppeteer": "npm install puppeteer@~5.3.1 --no-save"
},
"private": true,
"peerDependencies": {
"ng-mocks": "*",
"puppeteer": "~3.3.0"
"puppeteer": "~5.3.1"
},
"dependencies": {
"@angular/animations": "^10.0.2",
Expand Down
17 changes: 17 additions & 0 deletions e2e/a11es2015ivy/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

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

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
16 changes: 16 additions & 0 deletions e2e/a11es2015ivy/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions e2e/a11es2015ivy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/src/test
27 changes: 27 additions & 0 deletions e2e/a11es2015ivy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# a11es2015ivy

This project was generated with [Angular CLI](/~https://github.com/angular/angular-cli) version 11.0.0-next.4.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](/~https://github.com/angular/angular-cli/blob/master/README.md).
96 changes: 96 additions & 0 deletions e2e/a11es2015ivy/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"a11es2015ivy": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/a11es2015ivy",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "a11es2015ivy:build"
},
"configurations": {
"production": {
"browserTarget": "a11es2015ivy:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "a11es2015ivy:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.css"],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "a11es2015ivy"
}
39 changes: 39 additions & 0 deletions e2e/a11es2015ivy/karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

process.env.CHROME_BIN = require('puppeteer').executablePath();

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/app'),
subdir: '.',
reporters: [{ type: 'html' }, { type: 'lcovonly' }, { type: 'text-summary' }],
},
customLaunchers: {
ChromeCi: {
base: 'ChromeHeadless',
flags: ['--headless', '--disable-gpu', '--no-sandbox', '--disable-dev-shm-usage'],
},
},
reporters: ['kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['ChromeCi'],
singleRun: true,
});
};
Loading

0 comments on commit af50a72

Please sign in to comment.