diff --git a/scripts/gulp/tasks/e2e.ts b/scripts/gulp/tasks/e2e.ts index e4d97200fb..06734f80b2 100644 --- a/scripts/gulp/tasks/e2e.ts +++ b/scripts/gulp/tasks/e2e.ts @@ -11,7 +11,7 @@ task('e2e', e2eBuild); function e2eBuild(done: Function) { const runSequence = require('run-sequence'); - runSequence('polyfills', 'e2e.copySource', 'e2e.compileTests', 'e2e.copyExternalDependencies', 'e2e.sass', 'e2e.fonts', 'e2e.beforeWebpack', 'e2e.runWebpack', done); + runSequence('polyfill', 'e2e.copySource', 'e2e.compileTests', 'e2e.copyExternalDependencies', 'e2e.sass', 'e2e.fonts', 'e2e.beforeWebpack', 'e2e.runWebpack', done); } task('e2e.copyAndCompile', (done: Function) => { diff --git a/scripts/gulp/tasks/polyfill.ts b/scripts/gulp/tasks/polyfill.ts index f37d2b013d..a63a43ea77 100644 --- a/scripts/gulp/tasks/polyfill.ts +++ b/scripts/gulp/tasks/polyfill.ts @@ -95,6 +95,11 @@ task('polyfill.modern', (done) => { }); task('polyfill.copy-readme', (done) => { + const rename = require('gulp-rename'); + return src('scripts/npm/polyfills.readme.md') + .pipe(rename({ + basename: 'README' + })) .pipe(dest('dist/ionic-angular/polyfills/'), done); }); diff --git a/scripts/gulp/tasks/release.ts b/scripts/gulp/tasks/release.ts index a0bac392aa..ea43ae460c 100644 --- a/scripts/gulp/tasks/release.ts +++ b/scripts/gulp/tasks/release.ts @@ -15,7 +15,7 @@ task('release.prepareNightly', (done: Function) => { task('release.nightlyPackage', (done: Function) => { const runSequence = require('run-sequence'); - runSequence('clean', /*'release.prepareNightly',*/ 'polyfills', 'compile.release', 'release.prepareNightly', 'release.compileSass', 'release.fonts', 'release.scss', done); + runSequence('clean', /*'release.prepareNightly',*/ 'polyfill', 'compile.release', 'release.prepareNightly', 'release.compileSass', 'release.fonts', 'release.scss', done); }); task('release.publishNightly', (done: Function) => { diff --git a/scripts/npm/polyfills.readme.md b/scripts/npm/polyfills.readme.md index bf4f118728..0ecf45b8d6 100644 --- a/scripts/npm/polyfills.readme.md +++ b/scripts/npm/polyfills.readme.md @@ -1,27 +1,34 @@ -## polyfills.js -Contains all polyfills needed to work on the largest range of devices. This is the default polyfill. +## polyfills.js + +Contains all polyfills needed to work on the largest range of devices. This is the default polyfill. + +### Targets: -##### Targets: - Android 4.4.2 and above - iOS back to iOS 8 -##### Includes: +### Includes: + - All ES6 features - zone.js - ES7 reflection ## polyfills.modern.js + A limited of set of polyfills to work on more modern browsers. This file limits the number of ES6 polyfills which are already natively included in modern browsers. -##### Targets: +### Targets: + - Android 5.0 and above - iOS 9 and above -##### Includes: +### Includes: + - zone.js -- ES7 reflection, +- ES7 reflection, - ES6 polyfills, except for: + new regexp features, math features, symbols, @@ -30,13 +37,16 @@ weak maps / weak sets ## polyfills.ng.js + Only the required polyfill for Angular 2. This does not come with any ES6 polyfills. Note that all polyfill files listed here included the required polyfills for Angular 2 to work correctly. -##### Targets: +### Targets: + - Android 5.0 and above - iOS 10 and above -##### Includes: +### Includes: + - zone.js - ES7 reflection