-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: not recognizing gulpfile.mjs. [fixes #120]
- Loading branch information
1 parent
62fe08c
commit 8bc2cbb
Showing
5 changed files
with
49 additions
and
8 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
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,18 @@ | ||
const { series } = require('gulp'); | ||
|
||
// The `clean` function is not exported so it can be considered a private task. | ||
// It can still be used within the `series()` composition. | ||
function clean2(cb) { | ||
console.log('clean2!!!'); | ||
cb(); | ||
} | ||
|
||
// The `build` function is exported so it is public and can be run with the `gulp` command. | ||
// It can also be used within the `series()` composition. | ||
function build(cb) { | ||
console.log('build2!!!'); | ||
cb(); | ||
} | ||
|
||
exports.build2 = build; | ||
exports.default2 = series(clean, build); |
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,18 @@ | ||
const { series } = require('gulp'); | ||
|
||
// The `clean` function is not exported so it can be considered a private task. | ||
// It can still be used within the `series()` composition. | ||
function clean(cb) { | ||
console.log('clean!!!'); | ||
cb(); | ||
} | ||
|
||
// The `build` function is exported so it is public and can be run with the `gulp` command. | ||
// It can also be used within the `series()` composition. | ||
function build(cb) { | ||
console.log('build!!!'); | ||
cb(); | ||
} | ||
|
||
exports.build = build; | ||
exports.default = series(clean, build); |