mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00

Short description of what this resolves: Allows our e2e tests to run on a Windows machine Changes proposed in this pull request: Normalize paths using path.join() Add typeRoots to the root tsconfig file Change the spawnedCommand based on the OS Fixes: #11551
19 lines
529 B
TypeScript
19 lines
529 B
TypeScript
import { task, src, dest } from 'gulp';
|
|
import { 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 src(join('scripts', 'polyfill', 'readme.md'))
|
|
.pipe(dest(join('dist', 'ionic-angular', 'polyfills')), done);
|
|
});
|