Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adamdebono opened this issue Feb 24, 2015 · 6 comments
Open

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

adamdebono opened this issue Feb 24, 2015 · 6 comments
Labels

Comments

@adamdebono
Copy link

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
Copy link
Owner

kokarn commented Feb 25, 2015

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

@adamdebono
Copy link
Author

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
Copy link

adamj88 commented Feb 26, 2015

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
Copy link
Contributor

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
Copy link

Raigen commented Jun 23, 2015

This is still an issue. Any news?

@ealves-pt ealves-pt added the bug label Feb 10, 2016
@ealves-pt
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants