-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import gulp from "./index.js"; | ||
|
||
// These are bound to the gulp instance in our CommonJS file | ||
// so it is okay to reassign them to export | ||
export const watch = gulp.watch; | ||
export const task = gulp.task; | ||
export const series = gulp.series; | ||
export const parallel = gulp.parallel; | ||
export const registry = gulp.registry; | ||
export const tree = gulp.tree; | ||
export const lastRun = gulp.lastRun; | ||
export const src = gulp.src; | ||
export const dest = gulp.dest; | ||
export const symlink = gulp.symlink; | ||
|
||
export default gulp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import assert from "assert"; | ||
import EventEmitter from "events"; | ||
|
||
import gulp, { | ||
watch, | ||
task, | ||
series, | ||
parallel, | ||
registry, | ||
tree, | ||
lastRun, | ||
src, | ||
dest, | ||
symlink, | ||
} from 'gulp'; | ||
|
||
export default function (done) { | ||
assert(typeof watch === 'function'); | ||
assert(typeof task === 'function'); | ||
assert(typeof series === 'function'); | ||
assert(typeof parallel === 'function'); | ||
assert(typeof registry === 'function'); | ||
assert(typeof tree === 'function'); | ||
assert(typeof lastRun === 'function'); | ||
assert(typeof src === 'function'); | ||
assert(typeof dest === 'function'); | ||
assert(typeof symlink === 'function'); | ||
assert(gulp instanceof EventEmitter); | ||
done(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters