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
  • !1535

add gulp.requireNodeFlags

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/rhendric/require-node-flags into master Feb 25, 2016
  • Overview 6
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: rhendric

This is a work in progress; I'd want to add documentation and tests but I wanted to toss the basic idea out there to see if there's heavy pushback first.

This provides a way for a gulpfile or a gulp plugin to specify that it requires special Node.js flags (like --harmony_proxies). Adding gulp.requireNodeFlags('--harmony_proxies', ...) to the top of a gulpfile is all that's required. It reuses the same respawn code that gets used currently when using Node.js flags as arguments to gulp, so instead of getting an error message if you forget to invoke gulp with the right things, gulp just quietly restarts with the missing flags added.

I'm torn on whether requireNodeFlags should go here or in gulp-utils; the latter feels slightly more correct if I expect plugins and not just gulpfiles to use this, but then I'd have two PRs to wrangle so I figured I'd get confirmation on that from you all first.

Feedback please?

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/rhendric/require-node-flags