Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G gulp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gulp
  • gulp
  • Merge requests
  • !164

task alias convenience method

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/bevacqua/alias into master Jan 16, 2014
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: bevacqua

It is very common to declare task aliases such as default and maybe for each different workflow you have.

Before:

gulp.task('default', function () {
  gulp.run('jshint', 'build');
});
gulp.task('build', function () {
  gulp.run('js', 'css', 'copy');
});

After:

gulp.alias('default', 'jshint build');
gulp.alias('build', 'js css copy');

This is a feature which was always missing in Grunt and which would be nice to add in Gulp. It doesn't add any complexity. I guess it's a nice to have.

Thoughts?

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/bevacqua/alias