|
1 | | -import {task, src, dest} from 'gulp'; |
| 1 | +import {task} from 'gulp'; |
2 | 2 | import {join} from 'path'; |
3 | 3 | import {ngcBuildTask, copyTask, execNodeTask, serverTask} from '../util/task_helpers'; |
4 | 4 | import {copySync} from 'fs-extra'; |
5 | 5 | import {buildConfig, sequenceTask, triggerLivereload, watchFiles} from 'material2-build-tools'; |
6 | | -import {sync as globSync} from 'glob'; |
7 | 6 |
|
8 | 7 | // There are no type definitions available for these imports. |
9 | 8 | const gulpConnect = require('gulp-connect'); |
@@ -69,7 +68,7 @@ task('e2e-app:build', sequenceTask( |
69 | 68 | 'material-moment-adapter:build-release', |
70 | 69 | 'material-examples:build-release' |
71 | 70 | ], |
72 | | - ['e2e-app:copy-release', 'e2e-app:copy-typings', 'e2e-app:copy-assets'], |
| 71 | + ['e2e-app:copy-release', 'e2e-app:copy-assets'], |
73 | 72 | 'e2e-app:build-ts' |
74 | 73 | )); |
75 | 74 |
|
@@ -115,17 +114,3 @@ task('e2e-app:copy-release', () => { |
115 | 114 | copySync(join(releasesDir, 'material-examples'), join(outDir, 'material-examples')); |
116 | 115 | copySync(join(releasesDir, 'material-moment-adapter'), join(outDir, 'material-moment-adapter')); |
117 | 116 | }); |
118 | | - |
119 | | -// Copy the core declaration files next to the declarations of each module. This is a workaround |
120 | | -// for an issue in TypeScript 2.9 where the generated declaration files have wrong import paths. |
121 | | -// We should be able to remove this task once we update to TypeScript 3.0. |
122 | | -// See: https://github.com/Microsoft/TypeScript/issues/25511. |
123 | | -task('e2e-app:copy-typings', () => { |
124 | | - const stream = src(join(outDir, 'material/core/typings/*/**')); |
125 | | - |
126 | | - globSync(join(outDir, 'material/!(core)/')).forEach(directory => { |
127 | | - stream.pipe(dest(join(directory, 'core'))); |
128 | | - }); |
129 | | - |
130 | | - return stream; |
131 | | -}); |
0 commit comments