From 5e5be8eea170e30b174c084ddb2d5016dfec5a00 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Sat, 7 Oct 2017 22:03:23 -0400 Subject: [PATCH] chore: version 1.1.0-beta.0 --- ponyracer/e2e/app.po.ts | 2 +- ponyracer/e2e/tsconfig.e2e.json | 2 +- ponyracer/package.json | 9 +++++---- ponyracer/protractor.conf.js | 4 +++- ponyracer/src/index.html | 2 +- ponyracer/src/polyfills.ts | 4 ---- ponyracer/src/test.ts | 4 ++-- ponyracer/tslint.json | 26 ++++++-------------------- 8 files changed, 19 insertions(+), 34 deletions(-) diff --git a/ponyracer/e2e/app.po.ts b/ponyracer/e2e/app.po.ts index 203cd9191..ff117ae89 100644 --- a/ponyracer/e2e/app.po.ts +++ b/ponyracer/e2e/app.po.ts @@ -1,4 +1,4 @@ -import { browser, by, element } from 'protractor'; +import { browser, element, by } from 'protractor'; export class PonyracerPage { navigateTo() { diff --git a/ponyracer/e2e/tsconfig.e2e.json b/ponyracer/e2e/tsconfig.e2e.json index e2a9a2fc7..ac7a37325 100644 --- a/ponyracer/e2e/tsconfig.e2e.json +++ b/ponyracer/e2e/tsconfig.e2e.json @@ -4,7 +4,7 @@ "outDir": "../out-tsc/e2e", "module": "commonjs", "target": "es5", - "types": [ + "types":[ "jasmine", "node" ] diff --git a/ponyracer/package.json b/ponyracer/package.json index febf9dde1..5a685ebb7 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -25,22 +25,23 @@ "zone.js": "^0.8.4" }, "devDependencies": { - "@angular/cli": "1.0.6", + "@angular/cli": "1.1.0-beta.0", "@angular/compiler-cli": "^4.0.0", + "@angular/language-service": "^4.0.0", "@types/jasmine": "2.5.38", "@types/node": "~6.0.60", - "codelyzer": "~2.0.0", + "codelyzer": "~3.0.0", "jasmine-core": "~2.5.2", "jasmine-spec-reporter": "~3.2.0", "karma": "~1.4.1", - "karma-chrome-launcher": "~2.1.1", + "karma-chrome-launcher": "~2.0.0", "karma-cli": "~1.0.1", "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "karma-coverage-istanbul-reporter": "^0.2.0", "protractor": "~5.1.0", "ts-node": "~2.0.0", - "tslint": "~4.5.0", + "tslint": "~5.1.0", "typescript": "~2.2.0" } } diff --git a/ponyracer/protractor.conf.js b/ponyracer/protractor.conf.js index 7ee3b5ee8..1c5e1e5a4 100644 --- a/ponyracer/protractor.conf.js +++ b/ponyracer/protractor.conf.js @@ -19,10 +19,12 @@ exports.config = { defaultTimeoutInterval: 30000, print: function() {} }, - onPrepare() { + beforeLaunch: function() { require('ts-node').register({ project: 'e2e/tsconfig.e2e.json' }); + }, + onPrepare() { jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); } }; diff --git a/ponyracer/src/index.html b/ponyracer/src/index.html index b51fdfe33..6f0271512 100644 --- a/ponyracer/src/index.html +++ b/ponyracer/src/index.html @@ -1,5 +1,5 @@ - + Ponyracer diff --git a/ponyracer/src/polyfills.ts b/ponyracer/src/polyfills.ts index bc94e7a6d..53bdaf1b8 100644 --- a/ponyracer/src/polyfills.ts +++ b/ponyracer/src/polyfills.ts @@ -66,7 +66,3 @@ import 'zone.js/dist/zone'; // Included with Angular CLI. * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 */ // import 'intl'; // Run `npm install --save intl`. -/** - * Need to import at least one locale-data with intl. - */ -// import 'intl/locale-data/jsonp/en'; diff --git a/ponyracer/src/test.ts b/ponyracer/src/test.ts index 9bf72267e..cd612eeb0 100644 --- a/ponyracer/src/test.ts +++ b/ponyracer/src/test.ts @@ -13,8 +13,8 @@ import { } from '@angular/platform-browser-dynamic/testing'; // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. -declare var __karma__: any; -declare var require: any; +declare const __karma__: any; +declare const require: any; // Prevent Karma from running prematurely. __karma__.loaded = function () {}; diff --git a/ponyracer/tslint.json b/ponyracer/tslint.json index 97adaa5e9..9113f1368 100644 --- a/ponyracer/tslint.json +++ b/ponyracer/tslint.json @@ -12,10 +12,7 @@ "curly": true, "eofline": true, "forin": true, - "import-blacklist": [ - true, - "rxjs" - ], + "import-blacklist": [true, "rxjs"], "import-spacing": true, "indent": [ true, @@ -45,13 +42,11 @@ ], "no-construct": true, "no-debugger": true, + "no-duplicate-variable": true, "no-empty": false, "no-empty-interface": true, "no-eval": true, - "no-inferrable-types": [ - true, - "ignore-params" - ], + "no-inferrable-types": [true, "ignore-params"], "no-shadowed-variable": true, "no-string-literal": false, "no-string-throw": true, @@ -102,18 +97,9 @@ "check-separator", "check-type" ], - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ], + + "directive-selector": [true, "attribute", "app", "camelCase"], + "component-selector": [true, "element", "app", "kebab-case"], "use-input-property-decorator": true, "use-output-property-decorator": true, "use-host-property-decorator": true,