chore(polyfill): fix gulp polyfill references

This commit is contained in:
Adam Bradley
2016-09-16 00:48:15 -05:00
parent 60f8f5b2e7
commit 1d403b26ed
4 changed files with 26 additions and 11 deletions

View File

@ -11,7 +11,7 @@ task('e2e', e2eBuild);
function e2eBuild(done: Function) { function e2eBuild(done: Function) {
const runSequence = require('run-sequence'); 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) => { task('e2e.copyAndCompile', (done: Function) => {

View File

@ -95,6 +95,11 @@ task('polyfill.modern', (done) => {
}); });
task('polyfill.copy-readme', (done) => { task('polyfill.copy-readme', (done) => {
const rename = require('gulp-rename');
return src('scripts/npm/polyfills.readme.md') return src('scripts/npm/polyfills.readme.md')
.pipe(rename({
basename: 'README'
}))
.pipe(dest('dist/ionic-angular/polyfills/'), done); .pipe(dest('dist/ionic-angular/polyfills/'), done);
}); });

View File

@ -15,7 +15,7 @@ task('release.prepareNightly', (done: Function) => {
task('release.nightlyPackage', (done: Function) => { task('release.nightlyPackage', (done: Function) => {
const runSequence = require('run-sequence'); 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) => { task('release.publishNightly', (done: Function) => {

View File

@ -1,27 +1,34 @@
## polyfills.js ## polyfills.js
Contains all polyfills needed to work on the largest range of devices. This is the default polyfill.
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 - Android 4.4.2 and above
- iOS back to iOS 8 - iOS back to iOS 8
##### Includes: ### Includes:
- All ES6 features - All ES6 features
- zone.js - zone.js
- ES7 reflection - ES7 reflection
## polyfills.modern.js ## 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. 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 - Android 5.0 and above
- iOS 9 and above - iOS 9 and above
##### Includes: ### Includes:
- zone.js - zone.js
- ES7 reflection, - ES7 reflection,
- ES6 polyfills, except for: - ES6 polyfills, except for:
new regexp features, new regexp features,
math features, math features,
symbols, symbols,
@ -30,13 +37,16 @@ weak maps / weak sets
## polyfills.ng.js ## 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. 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 - Android 5.0 and above
- iOS 10 and above - iOS 10 and above
##### Includes: ### Includes:
- zone.js - zone.js
- ES7 reflection - ES7 reflection