sindresorhus / grunt-shell

Run shell commands
MIT License
949 stars 126 forks source link

1.0.0 - no method setRawMode #76

Closed davidosomething closed 10 years ago

davidosomething commented 10 years ago

Running a grunt shell task inside a grunt-concurrent task

Running "concurrent:build" (concurrent) task
    Warning: Running "concurrent:startJs" (concurrent) task
        Warning: Running "shell:hulk" (shell) task
        Warning: Object #<Socket> has no method 'setRawMode' Use --force to continue.
davidosomething commented 10 years ago
    ###
    # concurrent
    ###
    concurrent:
...
      startJs: [
        'concat:plugins'      # makes js/build/plugins.js
        'shell:hulk'          # makes js/build/{templates,partials}.js
        'coffee:app'          # makes js/build/app.js
        'coffee:headerFooter' # makes js/build/app.js
      ]

hulk:

      hulk:
        command: [
          './node_modules/hogan.js/bin/hulk --variable templates templates/* > js/build/templates.js'
          './node_modules/hogan.js/bin/hulk --variable partials templates/partials/* > js/build/partials.js'
          'echo "window.Time.templates = templates;" >> js/build/templates.js'
          'echo "window.Time.partials = partials;" >> js/build/partials.js'
        ].join('&&')
sindresorhus commented 10 years ago

What Node version and OS are you on?

davidosomething commented 10 years ago

node v0.10.30

OSX 10.9.4

davidosomething commented 10 years ago

FYI it works outside of grunt-concurrent

davidosomething commented 10 years ago

This simple case fails too

  concurrent: { sindre: [ 'shell:echo' ] }
  shell: { echo: { command: 'echo Hi' } }

grunt concurrent:sindre

sindresorhus commented 10 years ago

fixed in 1.0.1