Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit ec47eb1

Browse files
add basic README and removed psget dep because PSCore ships with it (#3)
1 parent fa0cb65 commit ec47eb1

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
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+
```

build.ps1

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ param(
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-
4840
function 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
}

0 commit comments

Comments
 (0)