We use the following to allow developers to have their own specific gulp tasks.
Last active
July 10, 2018 23:53
-
-
Save cwparsons/8a88db844f8e46f7c133e75b9c656685 to your computer and use it in GitHub Desktop.
Allow other developers to create their own gulp tasks.
This file contains hidden or 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
try { | |
require('./gulpfile.user.js')(gulp); | |
} catch (e) { | |
console.log('No user gulpfile to import.'); | |
} | |
/* Normal gulpfile here. */ |
This file contains hidden or 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
module.exports = function (gulp) { | |
gulp.task('__Custom task', () => { | |
/* Specific user-based task or workflow here. */ | |
}); | |
}; |
This file contains hidden or 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
/* Example file. */ | |
module.exports = function (gulp) { | |
gulp.task('__Custom task', () => { | |
/* Specific user-based task or workflow here. */ | |
}); | |
}; |
This file contains hidden or 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
{ | |
"devDependencies": { | |
"gulp": "3.9.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment