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 16
16
$NeededTools = @ {
17
17
PowerShellCore = " PowerShell Core 6.0.0 or greater"
18
18
DotNetSdk = " dotnet sdk 2.0 or greater"
19
- PowerShellGet = " PowerShellGet latest"
20
19
InvokeBuild = " InvokeBuild latest"
21
20
}
22
21
@@ -38,13 +37,6 @@ function needsDotNetSdk () {
38
37
return $false
39
38
}
40
39
41
- function needsPowerShellGet () {
42
- if (Get-Module - ListAvailable - Name PowerShellGet) {
43
- return $false
44
- }
45
- return $true
46
- }
47
-
48
40
function needsInvokeBuild () {
49
41
if (Get-Module - ListAvailable - Name InvokeBuild) {
50
42
return $false
@@ -61,9 +53,6 @@ function getMissingTools () {
61
53
if (needsDotNetSdk) {
62
54
$missingTools += $NeededTools.DotNetSdk
63
55
}
64
- if (needsPowerShellGet) {
65
- $missingTools += $NeededTools.PowerShellGet
66
- }
67
56
if (needsInvokeBuild) {
68
57
$missingTools += $NeededTools.InvokeBuild
69
58
}
You can’t perform that action at this time.
0 commit comments