Giter Site home page Giter Site logo

Task exec:task not found about grunt-exec HOT 12 CLOSED

jharding avatar jharding commented on July 20, 2024
Task exec:task not found

from grunt-exec.

Comments (12)

gizburdt avatar gizburdt commented on July 20, 2024

I got this now:

Running "exec:wp_download" (exec) task

Missing command property.
Warning: Task "exec:wp_download" failed

from grunt-exec.

jharding avatar jharding commented on July 20, 2024

What version of grunt-exec are you using?

from grunt-exec.

gizburdt avatar gizburdt commented on July 20, 2024

This is in my package.json: "grunt-exec": "~0.4.5",

from grunt-exec.

jharding avatar jharding commented on July 20, 2024

Well your config looks correct and I'm unable to reproduce the issue on my machine so I'm not sure what the issue could be. If you replace the value of cmd with 'echo hello', does that work?

from grunt-exec.

gizburdt avatar gizburdt commented on July 20, 2024

I was working on it and suddenly it worked, sorry for the issue. And thanks for your help :)

from grunt-exec.

manigandaprabu avatar manigandaprabu commented on July 20, 2024

thank you gizburdt

from grunt-exec.

VinSpee avatar VinSpee commented on July 20, 2024

Sorry to bump, but I'm having this same issue.

module.exports = {
  webpack: {
    prod: {
      cmd: 'npm run js:build'
    },
    dev: {
      cmd: 'echo hello'
    }
  },
};

running

grunt exec:webpack:dev

results in


Running "exec:webpack:dev" (exec) task
>> Missing command property.
Warning: Task "exec:webpack:dev" failed. Use --force to continue.

any ideas?

from grunt-exec.

jlf123 avatar jlf123 commented on July 20, 2024

bump...having same issue ^^^

exec: { git_tag: { command: '<%= gitinfo.tag %> } }

from grunt-exec.

gwicksted avatar gwicksted commented on July 20, 2024

Re-opening issue

from grunt-exec.

gwicksted avatar gwicksted commented on July 20, 2024

@VinSpee I don't think you can have exec:webpack:dev because that's two inner-layers of names. If you have exec:webpackdev it should work. This is the case with all grunt plugins -- I think ?

@jlf123 your command should work if you have a terminating half quote. Replacing the grunt.template string with 'echo hello world' works but I'll do some testing specifically with grunt.template strings

from grunt-exec.

gwicksted avatar gwicksted commented on July 20, 2024

I have confirmed the following works (displays "world") -- please provide a full gruntfile example if you're still getting that error:

module.exports = function(grunt) {

  grunt.initConfig({
    hello: "world",
    exec: {
      git_tag: { command: 'echo <%= hello %>' }
    }
  });

  grunt.loadTasks("tasks");
}

from grunt-exec.

jlf123 avatar jlf123 commented on July 20, 2024

You're right, that was my bad. thanks!

from grunt-exec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.