Skip to content

Commit b6b10e8

Browse files
committed
Upgrade to Angular 6
1 parent c53ad0b commit b6b10e8

File tree

9 files changed

+3024
-1323
lines changed

9 files changed

+3024
-1323
lines changed

.angular-cli.json

Lines changed: 0 additions & 65 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,7 @@ export class TreeviewConfig {
101101
# [2.0.7](https://www.npmjs.com/package/ngx-treeview) (2018-06-07)
102102
### Enhancement:
103103
* Change lodash imports.
104+
105+
# [6.0.0](https://www.npmjs.com/package/ngx-treeview) (2018-06-08)
106+
### Enhancement:
107+
* Upgrade to Angular 6.

angular.json

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ngx-treeview": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"architect": {
11+
"build": {
12+
"builder": "@angular-devkit/build-angular:browser",
13+
"options": {
14+
"outputPath": "dist",
15+
"index": "src/index.html",
16+
"main": "src/main.ts",
17+
"tsConfig": "src/tsconfig.app.json",
18+
"polyfills": "src/polyfills.ts",
19+
"assets": [
20+
"src/assets",
21+
"src/favicon.ico"
22+
],
23+
"styles": [
24+
"node_modules/font-awesome/scss/font-awesome.scss",
25+
"src/styles.scss"
26+
],
27+
"scripts": []
28+
},
29+
"configurations": {
30+
"production": {
31+
"optimization": true,
32+
"outputHashing": "all",
33+
"sourceMap": false,
34+
"extractCss": true,
35+
"namedChunks": false,
36+
"aot": true,
37+
"extractLicenses": true,
38+
"vendorChunk": false,
39+
"buildOptimizer": true,
40+
"fileReplacements": [
41+
{
42+
"replace": "src/environments/environment.ts",
43+
"with": "src/environments/environment.prod.ts"
44+
}
45+
]
46+
}
47+
}
48+
},
49+
"serve": {
50+
"builder": "@angular-devkit/build-angular:dev-server",
51+
"options": {
52+
"browserTarget": "ngx-treeview:build"
53+
},
54+
"configurations": {
55+
"production": {
56+
"browserTarget": "ngx-treeview:build:production"
57+
}
58+
}
59+
},
60+
"extract-i18n": {
61+
"builder": "@angular-devkit/build-angular:extract-i18n",
62+
"options": {
63+
"browserTarget": "ngx-treeview:build"
64+
}
65+
},
66+
"test": {
67+
"builder": "@angular-devkit/build-angular:karma",
68+
"options": {
69+
"main": "src/test.ts",
70+
"karmaConfig": "./karma.conf.js",
71+
"polyfills": "src/polyfills.ts",
72+
"tsConfig": "src/tsconfig.spec.json",
73+
"scripts": [],
74+
"styles": [
75+
"node_modules/font-awesome/scss/font-awesome.scss",
76+
"src/styles.scss"
77+
],
78+
"assets": [
79+
"src/assets",
80+
"src/favicon.ico"
81+
]
82+
}
83+
},
84+
"lint": {
85+
"builder": "@angular-devkit/build-angular:tslint",
86+
"options": {
87+
"tsConfig": [
88+
"src/tsconfig.app.json",
89+
"src/tsconfig.spec.json"
90+
],
91+
"exclude": [
92+
"**/node_modules/**"
93+
]
94+
}
95+
}
96+
}
97+
},
98+
"ngx-treeview-e2e": {
99+
"root": "",
100+
"sourceRoot": "e2e",
101+
"projectType": "application",
102+
"architect": {
103+
"e2e": {
104+
"builder": "@angular-devkit/build-angular:protractor",
105+
"options": {
106+
"protractorConfig": "./protractor.conf.js",
107+
"devServerTarget": "ngx-treeview:serve"
108+
}
109+
},
110+
"lint": {
111+
"builder": "@angular-devkit/build-angular:tslint",
112+
"options": {
113+
"tsConfig": [
114+
"e2e/tsconfig.e2e.json"
115+
],
116+
"exclude": [
117+
"**/node_modules/**"
118+
]
119+
}
120+
}
121+
}
122+
}
123+
},
124+
"defaultProject": "ngx-treeview",
125+
"schematics": {
126+
"@schematics/angular:component": {
127+
"prefix": "ngx",
128+
"styleext": "scss"
129+
},
130+
"@schematics/angular:directive": {
131+
"prefix": "ngx"
132+
}
133+
}
134+
}

karma.conf.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
module.exports = function (config) {
55
config.set({
66
basePath: '',
7-
frameworks: ['jasmine', '@angular/cli'],
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage-istanbul-reporter'),
13-
require('@angular/cli/plugins/karma')
13+
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
coverageIstanbulReporter: {
19-
reports: ['html', 'lcovonly'],
19+
dir: require('path').join(__dirname, 'coverage'), reports: ['html', 'lcovonly'],
2020
fixWebpackSourcePaths: true,
2121
thresholds: {
2222
statements: 80,
@@ -25,9 +25,7 @@ module.exports = function (config) {
2525
functions: 80
2626
}
2727
},
28-
angularCli: {
29-
environment: 'dev'
30-
},
28+
3129
browsers: ['Chrome'],
3230
customLaunchers: {
3331
ChromeNoSandbox: {

0 commit comments

Comments
 (0)