Update to angular 17 #97
14 changed files with 2468 additions and 6182 deletions
45
angular.json
45
angular.json
|
|
@ -16,7 +16,9 @@
|
||||||
"outputPath": "dist",
|
"outputPath": "dist",
|
||||||
"index": "./src/index.html",
|
"index": "./src/index.html",
|
||||||
"main": "./src/main.ts",
|
"main": "./src/main.ts",
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": [
|
||||||
|
"zone.js"
|
||||||
|
],
|
||||||
"tsConfig": "tsconfig.app.json",
|
"tsConfig": "tsconfig.app.json",
|
||||||
"aot": true,
|
"aot": true,
|
||||||
"assets": [
|
"assets": [
|
||||||
|
|
@ -61,66 +63,41 @@
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "dev:build"
|
"buildTarget": "dev:build"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"browserTarget": "dev:build:production"
|
"buildTarget": "dev:build:production"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extract-i18n": {
|
"extract-i18n": {
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "dev:build"
|
"buildTarget": "dev:build"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"builder": "@angular-devkit/build-angular:karma",
|
"builder": "@angular-devkit/build-angular:karma",
|
||||||
"options": {
|
"options": {
|
||||||
"main": "src/test.ts",
|
"polyfills": [
|
||||||
"polyfills": "src/polyfills.ts",
|
"zone.js",
|
||||||
|
"zone.js/testing"
|
||||||
|
],
|
||||||
"tsConfig": "tsconfig.spec.json",
|
"tsConfig": "tsconfig.spec.json",
|
||||||
"karmaConfig": "karma.conf.js",
|
"inlineStyleLanguage": "scss",
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/favicon.ico",
|
"src/favicon.ico",
|
||||||
"src/assets"
|
"src/assets"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"src/styles.css"
|
|
||||||
],
|
],
|
||||||
"scripts": []
|
"scripts": []
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"lint": {
|
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
|
||||||
"options": {
|
|
||||||
"tsConfig": [
|
|
||||||
"tsconfig.app.json",
|
|
||||||
"tsconfig.spec.json",
|
|
||||||
"e2e/tsconfig.json"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"e2e": {
|
|
||||||
"builder": "@angular-devkit/build-angular:protractor",
|
|
||||||
"options": {
|
|
||||||
"protractorConfig": "e2e/protractor.conf.js",
|
|
||||||
"devServerTarget": "dev:serve"
|
|
||||||
},
|
|
||||||
"configurations": {
|
|
||||||
"production": {
|
|
||||||
"devServerTarget": "dev:serve:production"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultProject": "dev",
|
|
||||||
"cli": {
|
"cli": {
|
||||||
"analytics": false
|
"analytics": false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
browserslist
12
browserslist
|
|
@ -1,12 +0,0 @@
|
||||||
# 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'.
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
// Karma configuration file, see link for more information
|
|
||||||
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
||||||
|
|
||||||
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-istanbul-reporter'),
|
|
||||||
require('@angular-devkit/build-angular/plugins/karma'),
|
|
||||||
],
|
|
||||||
client: {
|
|
||||||
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
|
||||||
},
|
|
||||||
coverageIstanbulReporter: {
|
|
||||||
dir: require('path').join(__dirname, '../coverage'),
|
|
||||||
reports: ['html', 'lcovonly'],
|
|
||||||
fixWebpackSourcePaths: true,
|
|
||||||
},
|
|
||||||
reporters: ['progress', 'kjhtml'],
|
|
||||||
port: 9876,
|
|
||||||
colors: true,
|
|
||||||
logLevel: config.LOG_INFO,
|
|
||||||
autoWatch: true,
|
|
||||||
browsers: ['Chrome', 'ChromeHeadless', 'ChromeHeadlessDebug'],
|
|
||||||
customLaunchers: {
|
|
||||||
ChromeHeadlessDebug: {
|
|
||||||
base: 'ChromeHeadless',
|
|
||||||
flags: ['--remote-debugging-port=9333', '--no-sandbox'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
singleRun: false,
|
|
||||||
});
|
|
||||||
};
|
|
||||||
8218
package-lock.json
generated
8218
package-lock.json
generated
File diff suppressed because it is too large
Load diff
57
package.json
57
package.json
|
|
@ -4,12 +4,10 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "./node_modules/.bin/ng",
|
"ng": "./node_modules/.bin/ng",
|
||||||
"start": "node node_modules/@angular/cli/bin/ng serve",
|
"start": "node node_modules/@angular/cli/bin/ng serve",
|
||||||
"build": "node node_modules/@angular/cli/bin/ng build --aot --configuration production",
|
"build": "node node_modules/@angular/cli/bin/ng build --configuration production",
|
||||||
"test": "node node_modules/@angular/cli/bin/ng test",
|
"test": "node node_modules/@angular/cli/bin/ng test",
|
||||||
"test:headless": "node node_modules/@angular/cli/bin/ng test --browsers=ChromeHeadlessDebug",
|
"test:headless": "node node_modules/@angular/cli/bin/ng test --browsers=ChromeHeadless",
|
||||||
"test:headless:singleRun": "node node_modules/@angular/cli/bin/ng test --browsers=ChromeHeadlessDebug --watch false",
|
"test:headless:singleRun": "node node_modules/@angular/cli/bin/ng test --no-watch --no-progress --browsers=ChromeHeadless",
|
||||||
"lint": "node node_modules/@angular/cli/bin/ng lint",
|
|
||||||
"e2e": "node node_modules/@angular/cli/bin/ng e2e",
|
|
||||||
"release:minor": "cd ./src/lib/ && npm version minor",
|
"release:minor": "cd ./src/lib/ && npm version minor",
|
||||||
"release:major": "cd ./src/lib/ && npm version major",
|
"release:major": "cd ./src/lib/ && npm version major",
|
||||||
"release:patch": "cd ./src/lib/ && npm version patch",
|
"release:patch": "cd ./src/lib/ && npm version patch",
|
||||||
|
|
@ -17,39 +15,32 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^13.0.3",
|
"@angular/animations": "^17.0.8",
|
||||||
"@angular/common": "^13.0.3",
|
"@angular/common": "^17.0.8",
|
||||||
"@angular/compiler": "^13.0.3",
|
"@angular/compiler": "^17.0.8",
|
||||||
"@angular/core": "^13.0.3",
|
"@angular/core": "^17.0.8",
|
||||||
"@angular/forms": "^13.0.3",
|
"@angular/forms": "^17.0.8",
|
||||||
"@angular/platform-browser": "^13.0.3",
|
"@angular/platform-browser": "^17.0.8",
|
||||||
"@angular/platform-browser-dynamic": "^13.0.3",
|
"@angular/platform-browser-dynamic": "^17.0.8",
|
||||||
"@angular/router": "^13.0.3",
|
"@angular/router": "^17.0.8",
|
||||||
"rxjs": "~6.5.4",
|
"rxjs": "~7.8.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^17.0.9",
|
"@angular-devkit/build-angular": "^17.0.9",
|
||||||
"@angular/cli": "^13.0.3",
|
"@angular/cli": "^17.0.9",
|
||||||
"@angular/compiler-cli": "^13.0.3",
|
"@angular/compiler-cli": "^17.0.8",
|
||||||
"@angular/language-service": "^13.0.3",
|
"@types/jasmine": "~5.1.0",
|
||||||
"@types/jasmine": "~3.5.0",
|
|
||||||
"@types/jasminewd2": "~2.0.3",
|
"@types/jasminewd2": "~2.0.3",
|
||||||
"@types/node": "^12.11.1",
|
"@types/node": "^18.18.0",
|
||||||
"codelyzer": "^6.0.2",
|
"jasmine-core": "~5.1.0",
|
||||||
"jasmine-core": "~4.2.0",
|
"karma": "~6.4.0",
|
||||||
"jasmine-spec-reporter": "~4.2.1",
|
"karma-chrome-launcher": "~3.2.0",
|
||||||
"karma": "^6.4.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-chrome-launcher": "~3.1.0",
|
|
||||||
"karma-coverage-istanbul-reporter": "~2.1.0",
|
|
||||||
"karma-jasmine": "~5.1.0",
|
"karma-jasmine": "~5.1.0",
|
||||||
"karma-jasmine-html-reporter": "^2.0.0",
|
"karma-jasmine-html-reporter": "~2.1.0",
|
||||||
"ng-packagr": "^13.0.3",
|
"ng-packagr": "^17.0.3",
|
||||||
"prettier": "^1.19.1",
|
"typescript": "5.2.2"
|
||||||
"protractor": "^7.0.0",
|
|
||||||
"ts-node": "~8.3.0",
|
|
||||||
"tslint": "~5.18.0",
|
|
||||||
"typescript": "4.5.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ import {
|
||||||
export class Ng2FittextDirective
|
export class Ng2FittextDirective
|
||||||
implements AfterViewInit, OnInit, OnChanges, AfterViewChecked {
|
implements AfterViewInit, OnInit, OnChanges, AfterViewChecked {
|
||||||
@Input('fittext') fittext: any;
|
@Input('fittext') fittext: any;
|
||||||
@Input('activateOnResize') activateOnResize: boolean;
|
@Input('activateOnResize') activateOnResize: boolean = true;
|
||||||
@Input('container') container: HTMLElement;
|
@Input('container') container: HTMLElement | null = null;
|
||||||
@Input('activateOnInputEvents') activateOnInputEvents: boolean;
|
@Input('activateOnInputEvents') activateOnInputEvents: boolean = false;
|
||||||
@Input('minFontSize') minFontSize = 7;
|
@Input('minFontSize') minFontSize = 7;
|
||||||
@Input('maxFontSize') maxFontSize = 1000;
|
@Input('maxFontSize') maxFontSize = 1000;
|
||||||
|
|
||||||
|
|
@ -143,13 +143,13 @@ export class Ng2FittextDirective
|
||||||
getStartFontSizeFromHeight(): number {
|
getStartFontSizeFromHeight(): number {
|
||||||
return this.container
|
return this.container
|
||||||
? this.container.clientHeight
|
? this.container.clientHeight
|
||||||
: this.el.nativeElement.parentElement.clientHeight;
|
: this.el.nativeElement.parentElement!.clientHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
private getStartFontSizeFromWeight(): number {
|
private getStartFontSizeFromWeight(): number {
|
||||||
return this.container
|
return this.container
|
||||||
? this.container.clientWidth
|
? this.container.clientWidth
|
||||||
: this.el.nativeElement.parentElement.clientWidth;
|
: this.el.nativeElement.parentElement!.clientWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
isDone(): boolean {
|
isDone(): boolean {
|
||||||
|
|
@ -164,7 +164,7 @@ export class Ng2FittextDirective
|
||||||
return this.container
|
return this.container
|
||||||
? this.checkOverflow(this.container, this.el.nativeElement)
|
? this.checkOverflow(this.container, this.el.nativeElement)
|
||||||
: this.checkOverflow(
|
: this.checkOverflow(
|
||||||
this.el.nativeElement.parentElement,
|
this.el.nativeElement.parentElement!,
|
||||||
this.el.nativeElement
|
this.el.nativeElement
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -297,7 +297,9 @@ describe('Class: Ng2FittextDirective', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Should calculate the overflow using the parent element if the container is not present', () => {
|
it('Should calculate the overflow using the parent element if the container is not present', () => {
|
||||||
delete ng2FittextDirective.container;
|
if(ng2FittextDirective) {
|
||||||
|
delete (ng2FittextDirective as any).container;
|
||||||
|
}
|
||||||
spyOn(ng2FittextDirective, 'checkOverflow').and.callFake(
|
spyOn(ng2FittextDirective, 'checkOverflow').and.callFake(
|
||||||
(parentElement: any, childrenElement: any) => {
|
(parentElement: any, childrenElement: any) => {
|
||||||
expect(parentElement).toEqual(parentElementMock);
|
expect(parentElement).toEqual(parentElementMock);
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,20 @@
|
||||||
"angular 5",
|
"angular 5",
|
||||||
"angular 6",
|
"angular 6",
|
||||||
"angular 7",
|
"angular 7",
|
||||||
|
"angular 8",
|
||||||
|
"angular 9",
|
||||||
|
"angular 10",
|
||||||
|
"angular 11",
|
||||||
|
"angular 12",
|
||||||
"angular 13",
|
"angular 13",
|
||||||
|
"angular 14",
|
||||||
|
"angular 15",
|
||||||
|
"angular 16",
|
||||||
|
"angular 17",
|
||||||
"fit text",
|
"fit text",
|
||||||
"responsive text"
|
"responsive text",
|
||||||
|
"responsive font size",
|
||||||
|
"font size"
|
||||||
],
|
],
|
||||||
"author": "Lorenzo Iovino",
|
"author": "Lorenzo Iovino",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
||||||
/**
|
|
||||||
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
||||||
* You can add your own extra polyfills to this file.
|
|
||||||
*
|
|
||||||
* This file is divided into 2 sections:
|
|
||||||
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
||||||
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
||||||
* file.
|
|
||||||
*
|
|
||||||
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
||||||
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
||||||
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
||||||
*
|
|
||||||
* Learn more in https://angular.io/guide/browser-support
|
|
||||||
*/
|
|
||||||
|
|
||||||
/***************************************************************************************************
|
|
||||||
* BROWSER POLYFILLS
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
||||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Web Animations `@angular/platform-browser/animations`
|
|
||||||
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
||||||
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
||||||
*/
|
|
||||||
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
||||||
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
||||||
* because those flags need to be set before `zone.js` being loaded, and webpack
|
|
||||||
* will put import in the top of bundle, so user need to create a separate file
|
|
||||||
* in this directory (for example: zone-flags.ts), and put the following flags
|
|
||||||
* into that file, and then add the following code before importing zone.js.
|
|
||||||
* import './zone-flags.ts';
|
|
||||||
*
|
|
||||||
* The flags allowed in zone-flags.ts are listed here.
|
|
||||||
*
|
|
||||||
* The following flags will work for all browsers.
|
|
||||||
*
|
|
||||||
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
||||||
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
||||||
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
||||||
*
|
|
||||||
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
||||||
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
||||||
*
|
|
||||||
* (window as any).__Zone_enable_cross_context_check = true;
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/***************************************************************************************************
|
|
||||||
* Zone JS is required by default for Angular itself.
|
|
||||||
*/
|
|
||||||
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************************************
|
|
||||||
* APPLICATION IMPORTS
|
|
||||||
*/
|
|
||||||
|
|
@ -7,14 +7,8 @@ import {
|
||||||
platformBrowserDynamicTesting
|
platformBrowserDynamicTesting
|
||||||
} from '@angular/platform-browser-dynamic/testing';
|
} from '@angular/platform-browser-dynamic/testing';
|
||||||
|
|
||||||
declare const require: any;
|
|
||||||
|
|
||||||
// First, initialize the Angular testing environment.
|
// First, initialize the Angular testing environment.
|
||||||
getTestBed().initTestEnvironment(
|
getTestBed().initTestEnvironment(
|
||||||
BrowserDynamicTestingModule,
|
BrowserDynamicTestingModule,
|
||||||
platformBrowserDynamicTesting()
|
platformBrowserDynamicTesting()
|
||||||
);
|
);
|
||||||
// Then we find all the tests.
|
|
||||||
const context = require.context('./', true, /\.spec\.ts$/);
|
|
||||||
// And load the modules.
|
|
||||||
context.keys().map(context);
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../out-tsc/app",
|
"outDir": "./out-tsc/app",
|
||||||
"module": "es2015",
|
"types": [
|
||||||
"types": []
|
"node"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"exclude": [
|
"files": [
|
||||||
"src/test.ts",
|
"src/main.ts"
|
||||||
"**/*.spec.ts"
|
],
|
||||||
|
"include": [
|
||||||
|
"src/**/*.d.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,28 +3,34 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"outDir": "./dist/out-tsc",
|
"outDir": "./dist/out-tsc",
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"strict": true,
|
||||||
|
"noImplicitOverride": true,
|
||||||
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"downlevelIteration": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"module": "esnext",
|
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"target": "es2015",
|
"target": "ES2022",
|
||||||
"typeRoots": [
|
"module": "ES2022",
|
||||||
"node_modules/@types"
|
"useDefineForClassFields": false,
|
||||||
],
|
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2018",
|
"ES2022",
|
||||||
"dom"
|
"dom"
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"./src/polyfills.ts",
|
|
||||||
"./src/main.ts"
|
"./src/main.ts"
|
||||||
],
|
],
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
"fullTemplateTypeCheck": true,
|
"enableI18nLegacyMessageIdFormat": false,
|
||||||
"strictInjectionParameters": true
|
"strictInjectionParameters": true,
|
||||||
|
"strictInputAccessModifiers": true,
|
||||||
|
"strictTemplates": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,19 +1,14 @@
|
||||||
|
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||||
{
|
{
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "../out-tsc/spec",
|
"outDir": "./out-tsc/spec",
|
||||||
"module": "commonjs",
|
|
||||||
"types": [
|
"types": [
|
||||||
"jasmine",
|
"jasmine"
|
||||||
"node"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"files": [
|
|
||||||
"./src/test.ts",
|
|
||||||
"./src/polyfills.ts"
|
|
||||||
],
|
|
||||||
"include": [
|
"include": [
|
||||||
"**/*.spec.ts",
|
"src/**/*.spec.ts",
|
||||||
"**/*.d.ts"
|
"src/**/*.d.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
91
tslint.json
91
tslint.json
|
|
@ -1,91 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "tslint:recommended",
|
|
||||||
"rules": {
|
|
||||||
"array-type": false,
|
|
||||||
"arrow-parens": false,
|
|
||||||
"deprecation": {
|
|
||||||
"severity": "warning"
|
|
||||||
},
|
|
||||||
"component-class-suffix": true,
|
|
||||||
"contextual-lifecycle": true,
|
|
||||||
"directive-class-suffix": true,
|
|
||||||
"directive-selector": [
|
|
||||||
true,
|
|
||||||
"attribute",
|
|
||||||
"app",
|
|
||||||
"camelCase"
|
|
||||||
],
|
|
||||||
"component-selector": [
|
|
||||||
true,
|
|
||||||
"element",
|
|
||||||
"app",
|
|
||||||
"kebab-case"
|
|
||||||
],
|
|
||||||
"import-blacklist": [
|
|
||||||
true,
|
|
||||||
"rxjs/Rx"
|
|
||||||
],
|
|
||||||
"interface-name": false,
|
|
||||||
"max-classes-per-file": false,
|
|
||||||
"max-line-length": [
|
|
||||||
true,
|
|
||||||
140
|
|
||||||
],
|
|
||||||
"member-access": false,
|
|
||||||
"member-ordering": [
|
|
||||||
true,
|
|
||||||
{
|
|
||||||
"order": [
|
|
||||||
"static-field",
|
|
||||||
"instance-field",
|
|
||||||
"static-method",
|
|
||||||
"instance-method"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"no-consecutive-blank-lines": false,
|
|
||||||
"no-console": [
|
|
||||||
true,
|
|
||||||
"debug",
|
|
||||||
"info",
|
|
||||||
"time",
|
|
||||||
"timeEnd",
|
|
||||||
"trace"
|
|
||||||
],
|
|
||||||
"no-empty": false,
|
|
||||||
"no-inferrable-types": [
|
|
||||||
true,
|
|
||||||
"ignore-params"
|
|
||||||
],
|
|
||||||
"no-non-null-assertion": true,
|
|
||||||
"no-redundant-jsdoc": true,
|
|
||||||
"no-switch-case-fall-through": true,
|
|
||||||
"no-var-requires": false,
|
|
||||||
"object-literal-key-quotes": [
|
|
||||||
true,
|
|
||||||
"as-needed"
|
|
||||||
],
|
|
||||||
"object-literal-sort-keys": false,
|
|
||||||
"ordered-imports": false,
|
|
||||||
"quotemark": [
|
|
||||||
true,
|
|
||||||
"single"
|
|
||||||
],
|
|
||||||
"trailing-comma": false,
|
|
||||||
"no-conflicting-lifecycle": true,
|
|
||||||
"no-host-metadata-property": true,
|
|
||||||
"no-input-rename": true,
|
|
||||||
"no-inputs-metadata-property": true,
|
|
||||||
"no-output-native": true,
|
|
||||||
"no-output-on-prefix": true,
|
|
||||||
"no-output-rename": true,
|
|
||||||
"no-outputs-metadata-property": true,
|
|
||||||
"template-banana-in-box": true,
|
|
||||||
"template-no-negated-async": true,
|
|
||||||
"use-lifecycle-interface": true,
|
|
||||||
"use-pipe-transform-interface": true
|
|
||||||
},
|
|
||||||
"rulesDirectory": [
|
|
||||||
"codelyzer"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue