Skip to content

Commit

Permalink
add run configurations for gitversion/command
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Jul 25, 2024
1 parent a2d61f4 commit 16f42d8
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .run/run_azure_gitversion (command).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="run:azure:gitversion (command)" type="js.build_tools.npm" folderName="run" activateToolWindowBeforeRun="false">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="run:azure:gitversion" />
</scripts>
<arguments value="-- --command command" />
<node-interpreter value="project" />
<node-options value="-r dotenv/config" />
<envs>
<env name="DOTENV_CONFIG_PATH" value="./envs/gitversion/command/azure.env" />
</envs>
<method v="2">
<option name="RunConfigurationTask" enabled="false" run_configuration_name="build:tools" run_configuration_type="js.build_tools.npm" />
<option name="RunConfigurationTask" enabled="false" run_configuration_name="build:agent:azure" run_configuration_type="js.build_tools.npm" />
</method>
</configuration>
</component>
19 changes: 19 additions & 0 deletions .run/run_github_gitversion (command).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="run:github:gitversion (command)" type="js.build_tools.npm" folderName="run" activateToolWindowBeforeRun="false">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="run:github:gitversion" />
</scripts>
<arguments value="-- --command command" />
<node-interpreter value="project" />
<node-options value="-r dotenv/config" />
<envs>
<env name="DOTENV_CONFIG_PATH" value="./envs/gitversion/command/github.env" />
</envs>
<method v="2">
<option name="RunConfigurationTask" enabled="false" run_configuration_name="build:tools" run_configuration_type="js.build_tools.npm" />
<option name="RunConfigurationTask" enabled="false" run_configuration_name="build:agent:github" run_configuration_type="js.build_tools.npm" />
</method>
</configuration>
</component>
19 changes: 19 additions & 0 deletions .run/run_local_gitversion (command).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="run:local:gitversion (command)" type="js.build_tools.npm" folderName="run" activateToolWindowBeforeRun="false">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="run:local:gitversion" />
</scripts>
<arguments value="-- --command command" />
<node-interpreter value="project" />
<node-options value="-r dotenv/config" />
<envs>
<env name="DOTENV_CONFIG_PATH" value="./envs/gitversion/command/local.env" />
</envs>
<method v="2">
<option name="RunConfigurationTask" enabled="false" run_configuration_name="build:tools" run_configuration_type="js.build_tools.npm" />
<option name="RunConfigurationTask" enabled="false" run_configuration_name="build:agent:local" run_configuration_type="js.build_tools.npm" />
</method>
</configuration>
</component>
1 change: 1 addition & 0 deletions envs/gitversion/command/azure.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ BUILD_SOURCESDIRECTORY=.
AGENT_TEMPDIRECTORY=./.test/temp
AGENT_TOOLSDIRECTORY=./.test/tools
GITVERSION_PATH=./.test/tools/GitVersion.Tool/6.0.0
INPUT_ARGUMENTS='/format {Major}.{Minor}.{Patch}.{Sha}'
1 change: 1 addition & 0 deletions envs/gitversion/command/github.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ GITHUB_WORKSPACE=.
RUNNER_TEMP=./.test/temp
RUNNER_TOOL_CACHE=./.test/tools
GITVERSION_PATH=./.test/tools/GitVersion.Tool/6.0.0
INPUT_ARGUMENTS='/format {Major}.{Minor}.{Patch}.{Sha}'
1 change: 1 addition & 0 deletions envs/gitversion/command/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ AGENT_SOURCE_DIR=.
AGENT_TEMP_DIR=./.test/temp
AGENT_TOOLS_DIR=./.test/tools
GITVERSION_PATH=./.test/tools/GitVersion.Tool/6.0.0
INPUT_ARGUMENTS='/format {Major}.{Minor}.{Patch}.{Sha}'

0 comments on commit 16f42d8

Please sign in to comment.