|
28 | 28 | .pipe(eslint.failAfterError()); |
29 | 29 | } |
30 | 30 |
|
31 | | - function unit(done) { |
| 31 | + function bundleTest() { |
| 32 | + return gulp.src('.', {read: false}) |
| 33 | + .pipe(shell(['npx rollup -c rollup.test.config.js'])); |
| 34 | + } |
| 35 | + |
| 36 | + function unitTask(done) { |
32 | 37 | new karma.Server({ |
33 | 38 | configFile: path.join(__dirname, 'karma.conf.js'), |
34 | 39 | singleRun: true, |
|
117 | 122 |
|
118 | 123 | gulp.task('clean', clean); |
119 | 124 | gulp.task('lint', lint); |
120 | | - gulp.task('unit', unit); |
| 125 | + gulp.task('bundle-test', bundleTest); |
| 126 | + gulp.task('unit', gulp.series(bundleTest, unitTask)); |
121 | 127 | gulp.task('integration', integration); |
122 | 128 | gulp.task('build', build); |
123 | 129 | gulp.task('update', update); |
|
131 | 137 | gulp.task('bump-major', bump('major')); |
132 | 138 |
|
133 | 139 | gulp.task('assets', gulp.series(clean, rollupTask, copyCss, build)); |
134 | | - gulp.task('test', gulp.series(unit, integration)); |
| 140 | + gulp.task('test', gulp.series('unit', integration)); |
135 | 141 | gulp.task('check', gulp.series(lint, 'test')); |
136 | 142 |
|
137 | 143 | gulp.task('deploy-patch', gulp.series( |
|
0 commit comments