diff --git a/src/cache.ts b/src/cache.ts index a56465e3c..552a835d4 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -269,7 +269,9 @@ export async function addFolderToCache(folder?: WorkspaceFolder | undefined) } if (!cancel && configuration.get("enableGulp")) { - await buildCache("gulp", "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Jj][Ss]", folder, false); + await buildCache("gulp", "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[JjTt][Ss]", folder, false); + await buildCache("gulp", "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Mm][Jj][Ss]", folder, false); + await buildCache("gulp", "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Bb][Aa][Bb][Ee][Ll].[JjTt][Ss]", folder, false); } if (!cancel && configuration.get("enableMake")) { diff --git a/src/extension.ts b/src/extension.ts index a8206f49f..9b7052792 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -202,6 +202,7 @@ async function processConfigChanges(context: ExtensionContext, e: ConfigurationC if (e.affectsConfiguration("taskExplorer.enableGulp")) { await registerFileWatcher(context, "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[JjTt][Ss]", false, configuration.get("enableGulp")); + await registerFileWatcher(context, "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Mm][Jj][Ss]", false, configuration.get("enableGulp")); await registerFileWatcher(context, "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Bb][Aa][Bb][Ee][Ll].[JjTt][Ss]", false, configuration.get("enableGulp")); refresh = true; } @@ -336,7 +337,9 @@ async function registerFileWatchers(context: ExtensionContext) } if (configuration.get("enableGulp")) { - await registerFileWatcher(context, "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Jj][Ss]"); + await registerFileWatcher(context, "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[JjTt][Ss]"); + await registerFileWatcher(context, "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Mm][Jj][Ss]"); + await registerFileWatcher(context, "gulp", "**/[Gg][Uu][Ll][Pp][Ff][Ii][Ll][Ee].[Bb][Aa][Bb][Ee][Ll].[JjTt][Ss]"); } if (configuration.get("enableMake")) { diff --git a/test-files/gulp/gulpfile.js b/test-files/gulp/gulpfile.js index feb51694f..822ca2d68 100644 --- a/test-files/gulp/gulpfile.js +++ b/test-files/gulp/gulpfile.js @@ -2,17 +2,17 @@ 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!!!'); +function clean3(cb) { + console.log('clean3!!!'); 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!!!'); +function build3(cb) { + console.log('build3!!!'); cb(); } -exports.build = build; -exports.default = series(clean, build); +exports.build3 = build; +exports.default3 = series(clean, build); diff --git a/test-files/gulp/gulpfile.mjs b/test-files/gulp/gulpfile.mjs new file mode 100644 index 000000000..1ae35c30e --- /dev/null +++ b/test-files/gulp/gulpfile.mjs @@ -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); diff --git a/test-files/gulp/gulpfile.ts b/test-files/gulp/gulpfile.ts new file mode 100644 index 000000000..feb51694f --- /dev/null +++ b/test-files/gulp/gulpfile.ts @@ -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);