This repository was archived by the owner on Jun 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +36
-12
lines changed
Expand file tree Collapse file tree 2 files changed +36
-12
lines changed Original file line number Diff line number Diff line change 1- # PowerShell-IoT
1+ # PowerShell-IoT
2+
3+ Docs will change...
4+
5+ ## Getting Started
6+
7+ ### Prereqs
8+
9+ * [ PowerShell Core 6 or greater] ( https://github.com/PowerShell/PowerShell/releases )
10+ * [ .NET Core SDK 2.0 or greater] ( https://www.microsoft.com/net/download/ )
11+ * [ InvokeBuild] ( https://www.powershellgallery.com/packages/InvokeBuild/ )
12+
13+ ### Building
14+
15+ 1 . Clone/download the repo
16+ 2 . run ` ./build.ps1 -Bootstrap ` to see if you're missing any tooling
17+ 3 . run ` ./build.ps1 ` to build
18+
19+ At this point you can import the built module and mess with it:
20+
21+ ``` powershell
22+ Import-Module ./src/psiot/bin/Debug/netcoreapp2.0/PSIoT.psd1
23+ Get-GpioPin 2
24+ ```
25+
26+ You can package the build up by using Invoke-Build:
27+
28+ ``` powershell
29+ Invoke-Build Package
30+ ```
31+
32+ You can run tests, but they don't do anything right now:
33+
34+ ``` powershell
35+ ./build.ps1 -Test
36+ ```
Original file line number Diff line number Diff line change 1616$NeededTools = @ {
1717 PowerShellCore = " PowerShell Core 6.0.0 or greater"
1818 DotNetSdk = " dotnet sdk 2.0 or greater"
19- PowerShellGet = " PowerShellGet latest"
2019 InvokeBuild = " InvokeBuild latest"
2120}
2221
@@ -38,13 +37,6 @@ function needsDotNetSdk () {
3837 return $false
3938}
4039
41- function needsPowerShellGet () {
42- if (Get-Module - ListAvailable - Name PowerShellGet) {
43- return $false
44- }
45- return $true
46- }
47-
4840function needsInvokeBuild () {
4941 if (Get-Module - ListAvailable - Name InvokeBuild) {
5042 return $false
@@ -61,9 +53,6 @@ function getMissingTools () {
6153 if (needsDotNetSdk) {
6254 $missingTools += $NeededTools.DotNetSdk
6355 }
64- if (needsPowerShellGet) {
65- $missingTools += $NeededTools.PowerShellGet
66- }
6756 if (needsInvokeBuild) {
6857 $missingTools += $NeededTools.InvokeBuild
6958 }
You can’t perform that action at this time.
0 commit comments