Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ rust-toolchain.toml @nrwl/nx-native-reviewers
/e2e/workspace-create/** @nrwl/nx-core-reviewers
/e2e/release/** @nrwl/nx-core-reviewers

# .NET
/packages/dotnet/** @FrozenPandaz @AgentEnder
/e2e/dotnet/** @FrozenPandaz @AgentEnder

# Misc
/e2e/lerna-smoke-tests/** @vsavkin @JamesHenry
/e2e/utils/** @meeroslav @nrwl/nx-testing-tools-reviewers @vsavkin
Expand Down
16 changes: 15 additions & 1 deletion packages/dotnet/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"cache": true
},
"build-analyzer": {
"command": "node ./scripts/build-msbuild-analyzer.js",
"command": "node ./scripts/run-native-target.js _build-analyzer dotnet",
"cache": true,
"outputs": ["{workspaceRoot}/dist/msbuild-analyzer"],
"inputs": ["{projectRoot}/analyzer/**", { "env": "SKIP_ANALYZER_BUILD" }]
Expand All @@ -40,6 +40,20 @@
"parallel": false
}
},
"format-native": {
"command": "node ./scripts/run-native-target.js _format-native dotnet"
},
"_format-native": {
"command": "dotnet format {projectRoot}/analyzer/MsbuildAnalyzer.csproj",
"options": {
"args": ["--verify-no-changes"]
},
"configurations": {
"fix": {
"args": []
}
}
},
"legacy-post-build": {
"executor": "@nx/workspace-plugin:legacy-post-build",
"dependsOn": ["build-base", "build-analyzer"],
Expand Down
2 changes: 1 addition & 1 deletion packages/maven/maven-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"command": "for i in {1..5}; do ./mvnw install && break || sleep 10; done"
},
"_install": {
"command": "node scripts/build-maven-analyzer.js"
"command": "node scripts/run-native-target.js install nx-maven-plugin"
}
}
}
7 changes: 0 additions & 7 deletions scripts/build-maven-analyzer.js

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/build-msbuild-analyzer.js

This file was deleted.

11 changes: 11 additions & 0 deletions scripts/run-native-target.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// @ts-check

const { execSync } = require('node:child_process');

if (
process.env.SKIP_ANALYZER_BUILD !== 'true' &&
process.env.SKIP_NATIVE_TARGET !== 'true'
) {
const [target, project] = process.argv.slice(2);
execSync(`nx run ${project}:${target}`, { stdio: 'inherit' });
}
Loading