Commit dd725e9c authored by Gert Paimla's avatar Gert Paimla

fix project config

parent 73c06405
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
# 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 IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed
> 0.5%
last 2 versions
# 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 dead
not IE 9-11
\ No newline at end of file
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
......@@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"TEXTA": {
"texta": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
......@@ -26,7 +26,7 @@
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
......@@ -101,18 +101,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "TEXTA:build"
"browserTarget": "texta:build"
},
"configurations": {
"production": {
"browserTarget": "TEXTA:build:production"
"browserTarget": "texta:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "TEXTA:build"
"browserTarget": "texta:build"
}
},
"test": {
......@@ -148,7 +148,7 @@
}
}
},
"TEXTA-e2e": {
"texta-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
......@@ -157,11 +157,11 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "TEXTA:serve"
"devServerTarget": "texta:serve"
},
"configurations": {
"production": {
"devServerTarget": "TEXTA:serve:production"
"devServerTarget": "texta:serve:production"
}
}
},
......@@ -177,5 +177,5 @@
}
}
},
"defaultProject": "TEXTA"
"defaultProject": "texta"
}
{
"name": "texta",
"version": "1.4.2",
"sideEffects": false,
"scripts": {
"ng": "ng",
"start": "ng serve",
......
{
"name": "texta",
"private": true,
"description_1": "This is a special package.json file that is not used by package managers.",
"description_2": "It is used to tell the tools and bundlers whether the code under this directory is free of code with non-local side-effect. Any code that does have non-local side-effects can't be well optimized (tree-shaken) and will result in unnecessary increased payload size.",
"description_3": "It should be safe to set this option to 'false' for new applications, but existing code bases could be broken when built with the production config if the application code does contain non-local side-effects that the application depends on.",
"description_4": "To learn more about this file see: https://angular.io/config/app-package-json.",
"sideEffects": true
}
......@@ -6,7 +6,13 @@ import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const require: any;
declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
keys(): string[];
<T>(id: string): T;
};
};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
......
{
"extends": "../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"kebab-case"
]
}
}
{
"extends": "../tsconfig.base.json",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"types": []
},
"files": [
"main.ts",
"polyfills.ts"
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
......
......@@ -8,16 +8,16 @@
"files": [],
"references": [
{
"path": "./src/tsconfig.app.json"
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.worker.json"
},
{
"path": "./src/tsconfig.spec.json"
"path": "./tsconfig.spec.json"
},
{
"path": "./e2e/tsconfig.e2e.json"
}
]
}
\ No newline at end of file
}
{
"extends": "../tsconfig.base.json",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "../out-tsc/spec",
"types": [
......@@ -8,8 +8,8 @@
]
},
"files": [
"test.ts",
"polyfills.ts"
"src/test.ts",
"src/polyfills.ts"
],
"include": [
"**/*.spec.ts",
......
{
"extends": "tslint:recommended",
"rulesDirectory": [
"codelyzer"
],
"rules": {
"no-any": true,
"align": {
"options": [
"parameters",
......@@ -12,12 +8,26 @@
]
},
"array-type": false,
"arrow-parens": false,
"arrow-return-shorthand": true,
"curly": true,
"deprecation": {
"severity": "warn"
"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"
],
"eofline": true,
"import-blacklist": [
true,
......@@ -29,13 +39,11 @@
"spaces"
]
},
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [
true,
140
],
"member-access": false,
"member-ordering": [
true,
{
......@@ -47,7 +55,7 @@
]
}
],
"no-consecutive-blank-lines": false,
"no-any": true,
"no-console": [
true,
"debug",
......@@ -69,8 +77,6 @@
true,
"as-needed"
],
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [
true,
"single"
......@@ -89,13 +95,10 @@
"named": "never"
}
},
"trailing-comma": false,
"no-output-on-prefix": true,
"no-inputs-metadata-property": true,
"no-outputs-metadata-property": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-output-rename": true,
"typedef": [
true,
"call-signature"
],
"typedef-whitespace": {
"options": [
{
......@@ -114,11 +117,7 @@
}
]
},
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true
, "variable-name": {
"variable-name": {
"options": [
"ban-keywords",
"check-format",
......@@ -134,6 +133,21 @@
"check-type",
"check-typecast"
]
}
}
},
"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"
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment