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

Add a hack to allow coffee-script 1.7+

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/davewasmer/patch-1 into master Jan 31, 2014
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: davewasmer

Coffeescript 1.7+ no longer automatically registers file extensions with Node. To do so, you must call .register():

coffeescript = require('coffee-script')
coffeescript.register()

I added a hack-ish solution: just check if the module being required is "coffee-script" (and >= v1.7.0), and if so, call register.

I realize this isn't the cleanest implementation, but thought I would start the issue with some kind of solution at least.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/davewasmer/patch-1