I'm not sure if grunt can do this. I have two grunt tasks that I want to run. The first task is to create a mock post and the second is to run penthouse task to inline css. Any hacky way is welcome.
This is the exec task that I have to run to…
I want to define a tree of shell commands in my Gruntfile.js, using grunt-exec to write shell commands.
I can do this for a single command, but I can't figure out the syntax for writing multiple sets of commands, and being able to call them…
I was using grunt-exec v1.0.1 with this configuration in Gruntfile.js:
grunt.initConfig({
exec: {
tsc: {
cmd: "tsc"
}
},
...
}
...
grunt.loadNpmTasks('grunt-exec');
grunt.registerTask('debug', [
...
…
Grunt version:
CLI - v1.2.0
local - v1.0.1
I'm using grunt-exec to start a local DynamoDB server. I'm doing this by creating a custom function in .bashrc then calling it inside grunt-exec. I also tried explicitly creating an alias, which didn't…
I'm trying to use grunt-exec to run a javascript test runner with a deployed link variable passed in.
I am trying to do so by setting an environment variable grunt.option('link') using exec:setLink. In my test_runner.js I grab the variable with…
so I have this javascript file that I can currently run with the cmd node runfile.js accountName.
I am trying to make a grunt task that will loop through an array of accountNames to pass into this cmd using grunt-exec.
I am pretty new to grunt and…
I'm tring to make grunt exec perform django collectstatic command after building the statics. So, in my Gruntfile.js I have:
grunt.initConfig({
...
exec: {
collectstatic: {
cwd: '../../',
cmd: 'python…
I'm trying to run grunt with a js script. The script start up a server that should be listening all the time in background. To it I'm using grunt and grunt-exec, and my exec.js is like that
start: {
cmd: function () {
var start =…
I'm using grunt, and I need it to execute a script on a remote machine that requires sudo access, and therefore prompts for a password.
I want it to prompt for the password, because I don't want to have to commit the password to source control.
From…
I have a Gruntfile with grunt-exec specified as follows:
exec: {
python_command: {
cwd: "../../",
command: 'python3.7 -c "MY_PYTHON_CODE"'
I want to use python3.7 if it exists on the system, but otherwise fall back to using…
I am trying to FTP files from local distribution build to production using Grunt. I have tested by bash file and it works. I just can't get it to run using grunt.
In my grunt file:
/*global module:false*/
module.exports = function(grunt) {
…
I am currently running a set of tasks inside a for loop in grunt. Ex: data.accounts.forEach(function(payload){
grunt.task.run('exec:task1:'+payload.account+':'+payload.password);
…
Would anyone know how to pass the current node version into grunt-exec? Currently I have grunt exec setup like the following:
grunt.initConfig({
exec:{
mocha: {
cmd:function(version){
if(semver.gt(version, '0.10')){
…
I'm trying to create a very simple build system with Grunt in windows using Cygwin to handle compiling,concatenation and minification of my scss/css and coffee/js files.
I'm having problem with Grunt not recognizing Sass as a command.
I should note…