kokarn / atom-grunt-runner

Run Grunt tasks from Atom.
MIT License
31 stars 23 forks source link

Won't load grunt tasks from included files. #36

Open adamdebono opened 9 years ago

adamdebono commented 9 years ago

All of my grunt tasks are kept in separate files (in the grunt directory), but the plugin won't acknowledge any of these tasks. I just get 'Grunt file parsed, found 0 tasks'

kokarn commented 9 years ago

Does it work from the command line directly? Could you post your Gruntfile?

adamdebono commented 9 years ago

yeah works from the command line.

gruntfile.js

module.exports = function(grunt) {
        // measures the time each task takes
        require('time-grunt')(grunt);        

            // load configs
        require('load-grunt-config')(grunt);
};
adamj88 commented 9 years ago

Can confirm the same, appears not to work with the load-grunt-config/load-grunt-tasks way of creating Grunt tasks, my grunt file is pretty similar:

module.exports = function(grunt) {

    // measures the time each task takes
    require('time-grunt')(grunt);

    // load grunt config
    require('load-grunt-config')(grunt);

    // load grunt tasks from grunt/ dir
    require('load-grunt-tasks')(grunt);

}
nickclaw commented 9 years ago

Bizarre. Grunt-runner uses your local installation of grunt to parse tasks and reads directly from it, so I wouldn't think requiring within the function would matter unless there's something asynchronous going on. I'll play around a bit with it this weekend to try to see what's up.

Raigen commented 9 years ago

This is still an issue. Any news?

ealves-pt commented 8 years ago

Still an issue and somehow might be related to this one #90.