Questions tagged [grunt-shell]

Grunt extension for run shell commands

25 questions
36
votes
2 answers

How to workaround "the input device is not a TTY" when using grunt-shell to invoke a script that calls docker run?

When issuing grunt shell:test, I'm getting warning "the input device is not a TTY" & don't want to have to use -f: $ grunt shell:test Running "shell:test" (shell) task the input device is not a TTY Warning: Command failed: /bin/sh -c ./run.sh npm…
Matthew Adams
  • 2,059
  • 2
  • 21
  • 31
7
votes
1 answer

ctrl-c [SIGINT] not working with Grunt while using grunt-shell

If I use Grunt Task Runner with grunt-shell, I'm not able to exit the grunt using ctrl-c [SIGINT]. grunt.registerTask('serve', [ 'less', 'autoprefixer', 'shell:hologram', // grunt-shell task 'connect:livereload', 'watch' ]); Here is how…
Saneef
  • 8,620
  • 7
  • 29
  • 42
6
votes
1 answer

Grunt-shell save command output as variable

I'm using Grunt and Grunt-shell to build/deploy my Javascript project. I want to get the latest git-commit number and store it as a variable but can't figoure out how. I have tried having a callback and setting a global variable. This variable is…
Phil
  • 494
  • 2
  • 21
2
votes
2 answers

Set NODE_ENV from Grunt task

I would like to set the NODE_ENV variable at the beginning of a Grunt task, to development or production, but it looks it's not as simple as I thought. The reason, why I would like this is that I use grunt-webpack, which expects NODE_ENV to be set…
bencergazda
  • 620
  • 8
  • 18
2
votes
1 answer

Targeting specific file sets in grunt:watch

We're using grunt-contrib-watch and grunt-shell with a Python based SCSS-compilation library (a requirement of the project) to compile SASS. To further complicate matters, we need to compile three separate CSS files. Directory structure looks like…
Willy
  • 1,055
  • 8
  • 23
2
votes
1 answer

Grunt/Batch : how to execute shell commands within the gruntfile.js directory?

I know this is a common question but all answers I tried didn't work. What's strange is that a friend tried this script on his Windows and actually got the current directory (the one containing the gruntfile.js). I tried to see the differences but I…
Ivan Gabriele
  • 6,433
  • 5
  • 39
  • 60
2
votes
0 answers

Grunt shell is messing up slashes and colons

I'm using grunt (v0.4.5)and grunt-shell on windows7 for executing a curl command. Got some problems with that. The plain curl "dev.machine.com/caches/dependency/clear on the command line works fine. grunt-shell config part: shell: { …
ChrisY
  • 1,681
  • 10
  • 12
2
votes
1 answer

Can grunt-shell interact with the user?

Is there a way to allow user interact with internal command invoked by "grunt-shell" (or other task like "grunt-exec")? I've such a config: grunt.initConfig({ shell: { bower_install: { command: 'bower install' } …
Adam Szmyd
  • 2,765
  • 2
  • 24
  • 32
1
vote
1 answer

Pig Error : Failed to Parse Query

I am trying to write a filter UDF , which will take input as Tuple , and return tuple, but when i DEFINE the function in Gruntt shell I am getting the error msg as failed to parse , where i am doing it wrong here REGISTER /home/filterUDF.jar; …
G.v. Sridhar
  • 137
  • 2
  • 8
1
vote
1 answer

Grunt-shell task for Angular fails in VS Task Runner Explorer, but works in a command prompt

I have a grunt script that is meant to kick off an Angular 2 build. Running grunt on the command line succeeds - the Angular build runs as expected. Running the task from Task Runner Explorer in VS 2017 fails. The Gruntfile.js is as…
1
vote
0 answers

How to run iron-node using Grunt?

I have installed iron-node@3.0.7 and I am running iron-node normally is working. But, when I run Grunt from a Gruntfile.js, iron-node is not able to run. I am using the grunt-shell task.
1
vote
1 answer

Add a devDependency that executes a shell command

To run an external command as a grunt task, we can use grunt-shell, grunt-exec or grunt-spawn. To build a project, I must ensure that a certain tool is installed. The tool isn't available via npm, but requires running a command to install. So I need…
Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404
0
votes
0 answers

ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1069: Problem resolving class version numbers for class PIGUDF.PigFilter

I am getting this error while trying to apply an overridden filter function on a student marks text file using pig
0
votes
1 answer

(grunt) shell: Command to open default editor

Is it possible to run the default editor (which is set for git) using grunt-shell to open and edit an file (on ubuntu)? In my attempt it is running sublime, but every local system is using a different editor... grunt.initConfig({ shell: { …
user3142695
  • 15,844
  • 47
  • 176
  • 332
0
votes
1 answer

Jekyll Build Not Working after MacOS High Sierra Update

Not sure if this is a bug, but I wasn’t able to find anything on the Web. Everything was working fine using a combination of Grunt, Jekyll and Homebrew to create my website. But once I updated to High Sierra the Jekyll build fails. The way I…
1
2