Skip to content

Commit

Permalink
{ Core } - Include angular 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreDuc committed Feb 3, 2021
1 parent f21a32c commit ed53b77
Show file tree
Hide file tree
Showing 21 changed files with 14,603 additions and 8,682 deletions.
56 changes: 56 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/no-inferrable-types": [
"off",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-use-before-define": "error",
"arrow-parens": [
"off",
"always"
],
"import/order": "off",
"no-bitwise": "off"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ cache:
directories:
- "node_modules"
script:
- "npm run test -- --watch=false"
- "npm run lint"
- "npm run e2e"
- "npx ng test --code-coverage --watch=false"
- "npx ng lint"
- "npx ng e2e"

before_script:
- export DISPLAY=:99.0
Expand Down
51 changes: 16 additions & 35 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"options": {
"tsConfig": "projects/ng-event-options/tsconfig.lib.json",
"project": "projects/ng-event-options/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ng-event-options/tsconfig.lib.prod.json"
}
}
},
"test": {
Expand All @@ -25,14 +30,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/ng-event-options/tsconfig.lib.json",
"projects/ng-event-options/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"projects/ng-event-options/**/*.ts",
"projects/ng-event-options/**/*.html"
]
}
}
Expand All @@ -57,7 +59,7 @@
"main": "projects/e2e-ng-event-options/src/main.ts",
"polyfills": "projects/e2e-ng-event-options/src/polyfills.ts",
"tsConfig": "projects/e2e-ng-event-options/tsconfig.app.json",
"aot": false,
"aot": true,
"assets": [
"projects/e2e-ng-event-options/src/favicon.ico",
"projects/e2e-ng-event-options/src/assets"
Expand All @@ -80,7 +82,6 @@
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand Down Expand Up @@ -116,33 +117,12 @@
"browserTarget": "e2e-ng-event-options:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/e2e-ng-event-options/src/test.ts",
"polyfills": "projects/e2e-ng-event-options/src/polyfills.ts",
"tsConfig": "projects/e2e-ng-event-options/tsconfig.spec.json",
"karmaConfig": "projects/e2e-ng-event-options/karma.conf.js",
"assets": [
"projects/e2e-ng-event-options/src/favicon.ico",
"projects/e2e-ng-event-options/src/assets"
],
"styles": [
"projects/e2e-ng-event-options/src/styles.scss"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/e2e-ng-event-options/tsconfig.app.json",
"projects/e2e-ng-event-options/tsconfig.spec.json",
"projects/e2e-ng-event-options/e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"projects/e2e-ng-event-options/**/*.ts",
"projects/e2e-ng-event-options/**/*.html"
]
}
},
Expand All @@ -159,6 +139,7 @@
}
}
}
}},
}
},
"defaultProject": "ng-event-options"
}
Loading

0 comments on commit ed53b77

Please sign in to comment.