drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

jit-grunt support #56

Closed victorwpbastos closed 10 years ago

victorwpbastos commented 10 years ago

How can I use the configureProxies task with jit-grunt? I'm always getting:

jit-grunt: Plugin for the "configureProxies" task not found.
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "configureProxies:connect" not found. Use --force to continue.
drewzboto commented 10 years ago

Hmmm interesting plugin. I haven't used them in conjunction yet. Any luck on your side?

victorwpbastos commented 10 years ago

I'm not using Grunt anymore. Em 22/07/2014 00:16, "Drewz" notifications@github.com escreveu:

Hmmm interesting plugin. I haven't used them in conjunction yet. Any luck on your side?

— Reply to this email directly or view it on GitHub https://github.com/drewzboto/grunt-connect-proxy/issues/56#issuecomment-49693711 .

dansomething commented 10 years ago

@victorwpbastos if you do decide to go back to Grunt and use jit-grunt I suggest manually loading grunt-connect-proxy for now with grunt.loadNpmTasks('grunt-connect-proxy');

bpmckee commented 10 years ago

@dansomething Just wondering if this issue is going to be addressed. I'm having the same issue where I have to manually load grunt-connect-proxy manually (obviously something I don't need loaded with most of my grunt tasks).

dansomething commented 10 years ago

@bpmckee I'm not sure it can be addressed on this end without having a deeper understanding of how jit-grunt works. Unfortunately, I'm also much too busy right now with other things. Pull requests are welcome though.

RonaldTreur commented 9 years ago

The documentation of jit-grunt is pretty clear on how to solve this. The error-message you received is already pointing you in the right direction:

If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

If the jit-grunt is unable to find the plugin based on the config-name, then you need to tell it where to look. This is dubbed static mapping in the jit-grunt documentation. Please update your Gruntfile.js to include this, like so:

require('jit-grunt')(grunt, {
  configureProxies: 'grunt-connect-proxy'
});

If you're also using load-grunt-config, then you would do it like this:

require('load-grunt-config')(grunt, {
    jitGrunt: {
        configureProxies: 'grunt-connect-proxy'
    }
}