mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(polyfill): fix gulp polyfill references
This commit is contained in:
@ -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) => {
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -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) => {
|
||||
|
@ -1,27 +1,34 @@
|
||||
## 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,
|
||||
- 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
|
||||
|
||||
|
Reference in New Issue
Block a user