Created
August 28, 2015 09:34
-
-
Save andfaulkner/087a1ab9a2be30044263 to your computer and use it in GitHub Desktop.
Gulp task that lists all gulp tasks registered (excluding built-ins 'install' and 'uninstall')
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
| require('colors'); | |
| gulp.task('get-tasks', () => | |
| (process.nextTick(() => { | |
| console.log('\n_________ALL REGISTERED GULP TASKS_________'); | |
| Object.keys(gulp.tasks).forEach((t) => | |
| ((t === 'install' || t === 'uninstall') ? null : | |
| console.log('-- ' + t.bgBlack.green))) | |
| console.log('___________________________________________\n'); | |
| }))); | |
| // requires you to have done this in the project root first: | |
| // npm install colors --save-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A little update for gulp v4 with babel