Skip to content

Commit a8c6d83

Browse files
dxvladislavvolkovdxvladislavvolkov
and
dxvladislavvolkov
authored
Update template (#158)
* update-template * Return md file * Update versions Co-authored-by: dxvladislavvolkov <[email protected]>
1 parent b19fb48 commit a8c6d83

28 files changed

+5605
-7058
lines changed

.browserslistrc

-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ last 2 Edge major versions
1414
last 2 Safari major versions
1515
last 2 iOS major versions
1616
Firefox ESR
17-
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.
1817
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
# profiling files
1414
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
1615

1716
# IDEs and editors
1817
/.idea

angular.json

+25-49
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
"@schematics/angular:interceptor": {
2323
"skipTests": true
2424
},
25-
"@schematics/angular:module": {
26-
"skipTests": true
27-
},
2825
"@schematics/angular:pipe": {
2926
"skipTests": true
3027
},
@@ -44,7 +41,7 @@
4441
"main": "src/main.ts",
4542
"polyfills": "src/polyfills.ts",
4643
"tsConfig": "tsconfig.app.json",
47-
"aot": true,
44+
"inlineStyleLanguage": "scss",
4845
"assets": [
4946
"src/favicon.ico",
5047
"src/assets"
@@ -60,20 +57,6 @@
6057
},
6158
"configurations": {
6259
"production": {
63-
"fileReplacements": [
64-
{
65-
"replace": "src/environments/environment.ts",
66-
"with": "src/environments/environment.prod.ts"
67-
}
68-
],
69-
"optimization": true,
70-
"outputHashing": "all",
71-
"sourceMap": false,
72-
"extractCss": true,
73-
"namedChunks": false,
74-
"extractLicenses": true,
75-
"vendorChunk": false,
76-
"buildOptimizer": true,
7760
"budgets": [
7861
{
7962
"type": "initial",
@@ -85,20 +68,37 @@
8568
"maximumWarning": "6kb",
8669
"maximumError": "10kb"
8770
}
88-
]
71+
],
72+
"fileReplacements": [
73+
{
74+
"replace": "src/environments/environment.ts",
75+
"with": "src/environments/environment.prod.ts"
76+
}
77+
],
78+
"outputHashing": "all"
79+
},
80+
"development": {
81+
"buildOptimizer": false,
82+
"optimization": false,
83+
"vendorChunk": true,
84+
"extractLicenses": false,
85+
"sourceMap": true,
86+
"namedChunks": true
8987
}
90-
}
88+
},
89+
"defaultConfiguration": "production"
9190
},
9291
"serve": {
9392
"builder": "@angular-devkit/build-angular:dev-server",
94-
"options": {
95-
"browserTarget": "DevExtreme-App:build"
96-
},
9793
"configurations": {
9894
"production": {
9995
"browserTarget": "DevExtreme-App:build:production"
96+
},
97+
"development": {
98+
"browserTarget": "DevExtreme-App:build:development"
10099
}
101-
}
100+
},
101+
"defaultConfiguration": "development"
102102
},
103103
"extract-i18n": {
104104
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -113,6 +113,7 @@
113113
"polyfills": "src/polyfills.ts",
114114
"tsConfig": "tsconfig.spec.json",
115115
"karmaConfig": "karma.conf.js",
116+
"inlineStyleLanguage": "scss",
116117
"assets": [
117118
"src/favicon.ico",
118119
"src/assets"
@@ -122,31 +123,6 @@
122123
],
123124
"scripts": []
124125
}
125-
},
126-
"lint": {
127-
"builder": "@angular-devkit/build-angular:tslint",
128-
"options": {
129-
"tsConfig": [
130-
"tsconfig.app.json",
131-
"tsconfig.spec.json",
132-
"e2e/tsconfig.json"
133-
],
134-
"exclude": [
135-
"**/node_modules/**"
136-
]
137-
}
138-
},
139-
"e2e": {
140-
"builder": "@angular-devkit/build-angular:protractor",
141-
"options": {
142-
"protractorConfig": "e2e/protractor.conf.js",
143-
"devServerTarget": "DevExtreme-App:serve"
144-
},
145-
"configurations": {
146-
"production": {
147-
"devServerTarget": "DevExtreme-App:serve:production"
148-
}
149-
}
150126
}
151127
}
152128
}

e2e/protractor.conf.js

-37
This file was deleted.

e2e/src/app.e2e-spec.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { AppPage } from './app.po';
2-
3-
describe('workspace-project App', () => {
4-
let page: AppPage;
5-
6-
beforeEach(() => {
7-
page = new AppPage();
8-
});
9-
10-
it('should display welcome message', () => {
11-
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('Welcome to DevExtreme App!');
13-
});
14-
});
1+
import { AppPage } from './app.po';
2+
3+
describe('workspace-project App', () => {
4+
let page: AppPage;
5+
6+
beforeEach(() => {
7+
page = new AppPage();
8+
});
9+
10+
it('should display welcome message', () => {
11+
page.navigateTo();
12+
expect(page.getParagraphText()).toEqual('Welcome to DevExtreme App!');
13+
});
14+
});

e2e/src/app.po.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { browser, by, element } from 'protractor';
2-
3-
export class AppPage {
4-
navigateTo() {
5-
return browser.get('/');
6-
}
7-
8-
getParagraphText() {
9-
return element(by.css('app-root .dx-drawer-content .dx-card p:nth-child(2)')).getText();
10-
}
11-
}
1+
import { browser, by, element } from 'protractor';
2+
3+
export class AppPage {
4+
navigateTo() {
5+
return browser.get('/');
6+
}
7+
8+
getParagraphText() {
9+
return element(by.css('app-root .dx-drawer-content .dx-card p:nth-child(2)')).getText();
10+
}
11+
}

e2e/tsconfig.json

-12
This file was deleted.

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = function (config) {
2525
suppressAll: true // removes the duplicated traces
2626
},
2727
coverageReporter: {
28-
dir: require('path').join(__dirname, './coverage/devextreme-app'),
28+
dir: require('path').join(__dirname, './coverage/DevExtreme-App'),
2929
subdir: '.',
3030
reporters: [
3131
{ type: 'html' },

0 commit comments

Comments
 (0)