mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
* 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
22 lines
668 B
TypeScript
22 lines
668 B
TypeScript
import { dest, src, task } from 'gulp';
|
|
import { readFileAsync, writeFileAsync, writePolyfills } from '../util';
|
|
import { join } from 'path';
|
|
|
|
task('polyfill', ['polyfill.copy-readme', 'polyfill.write']);
|
|
|
|
task('polyfill.write', (done: Function) => {
|
|
writePolyfills(join('dist', 'ionic-angular', 'polyfills')).then(() => {
|
|
done();
|
|
}).catch(err => {
|
|
done(err);
|
|
});
|
|
});
|
|
|
|
task('polyfill.copy-readme', (done: Function) => {
|
|
return readFileAsync(join('scripts', 'polyfill', 'readme.md')).then((fileContent: string) => {
|
|
return writeFileAsync(join('dist', 'ionic-angular', 'polyfills', 'readme.md'), fileContent);
|
|
}).then(() => {
|
|
done();
|
|
});
|
|
});
|