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
7 changes: 7 additions & 0 deletions .build/modules/PSDepend/0.3.8/PSDepend.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# You can use the following:
# Absolute paths
# Relative paths
# UNC paths
# $ModuleRoot as "the path to the PSDepend module folder"
NuGetPath=$ModuleRoot\nuget.exe
GitPath=$ModuleRoot\git\git.exe
32 changes: 32 additions & 0 deletions .build/modules/PSDepend/0.3.8/PSDepend.Format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
<ViewDefinitions>
<View>
<Name>Default</Name>
<ViewSelectedBy>
<TypeName>PSDepend.Dependency</TypeName>
</ViewSelectedBy>
<ListControl>
<ListEntries>
<ListEntry>
<ListItems>
<ListItem>
<PropertyName>DependencyName</PropertyName>
</ListItem>
<ListItem>
<PropertyName>DependencyType</PropertyName>
</ListItem>
<ListItem>
<PropertyName>Version</PropertyName>
</ListItem>
<ListItem>
<Label>Tags</Label>
<ScriptBlock>Try { ($_.Tags | Out-String ).trimend("`n")} Catch {$_.Tags} </ScriptBlock>
</ListItem>
</ListItems>
</ListEntry>
</ListEntries>
</ListControl>
</View>
</ViewDefinitions>
</Configuration>
111 changes: 111 additions & 0 deletions .build/modules/PSDepend/0.3.8/PSDepend.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
@{

# Script module or binary module file associated with this manifest.
RootModule = 'PSDepend.psm1'

# Version number of this module.
ModuleVersion = '0.3.8'

# ID used to uniquely identify this module
GUID = '63ea9e2a-320d-43ff-a11a-4930ca03cce6'

# Author of this module
Author = 'Warren Frame'

# Company or vendor of this module
#CompanyName = 'Unknown'

# Copyright statement for this module
Copyright = '(c) 2016 Warren F. All rights reserved.'

# Description of the functionality provided by this module
Description = 'PowerShell Dependency Handler'

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '3.0'

# Name of the Windows PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the Windows PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module
# DotNetFrameworkVersion = ''

# Minimum version of the common language runtime (CLR) required by this module
# CLRVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = 'PSDepend.Format.ps1xml'

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions to export from this module
FunctionsToExport = @('Get-Dependency','Get-PSDependScript','Get-PSDependType','Import-Dependency','Install-Dependency','Invoke-DependencyScript','Invoke-PSDepend','Test-Dependency')

# Cmdlets to export from this module
CmdletsToExport = '*'

# Variables to export from this module
# VariablesToExport = '*'

# Aliases to export from this module
AliasesToExport = '*'

# DSC resources to export from this module
# DscResourcesToExport = @()

# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = @('requirements', 'dependencies', 'dependency', 'manager', 'bundle', 'package')

# A URL to the license for this module.
LicenseUri = 'https://github.com/RamblingCookieMonster/PSDepend/blob/master/LICENSE'

# A URL to the main website for this project.
ProjectUri = 'https://github.com/RamblingCookieMonster/PSDepend/'

# A URL to an icon representing this module.
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = 'Added various PowerShell Core fixes thanks to @lipkau!'

} # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}
34 changes: 34 additions & 0 deletions .build/modules/PSDepend/0.3.8/PSDepend.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#Get public and private function definition files.
$Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue )
$Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue )
$ModuleRoot = $PSScriptRoot

#Dot source the files
Foreach($import in @($Public + $Private))
{
Try
{
. $import.fullname
}
Catch
{
Write-Error -Message "Failed to import function $($import.fullname): $_"
}
}

#Get nuget dependecy file if we don't have it
Get-Content $ModuleRoot\PSDepend.Config |
Where-Object {$_ -and $_ -notmatch "^\s*#"} |
Foreach-Object {
$Name = ( $_ -split '=')[0].trim()
$Value = ( $_ -split '=')[1].trim()
# Revisit later and only apply these for '*path', if we have other types of variables...
$Value = $Value -replace '\$ModuleRoot', $ModuleRoot
$Value = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Value)
Set-Variable -Name $Name -Value $Value
}
if(Test-PlatformSupport -Support 'windows') {
BootStrap-Nuget -NugetPath $NuGetPath
}

Export-ModuleMember -Function $Public.Basename
92 changes: 92 additions & 0 deletions .build/modules/PSDepend/0.3.8/PSDependMap.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# This defines dependencies. Feel free to create your own
# Top level node is the dependency name
# Script is the script to run. These are stored in \PSDepend\PSDependScripts
# Description is a quick description of the dependency script
# Supports is a way to filter supported platforms: core, windows, macos, linux

# In some cases, it may be beneficial to include 'aliases'. Just add nodes for these.
@{
Chocolatey = @{
Script = 'Chocolatey.ps1'
Description = 'Install a Chocolatey package from a Chocolatey feed'
Supports = 'windows'
}

Command = @{
Script = 'Command.ps1'
Description = 'Invoke a command in PowerShell'
Supports = 'windows', 'core', 'macos', 'linux'
}

DotnetSdk = @{
Script = 'DotnetSdk.ps1'
Description = "Installs the .NET Core SDK"
Supports = 'windows', 'core', 'macos', 'linux'
}

FileDownload = @{
Script = 'FileDownload.ps1'
Description = 'Download a file'
Supports = 'windows'
}

FileSystem = @{
Script = 'FileSystem.ps1'
Description = 'Copy a file or folder'
Supports = 'windows'
}

Git = @{
Script = 'Git.ps1'
Description = 'Clone a git repository'
Supports = 'windows', 'core', 'macos', 'linux'
}

GitHub = @{
Script = 'GitHub.ps1'
Description = 'Download and extract a GitHub repo'
Supports = 'windows', 'core', 'macos', 'linux'
}

Npm = @{
Script = 'Npm.ps1'
Description = 'Install a node package'
Supports = 'windows', 'core', 'macos', 'linux'
}

Noop = @{
Script = 'Noop.ps1'
Description = 'Display parameters that a depends script would receive. Use for testing and validation'
Supports = 'windows', 'core', 'macos', 'linux'
}

Nuget = @{
Script = 'Nuget.ps1'
Description = 'Install a Nuget package from a Nuget feed'
Supports = 'windows', 'core', 'macos', 'linux'
}

Package = @{
Script = 'Package.ps1'
Description = 'EXPERIMENTAL: Install a package via PackageManagement Install-Package'
Supports = 'windows', 'core', 'macos', 'linux'
}

PSGalleryModule = @{
Script= 'PSGalleryModule.ps1'
Description = 'Install a PowerShell module from the PowerShell Gallery'
Supports = 'windows', 'core', 'macos', 'linux'
}

PSGalleryNuget = @{
Script = 'PSGalleryNuget.ps1'
Description = 'Install a PowerShell module from the PowerShell Gallery without the PowerShellGet dependency'
Supports = 'windows', 'core', 'macos', 'linux'
}

Task = @{
Script = 'Task.ps1'
Description = 'Support dependencies by handling simple tasks'
Supports = 'windows', 'core', 'macos', 'linux'
}
}
Loading
Loading