-
-
Save adamstallard/6362557 to your computer and use it in GitHub Desktop.
<component name="ProjectRunConfigurationManager"> | |
<configuration default="false" name="Grunt" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="$USER_HOME$/AppData/Roaming/npm/node_modules/grunt-cli/bin/grunt" application-parameters="--stack" working-dir="$PROJECT_DIR$"> | |
<RunnerSettings RunnerId="NodeJS.debug" /> | |
<RunnerSettings RunnerId="NodeJS.run" /> | |
<ConfigurationWrapper RunnerId="NodeJS.debug" /> | |
<ConfigurationWrapper RunnerId="NodeJS.run" /> | |
<method /> | |
</configuration> | |
</component> |
<component name="ProjectRunConfigurationManager"> | |
<configuration default="false" name="Grunt Debug" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="$USER_HOME$/AppData/Roaming/npm/node_modules/grunt-cli/bin/grunt" application-parameters="--verbose --debug 9 --stack" working-dir="$PROJECT_DIR$"> | |
<RunnerSettings RunnerId="NodeJS.debug" /> | |
<RunnerSettings RunnerId="NodeJS.run" /> | |
<ConfigurationWrapper RunnerId="NodeJS.debug" /> | |
<ConfigurationWrapper RunnerId="NodeJS.run" /> | |
<method /> | |
</configuration> | |
</component> |
I don't know anything about this. Does this require some Node Plugin to be installed first? I usually just run grunt with a watch task in the node console instead.
This looks better then naïvely using grunt as an External Tool, which I currently use a lot.
Is it possible to use this configuration but still have multiple instances of it with different tasks? So I can configure WebStorm with a set of custom buttons and/or shortcuts to trigger common task names? (I currently use that a lot with the External Tool variant)
Also: will this work with the standard grunt release? I'd prefer to have my open source projects using the main version.
Wow! I just updated IntelliJ and the following super sweet panel appeared. It's an awesome new set of IntelliJ features (released within the WebStorm product) that any avid IntelliJ IDEA user building javascript-full-stack web applications ought to check out.
I'm using the stock grunt but was having trouble getting a grunt run configuration created. Your gists were enough to let me set up my grunt run configurations using the WebStorm UI. Thanks!
May need some tweaking depending on your environment