firstandthird / load-grunt-config

Grunt plugin that lets you break up your Gruntfile config by task
firstandthird.github.io/load-grunt-config/
MIT License
374 stars 64 forks source link

Allow just-in-time loading #61

Closed SolomoN-ua closed 10 years ago

SolomoN-ua commented 10 years ago

PR for #42

To use jit-grunt instead of load-grunt-tasks plugin, just set jitGrunt: true

require('load-grunt-config')(grunt, {
  jitGrunt: true
});

or specify jitGrunt: {} configuration object

require('load-grunt-config')(grunt, {
  jitGrunt: {
    // jit-grunt configuration here (can be just empty object)
  }
});

This change should not affect current users.

Note:

jit-grunt is using task name to find and load grunt plugins, so in some cases you will need to specify static mappings.

For example:

jitGrunt: {
    simplemocha: 'grunt-simple-mocha'
}
FrankFang commented 10 years ago

:+1:

jgallen23 commented 10 years ago

just published this as 0.10.0-beta.1. you can install with npm install load-grunt-config@beta

Thanks @SolomoN-ua

matt-bailey commented 10 years ago

Nice one @SolomoN-ua, thanks :)