Skip to content

Commit b5c8663

Browse files
committed
Merge branch 'ng5'
# Conflicts: # package.json # yarn.lock
2 parents 245faa2 + 4b14f52 commit b5c8663

File tree

8 files changed

+647
-300
lines changed

8 files changed

+647
-300
lines changed

.angular-cli.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,29 @@
1010
"main": "../karmaMain.ts",
1111
"polyfills": "../polyfills.ts",
1212
"test": "../test.ts",
13-
"tsconfig": "tsconfig.app.json",
13+
"tsconfig": "../tsconfig.json",
1414
"testTsconfig": "../tsconfig.spec.json",
1515
"prefix": null,
16-
"scripts": [],
17-
"environmentSource": "environments/environment.ts",
18-
"environments": {
19-
"dev": "environments/environment.ts",
20-
"prod": "environments/environment.prod.ts"
21-
}
16+
"scripts": []
2217
}
2318
],
24-
"e2e": {
25-
"protractor": {
26-
"config": "./protractor.conf.js"
27-
}
28-
},
2919
"lint": [
3020
{
31-
"project": "src/tsconfig.app.json"
21+
"project": "../tsconfig.json",
22+
"exclude": "**/node_modules/**"
3223
},
3324
{
34-
"project": "src/tsconfig.spec.json"
25+
"project": "../tsconfig.spec.json",
26+
"exclude": "**/node_modules/**"
3527
},
3628
{
37-
"project": "e2e/tsconfig.e2e.json"
29+
"project": "../tsconfig.ngc.json",
30+
"exclude": "**/node_modules/**"
3831
}
3932
],
4033
"test": {
4134
"karma": {
42-
"config": "./karma.conf.js"
35+
"config": "../karma.conf.js"
4336
}
4437
},
4538
"defaults": {

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ insert_final_newline = true
99
trim_trailing_whitespace = true
1010
end_of_line = lf
1111

12-
[package.json]
12+
[{package.json,.angular-cli.json,tslint.json,karma.conf.js}]
1313
indent_style = space
1414
indent_size = 2
1515

karma.conf.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

44
module.exports = function (config) {
5-
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', '@angular/cli'],
8-
plugins: [
9-
require('karma-jasmine'),
10-
require('karma-phantomjs-launcher'),
11-
require('karma-chrome-launcher'),
12-
require('karma-jasmine-html-reporter'),
13-
require('karma-coverage-istanbul-reporter'),
14-
require('@angular/cli/plugins/karma')
15-
],
16-
client: {
17-
clearContext: false // leave Jasmine Spec Runner output visible in browser
18-
},
19-
coverageIstanbulReporter: {
20-
reports: ['html', 'lcovonly'],
21-
fixWebpackSourcePaths: true
22-
},
23-
angularCli: {
24-
environment: 'dev'
25-
},
26-
reporters: ['progress', 'kjhtml'],
27-
port: 9876,
28-
colors: true,
29-
logLevel: config.LOG_INFO,
30-
autoWatch: true,
31-
browsers: ['ChromiumHeadless', 'PhantomJS'],
32-
singleRun: false,
33-
browserNoActivityTimeout: 100000
34-
});
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular/cli'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-phantomjs-launcher'),
11+
require('karma-chrome-launcher'),
12+
require('karma-jasmine-html-reporter'),
13+
require('karma-coverage-istanbul-reporter'),
14+
require('@angular/cli/plugins/karma')
15+
],
16+
client: {
17+
clearContext: false // leave Jasmine Spec Runner output visible in browser
18+
},
19+
coverageIstanbulReporter: {
20+
reports: ['html', 'lcovonly'],
21+
fixWebpackSourcePaths: true
22+
},
23+
angularCli: {
24+
environment: 'dev'
25+
},
26+
reporters: ['progress', 'kjhtml'],
27+
port: 9876,
28+
colors: true,
29+
logLevel: config.LOG_INFO,
30+
autoWatch: true,
31+
browsers: ['ChromiumHeadless', 'PhantomJS'],
32+
singleRun: false,
33+
browserNoActivityTimeout: 100000
34+
});
3535
};

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@
2727
"url": "https://github.com/mpalourdio/ng-http-loader/issues"
2828
},
2929
"dependencies": {
30-
"@angular/common": "^4.3.0",
31-
"@angular/compiler": "^4.3.0",
32-
"@angular/core": "^4.3.0",
33-
"@angular/platform-browser": "^4.3.0",
34-
"@angular/platform-browser-dynamic": "^4.3.0",
30+
"@angular/common": "^5.0.0",
31+
"@angular/compiler": "^5.0.0",
32+
"@angular/core": "^5.0.0",
33+
"@angular/platform-browser": "^5.0.0",
34+
"@angular/platform-browser-dynamic": "^5.0.0",
3535
"core-js": "^2.4.1",
36-
"rxjs": "^5.4.2",
36+
"rxjs": "^5.5.2",
3737
"zone.js": "^0.8.14"
3838
},
3939
"devDependencies": {
40-
"@angular/cli": "~1.4.9",
41-
"@angular/compiler-cli": "^4.3.0",
42-
"@angular/language-service": "^4.3.0",
40+
"@angular/cli": "^1.5.0",
41+
"@angular/compiler-cli": "^5.0.0",
42+
"@angular/language-service": "^5.0.0",
4343
"@types/jasmine": "~2.5.53",
4444
"@types/jasminewd2": "~2.0.2",
4545
"@types/node": "~6.0.60",
@@ -60,6 +60,6 @@
6060
"protractor": "~5.1.2",
6161
"ts-node": "~3.2.0",
6262
"tslint": "~5.7.0",
63-
"typescript": "~2.3.3"
63+
"typescript": "~2.4.2"
6464
}
6565
}

polyfills.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ import 'core-js/es6/set';
3737
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
3838
// import 'classlist.js'; // Run `npm install --save classlist.js`.
3939

40-
/** Evergreen browsers require these. **/
40+
/** IE10 and IE11 requires the following for the Reflect API. */
4141
import 'core-js/es6/reflect';
42+
43+
44+
/** Evergreen browsers require these. **/
45+
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
4246
import 'core-js/es7/reflect';
4347

4448

4549
/**
46-
* Required to support Web Animations `@angular/animation`.
50+
* Required to support Web Animations `@angular/platform-browser/animations`.
4751
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
4852
**/
4953
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"noImplicitAny": true,
55
"module": "es2015",
6-
"target": "es2015",
6+
"target": "es5",
77
"emitDecoratorMetadata": true,
88
"experimentalDecorators": true,
99
"sourceMap": true,

0 commit comments

Comments
 (0)