Skip to content

Commit

Permalink
refactor: migrate to nuke/power apps cli/sdk-style projects (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewingjm committed Nov 29, 2020
1 parent 9056975 commit f15a650
Show file tree
Hide file tree
Showing 96 changed files with 1,487 additions and 2,753 deletions.
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[*.generated.cs]
generated_code = true
generated_code = true
[*.cs]

# SA0001: XML comment analysis disabled
dotnet_diagnostic.SA0001.severity = none
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
[Rr]eleases/
[Xx]64/
[Xx]86/
[Bb]uild/
bld/
[Bb]in/
[Oo]bj/
Expand Down Expand Up @@ -262,4 +261,6 @@ Log*.txt
!Data/Release

# Ignore generated SpecFlow feature files
**/*.feature.cs
**/*.feature.cs

**/eslint.json
1 change: 1 addition & 0 deletions .nuke
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DevelopmentHub.sln
27 changes: 27 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/build/bin/Debug/netcoreapp3.1/_build.dll",
"args": [],
"cwd": "${workspaceFolder}/build",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
281 changes: 152 additions & 129 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,131 +1,154 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Build Package",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"Default\""
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Build Solution",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"BuildSolution\"",
"-ScriptArgs \"--solution=${input:solution}\""
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Generate Model",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"GenerateModel\"",
"-ScriptArgs \"--solution=${input:solution}\""
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Extract Solution",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"ExtractSolution\"",
"-ScriptArgs \"--solution=${input:solution}\""
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Pack Solution",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"PackSolution\"",
"-ScriptArgs \"--solution=${input:solution}\""
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Deploy Plugins",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"DeployPlugins\"",
"-ScriptArgs \"--solution=${input:solution}\""
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Deploy Workflow Activities",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"DeployWorkflowActivities\"",
"-ScriptArgs \"--solution=${input:solution}\""
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Build Development Environment",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"BuildDevelopmentEnvironment\"",
"-ScriptArgs \"--solution=${input:solution}\""
],
"problemMatcher": []
}
],
"inputs": [
{
"id": "solution",
"description": "The solution to execute the task for.",
"type": "pickString",
"options": [
"devhub_DevelopmentHub_Issues",
"devhub_DevelopmentHub_Develop",
"devhub_DevelopmentHub_AzureDevOps"
]
},
{
"id": "dataType",
"description": "Type of data.",
"type": "pickString",
"options": [
"PreDeployment",
"PostDeployment"
]
},
{
"id": "url",
"type": "promptString",
"description": "Environment URL."
},
{
"id": "username",
"type": "promptString",
"description": "Environment usename."
}
]
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "Extract solution",
"detail": "Exports a solution and extracts its metadata into source control",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"--target extract-solution",
"--DataverseSolution ${input:solution}"
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Pack solution",
"detail": "Packs a managed or unmanaged solution zip file.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"--target packs-solution",
"--DataverseSolution ${input:solution}",
"--SolutionType ${input:solutionType}"
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Clean",
"detail": "Deletes all build outputs.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"--target clean",
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Restore",
"detail": "Restores all package references.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"--target restore",
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Compile",
"detail": "Builds a managed or unmanaged Package Deployer package.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"--target compile",
"--SolutionType ${input:solutionType}"
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Compile tests",
"detail": "Compiles the test projects.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"--target compile-tests",
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Prepare development environment",
"detail": "Prepares a development environment for the selected solution.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"prepare-development-environment\"",
"--DataverseSolution ${input:solution}",
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Deploy plug-ins",
"detail": "Deploys plug-ins for a solution using spkl.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"deploy-plugins\"",
"--DataverseSolution ${input:solution}",
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Deploy workflow activities",
"detail": "Deploys workflow activities for a solution using spkl.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"deploy-workflow-activities\"",
"--DataverseSolution ${input:solution}",
],
"problemMatcher": []
},
{
"type": "shell",
"label": "Generate early-bound model",
"detail": "Generates an early-bound model for a solution using spkl.",
"command": [
"powershell",
"-ExecutionPolicy ByPass",
"-File build.ps1",
"-Target \"generate-model\"",
"--DataverseSolution ${input:solution}",
],
"problemMatcher": []
}
],
"inputs": [
{
"id": "solution",
"description": "The solution to execute the task for.",
"type": "pickString",
"options": [
"devhub_DevelopmentHub_Issues",
"devhub_DevelopmentHub_Develop",
"devhub_DevelopmentHub_AzureDevOps"
]
},
{
"id": "solutionType",
"description": "Type of solution.",
"type": "pickString",
"options": [
"Managed",
"Unmanaged"
]
}
]
}
Loading

0 comments on commit f15a650

Please sign in to comment.