chore(dependencies): update to latest angular and typescript

* chore(gitignore): update gitignore to includ .sourcemaps per new app-scripts

* chore(dependencies): update to latest typescript, angular

* chore(gestures): fix typing issue

* wip

* I accidentally removed the license, so adding it back in

* chore(dependencies): update lock file
This commit is contained in:
Dan Bucholtz
2017-09-12 12:43:55 -05:00
committed by GitHub
parent d0cad6b31e
commit ac04710b8a
12 changed files with 962 additions and 911 deletions

View File

@@ -20,4 +20,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1765
package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -26,20 +26,20 @@
"tsc": "tsc --outdir .tmp"
},
"dependencies": {
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@angular/common": "4.3.6",
"@angular/compiler": "4.3.6",
"@angular/compiler-cli": "4.3.6",
"@angular/core": "4.3.6",
"@angular/forms": "4.3.6",
"@angular/http": "4.3.6",
"@angular/platform-browser": "4.3.6",
"@angular/platform-browser-dynamic": "4.3.6",
"ionicons": "~3.0.0",
"rxjs": "5.4.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@ionic/app-scripts": "^1.3.11",
"@ionic/app-scripts": "nightly",
"@ionic/commit-hooks": "1.0.3",
"@types/connect": "3.4.30",
"@types/del": "2.2.31",
@@ -52,7 +52,7 @@
"@types/lodash": "4.14.35",
"@types/merge2": "0.3.29",
"@types/mkdirp": "0.3.29",
"@types/node": "^6.0.34",
"@types/node": "^6.0.88",
"@types/protractor": "^4.0.0",
"@types/run-sequence": "0.0.28",
"@types/semver": "5.3.30",
@@ -131,12 +131,11 @@
"sw-toolbox": "3.4.0",
"systemjs": "0.19.38",
"through2": "2.0.1",
"ts-node": "1.3.0",
"ts-node": "3.3.0",
"tslint": "^5.4.3",
"tslint-ionic-rules": "0.0.11",
"typescript": "~2.3.3",
"typescript": "~2.5.2",
"vinyl": "1.2.0",
"webpack": "^2.1.0-beta.27",
"yargs": "5.0.0"
},
"config": {
@@ -148,4 +147,4 @@
"pre-push#master": [
"test"
]
}
}

View File

@@ -1,5 +1,5 @@
import { task, src, dest } from 'gulp';
import { writePolyfills } from '../util';
import { dest, src, task } from 'gulp';
import { readFileAsync, writeFileAsync, writePolyfills } from '../util';
import { join } from 'path';
task('polyfill', ['polyfill.copy-readme', 'polyfill.write']);
@@ -13,6 +13,9 @@ task('polyfill.write', (done: Function) => {
});
task('polyfill.copy-readme', (done: Function) => {
return src(join('scripts', 'polyfill', 'readme.md'))
.pipe(dest(join('dist', 'ionic-angular', 'polyfills')), done);
return readFileAsync(join('scripts', 'polyfill', 'readme.md')).then((fileContent: string) => {
return writeFileAsync(join('dist', 'ionic-angular', 'polyfills', 'readme.md'), fileContent);
}).then(() => {
done();
});
});

View File

@@ -325,7 +325,7 @@ export function writePolyfills(outputDirectory: string) {
promises.push(bundlePolyfill(NG_ENTRIES, join(outputDirectory, 'polyfills.ng.js')));
return Promise.all(promises);
};
}
function bundlePolyfill(pathsToIncludeInPolyfill: string[], outputPath: string) {
return rollup({

View File

@@ -736,7 +736,7 @@ describe('DateTime', () => {
function zoned(fn: () => any): (done: DoneFn) => void {
return () => {
const zone = new NgZone(false);
const zone = new NgZone({enableLongStackTrace: false});
zone.run(fn);
};
}

View File

@@ -42,15 +42,18 @@ export class PageOne {
}
setApple() {
this.fruitsCtrl.updateValueAndValidity('apple');
this.fruitsCtrl.setValue('apple');
this.fruitsCtrl.updateValueAndValidity();
}
setBanana() {
this.fruitsCtrl.updateValueAndValidity('banana');
this.fruitsCtrl.setValue('banana');
this.fruitsCtrl.updateValueAndValidity();
}
setCherry() {
this.fruitsCtrl.updateValueAndValidity('cherry');
this.fruitsCtrl.setValue('cherry');
this.fruitsCtrl.updateValueAndValidity();
}
doSubmit(ev: UIEvent) {

View File

@@ -98,7 +98,7 @@ import { ViewController } from '../../navigation/view-controller';
* ```html
* <ion-tabs>
* <ion-tab (ionSelect)="chat()" tabTitle="Show Modal"></ion-tab>
* </ion-tabs>
* </ion-tabs>pop
* ```
*
* ```ts

View File

@@ -69,7 +69,7 @@ export class Simulate {
velocity(vel: number): Simulate {
let p1 = this.getLastPoint();
let p2 = this.getPreviousPoint();
let d = distance(p1, p2);
let d = distance(p1.coord, p2.coord);
return this.duration(d / vel);
}

View File

@@ -7,7 +7,7 @@ describe('recognizers', () => {
let p = new PanRecognizer('x', 2, 2);
expect(p.pan()).toEqual(0);
Simulate.from(0, 0).to(99, 0).run((coord: Coordinates) => {
Simulate.from(0, 0).to(99, 0).run((coord: any) => {
expect(p.detect(coord)).toEqual(false);
});
});
@@ -18,7 +18,7 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
expect(p.pan()).toEqual(0);
Simulate.from(0, 0).to(10, 0).run((coord: Coordinates) => {
Simulate.from(0, 0).to(10, 0).run((coord: any) => {
p.detect(coord);
});
expect(p.pan()).toEqual(1);
@@ -26,7 +26,7 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
expect(p.pan()).toEqual(0);
Simulate.from(0, 0).to(-10, 0).run((coord: Coordinates) => {
Simulate.from(0, 0).to(-10, 0).run((coord: any) => {
p.detect(coord);
});
expect(p.pan()).toEqual(-1);
@@ -40,11 +40,11 @@ describe('recognizers', () => {
Simulate
.from(0, 0).to(99, 0)
// Since threshold is 100, it should not fire yet
.run((coord: Coordinates) => expect(p.detect(coord)).toEqual(false))
.run((coord: any) => expect(p.detect(coord)).toEqual(false))
// Now it should fire
.delta(2, 0)
.run((coord: Coordinates) => {
.run((coord: any) => {
if (p.detect(coord)) {
// it should detect a horizontal pan
expect(p.pan()).toEqual(1);
@@ -56,7 +56,7 @@ describe('recognizers', () => {
.delta(20, 0)
.to(0, 0)
.to(102, 0)
.run((coord: Coordinates) => expect(p.detect(coord)).toEqual(false));
.run((coord: any) => expect(p.detect(coord)).toEqual(false));
expect(detected).toEqual(true);
});
@@ -66,13 +66,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(19, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(1);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(-19, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(1);
});
@@ -81,13 +81,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(180 - 19, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(-1);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(180 + 19, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(-1);
});
@@ -96,13 +96,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(21, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(-21, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
});
@@ -111,13 +111,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(180 - 21, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(180 + 21, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
});
@@ -128,13 +128,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(90 - 19, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(1);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(90 + 19, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(1);
});
@@ -143,13 +143,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(-90 + 19, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(-1);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(-90 - 19, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(-1);
});
@@ -158,13 +158,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(90 - 21, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(90 + 21, 21).delta(-30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
});
@@ -173,13 +173,13 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(-90 + 21, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(-90 - 21, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
});
@@ -188,7 +188,7 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).deltaPolar(90, 21).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
});
@@ -198,7 +198,7 @@ describe('recognizers', () => {
p.start({ x: 0, y: 0 });
Simulate
.from(0, 0).delta(30, 0)
.run((coord: Coordinates) => p.detect(coord));
.run((coord: any) => p.detect(coord));
expect(p.pan()).toEqual(0);
});

View File

@@ -56,7 +56,7 @@ export function commonInputTest<T>(input: BaseInput<T>, config: TestConfig) {
// TODO test form register/deregister
// TODO test item classes
// TODO test disable
const zone = new NgZone(true);
const zone = new NgZone({ enableLongStackTrace: true });
zone.run(() => {
if (config.testItem === true && !input._item) {
assert(false, 'input is invalid');

View File

@@ -10,6 +10,7 @@
"noImplicitAny": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noStrictGenericChecks": true,
"outDir": "dist/tmp",
"removeComments": false,
"sourceMap": true,