Skip to content
This repository was archived by the owner on Jun 19, 2019. It is now read-only.

Commit 5296dd2

Browse files
committed
chore: merge remote-tracking branch 'upstream/master'
2 parents 7c665a1 + b5f23d8 commit 5296dd2

File tree

5 files changed

+81
-140
lines changed

5 files changed

+81
-140
lines changed

karma.conf.js

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,17 @@
33
'use strict';
44

55
var argv = require('yargs').argv;
6-
var minimatch = require("minimatch");
6+
var minimatch = require('minimatch');
77

8-
9-
module.exports = function (config) {
8+
module.exports = function(config) {
109
config.set({
11-
1210
// base path that will be used to resolve all patterns (eg. files, exclude)
1311
basePath: './',
1412

15-
1613
// frameworks to use
1714
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
1815
frameworks: ['jasmine'],
1916

20-
2117
// list of files / patterns to load in the browser
2218
files: [
2319
// Polyfills.
@@ -69,10 +65,7 @@ module.exports = function (config) {
6965
},
7066

7167
// list of files to exclude
72-
exclude: [
73-
'node_modules/**/*spec.js'
74-
],
75-
68+
exclude: ['node_modules/**/*spec.js'],
7669

7770
// preprocess matching files before serving them to the browser
7871
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
@@ -82,30 +75,22 @@ module.exports = function (config) {
8275
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
8376
reporters: ['mocha'],
8477

85-
8678
// web server port
8779
port: 9876,
8880

89-
9081
// enable / disable colors in the output (reporters and logs)
9182
colors: true,
9283

93-
9484
// level of logging
9585
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
9686
logLevel: config.LOG_INFO,
9787

98-
9988
// enable / disable watching file and executing tests whenever any file changes
10089
autoWatch: true,
10190

102-
10391
// start these browsers
10492
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
105-
browsers: [
106-
'Chrome'
107-
],
108-
93+
browsers: ['Chrome'],
10994

11095
customLaunchers: {
11196
Chrome_travis_ci: {
@@ -120,7 +105,7 @@ module.exports = function (config) {
120105

121106
// Passing command line arguments to tests
122107
client: {
123-
files: argv.files ? minimatch.makeRe(argv.files).source : null
108+
files: argv.files ? minimatch.makeRe(argv.files).source : null
124109
}
125110
});
126111

package.json

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"e2e.ci": "gulp build.prod.rollup.aot --color && gulp build.e2e --color && gulp e2e --color",
4545
"tests.all": "npm test && npm run e2e.ci",
4646
"webdriver-start": "node ./node_modules/protractor/bin/webdriver-manager start",
47-
"webdriver-update": "node ./node_modules/protractor/bin/webdriver-manager update",
47+
"webdriver-update": "node ./node_modules/protractor/bin/webdriver-manager update --standalone false --gecko false",
4848
"compodoc": "./node_modules/.bin/compodoc -p src/client/tsconfig.json",
4949
"serve.compodoc": "./node_modules/.bin/compodoc -s"
5050
},
@@ -55,31 +55,31 @@
5555
"npm": ">=3.10.3"
5656
},
5757
"devDependencies": {
58-
"@angular/compiler-cli": "^5.0.1",
59-
"@angular/language-service": "^5.0.1",
60-
"@angular/platform-server": "^5.0.1",
61-
"@compodoc/compodoc": "^1.0.4",
62-
"@types/async": "^2.0.45",
58+
"@angular/compiler-cli": "^5.2.3",
59+
"@angular/language-service": "^5.2.3",
60+
"@angular/platform-server": "^5.2.3",
61+
"@compodoc/compodoc": "^1.0.5",
62+
"@types/async": "^2.0.47",
6363
"@types/browser-sync": "^0.0.38",
64-
"@types/express": "^4.0.39",
64+
"@types/express": "^4.11.1",
6565
"@types/gulp": "^4.0.5",
6666
"@types/gulp-filter": "^3.0.31",
6767
"@types/gulp-htmlmin": "^1.3.31",
6868
"@types/gulp-load-plugins": "^0.0.31",
6969
"@types/gulp-protractor": "^1.0.31",
7070
"@types/gulp-sass": "^0.0.31",
7171
"@types/gulp-util": "^3.0.34",
72-
"@types/jasmine": "^2.8.2",
73-
"@types/node": "^8.0.53",
72+
"@types/jasmine": "^2.8.6",
73+
"@types/node": "^9.3.0",
7474
"@types/rimraf": "2.0.2",
7575
"@types/run-sequence": "^0.0.30",
7676
"@types/selenium-webdriver": "^3.0.8",
7777
"@types/systemjs": "^0.20.6",
7878
"@types/yargs": "^10.0.0",
7979
"async": "^2.6.0",
80-
"autoprefixer": "^7.1.6",
81-
"browser-sync": "^2.18.13",
82-
"codelyzer": "^4.0.1",
80+
"autoprefixer": "^8.0.0",
81+
"browser-sync": "^2.23.6",
82+
"codelyzer": "^4.1.0",
8383
"connect-history-api-fallback": "^1.5.0",
8484
"cssnano": "^3.10.0",
8585
"deep-extend": "^0.5.0",
@@ -88,83 +88,82 @@
8888
"express-history-api-fallback": "^2.2.1",
8989
"gulp": "^3.9.1",
9090
"gulp-cached": "^1.1.1",
91-
"gulp-cheerio": "^0.6.2",
91+
"gulp-cheerio": "^0.6.3",
9292
"gulp-concat": "^2.6.1",
9393
"gulp-concat-css": "^3.0.0",
94-
"gulp-filter": "^5.0.1",
94+
"gulp-filter": "^5.1.0",
9595
"gulp-htmlmin": "^4.0.0",
9696
"gulp-inject": "^4.3.0",
97-
"gulp-inline-ng2-template": "^4.0.0",
97+
"gulp-inline-ng2-template": "^4.1.0",
9898
"gulp-load-plugins": "^1.5.0",
9999
"gulp-plumber": "~1.2.0",
100-
"gulp-postcss": "^7.0.0",
101-
"gulp-progeny": "^0.4.0",
100+
"gulp-postcss": "^7.0.1",
101+
"gulp-progeny": "^0.4.1",
102102
"gulp-protractor": "^4.1.0",
103103
"gulp-rename": "^1.2.2",
104104
"gulp-replace": "^0.6.1",
105105
"gulp-sass": "^3.1.0",
106-
"gulp-sourcemaps": "2.6.3",
106+
"gulp-sourcemaps": "2.6.4",
107107
"gulp-template": "^5.0.0",
108108
"gulp-tslint": "^8.1.2",
109-
"gulp-typescript": "~3.2.3",
110109
"gulp-uglify": "^3.0.0",
111110
"gulp-util": "^3.0.8",
112111
"gulp-watch": "^5.0.0",
113-
"is-ci": "^1.0.10",
112+
"is-ci": "^1.1.0",
114113
"isstream": "^0.1.2",
115-
"jasmine-core": "~2.8.0",
114+
"jasmine-core": "~2.99.0",
116115
"jasmine-spec-reporter": "^4.2.1",
117116
"karma": "~2.0.0",
118117
"karma-chrome-launcher": "~2.2.0",
119118
"karma-coverage": "^1.1.1",
120-
"karma-jasmine": "~1.1.0",
119+
"karma-jasmine": "^1.1.1",
121120
"karma-mocha-reporter": "^2.2.5",
122121
"karma-remap-istanbul": "^0.6.0",
123122
"merge-stream": "^1.0.1",
124123
"minimatch": "^3.0.4",
125124
"open": "0.0.5",
126-
"protractor": "^5.2.0",
127-
"remap-istanbul": "^0.9.5",
125+
"protractor": "^5.3.0",
126+
"remap-istanbul": "^0.10.0",
128127
"rimraf": "^2.6.2",
129-
"rollup": "~0.53.0",
130-
"rollup-plugin-commonjs": "^8.2.6",
128+
"rollup": "~0.55.0",
129+
"rollup-plugin-commonjs": "^8.3.0",
131130
"rollup-plugin-includepaths": "0.2.2",
132-
"rollup-plugin-node-resolve": "^3.0.0",
133-
"run-sequence": "^2.2.0",
134-
"semver": "^5.4.1",
131+
"rollup-plugin-node-resolve": "^3.0.2",
132+
"run-sequence": "^2.2.1",
133+
"semver": "^5.5.0",
135134
"serve-static": "^1.13.1",
136135
"slash": "~1.0.0",
137136
"source-map-explorer": "^1.5.0",
138-
"supports-color": "^5.0.0",
137+
"supports-color": "^5.1.0",
139138
"systemjs-builder": "0.16.12",
140139
"temp": "^0.8.3",
141140
"tildify": "^1.2.0",
142141
"traceur": "^0.0.111",
143142
"ts-node": "^4.0.1",
144-
"tslint": "^5.8.0",
145-
"typescript": "^2.6.1",
143+
"tslint": "^5.9.1",
144+
"typescript": "^2.7.1",
146145
"walk": "^2.3.9",
147-
"yargs": "^10.0.3"
146+
"yargs": "^11.0.0"
148147
},
149148
"dependencies": {
150-
"@angular/animations": "^5.0.2",
151-
"@angular/common": "^5.0.0",
152-
"@angular/compiler": "^5.0.0",
153-
"@angular/core": "^5.0.0",
154-
"@angular/forms": "^5.0.0",
155-
"@angular/http": "^5.0.0",
156-
"@angular/platform-browser": "^5.0.0",
157-
"@angular/platform-browser-dynamic": "^5.0.0",
158-
"@angular/router": "^5.0.0",
159-
"@angular/service-worker": "^5.0.0",
149+
"@angular-devkit/build-optimizer": "^0.3.0",
150+
"@angular/animations": "^5.2.3",
151+
"@angular/common": "^5.2.3",
152+
"@angular/compiler": "^5.2.3",
153+
"@angular/core": "^5.2.3",
154+
"@angular/forms": "^5.2.3",
155+
"@angular/platform-browser": "^5.2.3",
156+
"@angular/platform-browser-dynamic": "^5.2.3",
157+
"@angular/router": "^5.2.3",
158+
"@angular/service-worker": "^5.2.3",
160159
"@progress/kendo-angular-buttons": "^2.0.0",
161160
"@progress/kendo-angular-l10n": "^1.0.5",
162-
"@angular-devkit/build-optimizer": "0.0.36",
163-
"core-js": "^2.5.1",
161+
"core-js": "^2.5.3",
162+
"gulp-typescript": "^4.0.0",
164163
"hammerjs": "^2.0.8",
165164
"intl": "^1.2.5",
166165
"rxjs": "^5.5.3",
167-
"systemjs": "0.20.19",
168-
"zone.js": "0.8.19"
166+
"systemjs": "0.21.0",
167+
"zone.js": "0.8.20"
169168
}
170169
}

src/client/app/main-prod.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ enableProdMode();
1111

1212
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
1313

14-
// In order to start the Service Worker located at "/worker-basic.min.js"
14+
// In order to start the Service Worker located at "/ngsw-worker.js"
1515
// uncomment this line. More about Service Workers here
1616
// https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
17-
//
17+
1818
// if ('serviceWorker' in navigator) {
19-
// (<any>navigator).serviceWorker.register('/worker-basic.min.js').then((registration: any) =>
20-
// console.log('ServiceWorker registration successful with scope: ', registration.scope))
21-
// .catch((err: any) =>
22-
// console.log('ServiceWorker registration failed: ', err));
19+
// (<any>navigator).serviceWorker
20+
// .register('/ngsw-worker.js')
21+
// .then((registration: any) => console.log('ServiceWorker registration successful with scope: ', registration.scope))
22+
// .catch((err: any) => console.log('ServiceWorker registration failed: ', err));
2323
// }

src/client/app/main.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
1111
// The app module
1212
import { AppModule } from './app.module';
1313

14-
if (String('<%= BUILD_TYPE %>') === 'prod') { enableProdMode(); }
14+
if (String('<%= BUILD_TYPE %>') === 'prod') {
15+
enableProdMode();
16+
}
1517

1618
// Compile and launch the module with i18n providers
1719
// let TP = new TranslationProviders();
1820
// TP.getTranslationFile().then((providers: any) => {
19-
// const options: any = { providers };
20-
platformBrowserDynamic().bootstrapModule(AppModule/*, options*/);
21+
// const options: any = { providers };
22+
platformBrowserDynamic().bootstrapModule(AppModule /*, options*/);
2123
// });
2224

23-
// In order to start the Service Worker located at "/worker-basic.[min.]js"
25+
// In order to start the Service Worker located at "/ngsw-worker.js"
2426
// uncomment this line. More about Service Workers here
2527
// https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
2628
//
2729
// if ('serviceWorker' in navigator) {
28-
// let workerScript = '/worker-basic';
29-
// if (String('<%= BUILD_TYPE %>') === 'prod') { workerScript = workerScript + '.min'; }
30-
// workerScript = workerScript + '.js';
31-
// (<any>navigator).serviceWorker.register(workerScript).then((registration: any) =>
32-
// console.log('ServiceWorker registration successful with scope: ', registration.scope))
33-
// .catch((err: any) =>
34-
// console.log('ServiceWorker registration failed: ', err));
30+
// const workerScript = '/ngsw-worker.js';
31+
// (<any>navigator).serviceWorker
32+
// .register(workerScript)
33+
// .then((registration: any) => console.log('ServiceWorker registration successful with scope: ', registration.scope))
34+
// .catch((err: any) => console.log('ServiceWorker registration failed: ', err));
3535
// }

0 commit comments

Comments
 (0)