{"action":"created","issue":{"url":"https://api.github.com/repos/firstandthird/load-grunt-config/issues/124","labels_url":"https://api.github.com/repos/firstandthird/load-grunt-config/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/firstandthird/load-grunt-config/issues/124/comments","events_url":"https://api.github.com/repos/firstandthird/load-grunt-config/issues/124/events","html_url":"https://github.com/firstandthird/load-grunt-config/issues/124","id":79023012,"number":124,"title":"Grunt --help does not show loaded tasks.","user":{"login":"brunano21","id":4410485,"avatar_url":"https://avatars.githubusercontent.com/u/4410485?v=3","gravatar_id":"","url":"https://api.github.com/users/brunano21","html_url":"https://github.com/brunano21","followers_url":"https://api.github.com/users/brunano21/followers","following_url":"https://api.github.com/users/brunano21/following{/other_user}","gists_url":"https://api.github.com/users/brunano21/gists{/gist_id}","starred_url":"https://api.github.com/users/brunano21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunano21/subscriptions","organizations_url":"https://api.github.com/users/brunano21/orgs","repos_url":"https://api.github.com/users/brunano21/repos","events_url":"https://api.github.com/users/brunano21/events{/privacy}","received_events_url":"https://api.github.com/users/brunano21/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-21T14:36:23Z","updated_at":"2015-08-07T19:59:37Z","closed_at":"2015-05-21T16:05:31Z","body":"Hi,\r\n\r\nI'm using the plugin with the following configuration:\r\n\r\n    var options = {\r\n        configPath: path.join(process.cwd(), '.grunt', 'tasks'),\r\n        init: true,\r\n       \r\n        data: {\r\n            sharedConfig: grunt.file.readJSON(path.join(process.cwd(), '..', '.grunt' ,'config.json')),\r\n        },\r\n        // using jitGrunt instead of the built-in loader.\r\n        jitGrunt: {\r\n            pluginsRoot: '../node_modules',\r\n            staticMappings: {\r\n            },\r\n        },\r\n    };\r\n    require('load-grunt-config')(grunt, options);\r\n\r\nBut unfortunately, running `grunt --help`, it does not list all loaded tasks I have in `.grunt\\tasks` folder.\r\nAm I missing something? "},"comment":{"url":"https://api.github.com/repos/firstandthird/load-grunt-config/issues/comments/128818399","html_url":"https://github.com/firstandthird/load-grunt-config/issues/124#issuecomment-128818399","issue_url":"https://api.github.com/repos/firstandthird/load-grunt-config/issues/124","id":128818399,"user":{"login":"szarouski","id":911388,"avatar_url":"https://avatars.githubusercontent.com/u/911388?v=3","gravatar_id":"","url":"https://api.github.com/users/szarouski","html_url":"https://github.com/szarouski","followers_url":"https://api.github.com/users/szarouski/followers","following_url":"https://api.github.com/users/szarouski/following{/other_user}","gists_url":"https://api.github.com/users/szarouski/gists{/gist_id}","starred_url":"https://api.github.com/users/szarouski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szarouski/subscriptions","organizations_url":"https://api.github.com/users/szarouski/orgs","repos_url":"https://api.github.com/users/szarouski/repos","events_url":"https://api.github.com/users/szarouski/events{/privacy}","received_events_url":"https://api.github.com/users/szarouski/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T19:59:37Z","updated_at":"2015-08-07T19:59:37Z","body":"You can still use jit grunt and get performance boost if you do something like:\r\n\r\n```js\r\nmodule.exports = function (grunt) {\r\n    var path = require('path');\r\n    var isHelpMode = grunt.option('help');\r\n    // require('time-grunt')(grunt);\r\n    var config = {\r\n        configPath: path.join(process.cwd(), 'node_configs')\r\n    };\r\n\r\n    if (isHelpMode || process.env.GRUNT_LOAD_ALL_TASKS) {\r\n        config.loadGruntTasks = {\r\n            pattern: 'grunt-*',\r\n            config: require('./package.json'),\r\n            scope: ['dependencies', 'devDependencies', 'archivedDependencies']\r\n        };\r\n    } else {\r\n        config.jitGrunt = {\r\n            customTasksDir: './node_tasks',\r\n            staticMappings: {\r\n                scsslint: 'grunt-scss-lint'\r\n            }\r\n        };\r\n    }\r\n\r\n    require('load-grunt-config')(grunt, config);\r\n};\r\n```"}}