Maven, Gradle, NPM support for IntelliJ Idea and PyCharm plugin.

已回答

Hello,

I'm working on the plugin that uses Maven and Gradle dependencies. Now I want to add support for npm and also use this plugin in PyCharm (for example).

Should I make a separate version of the plugin for npm and PyCharm support? Or is there a better solution?

 

Thank you!

 

Best regards
Alex.

0

Alexandr,

You can mark the Maven/Gradle dependencies as optional and make your plugin working in case they are not available in the IDE. And the same about NPM and Python. Please check our docs regarding the Plugin Dependencies.

0

Thank you, Jakub! I'll try this approach.

 

Perhaps you can tell if there is a standard API for working with NPM?

 

Best regards,

Alex.

0

NPM implementation is a part of the JavaScript plugin, which is not open-sourced. However, you can try to sniff around the com.intellij.lang.javascript.buildTools.npm package.

0

Thank you, Jakub! 👍👍👍

0

请先登录再写评论。