Skip to content

Commit 80fa002

Browse files
Merge pull request #421 from StartAutomating/PipeScript-Phases
PipeScript 0.2.5
2 parents f791e7a + 7295125 commit 80fa002

File tree

88 files changed

+3131
-210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3131
-210
lines changed

.github/workflows/TestAndPublish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,9 @@ jobs:
576576
steps:
577577
- name: Check out repository
578578
uses: actions/checkout@v2
579+
- name: GitLogger
580+
uses: GitLogging/GitLoggerAction@main
581+
id: GitLogger
579582
- name: Use PSSVG Action
580583
uses: StartAutomating/PSSVG@main
581584
id: PSSVG

PipeScript.GitHubAction.PSDevOps.ps1 renamed to Build/PipeScript.GitHubAction.PSDevOps.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#requires -Module PSDevOps
22
#requires -Module PipeScript
33
Import-BuildStep -ModuleName PipeScript
4-
Push-Location $PSScriptRoot
4+
Push-Location ($PSScriptRoot | Split-Path)
55
New-GitHubAction -Name "BuildPipeScript" -Description @'
66
Builds code using PipeScript
77
'@ -Action PipeScriptAction -Icon code -OutputPath .\action.yml

PipeScript.GitHubWorkflow.PSDevOps.ps1 renamed to Build/PipeScript.GitHubWorkflow.PSDevOps.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#requires -Module PSDevOps
22
Import-BuildStep -ModuleName PipeScript
3-
Push-Location $PSScriptRoot
3+
Push-Location ($PSScriptRoot | Split-Path)
44
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildPipeScript -Environment @{
55
NoCoverage = $true
66
} -OutputPath .\.github\workflows\TestAndPublish.yml

PipeScript.HelpOut.ps1 renamed to Build/PipeScript.HelpOut.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#require -Module HelpOut
2-
Push-Location $PSScriptRoot
2+
Push-Location ($PSScriptRoot | Split-Path)
33

44
$PipeScriptLoaded = Get-Module PipeScript
55
if (-not $PipeScriptLoaded) {

PipeScript.PSSVG.ps1 renamed to Build/PipeScript.PSSVG.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ svg -ViewBox 1920,1080 @(
4848
svg.animateTransform -AttributeName transform -From "360 $circleMid" -To "0 $circleMid" -dur "$($RotateEvery.TotalSeconds)s" -RepeatCount 'indefinite' -AttributeType 'XML' -Type 'rotate'
4949
)
5050
) -OutputPath (
51-
Join-Path $PSScriptRoot Assets | Join-Path -ChildPath "PipeScript.svg"
51+
Join-Path ($PSScriptRoot | Split-Path) Assets | Join-Path -ChildPath "PipeScript.svg"
5252
)
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
#require -Module Piecemeal
22

33
# Push to this directory
4-
Push-Location $PSScriptRoot
4+
Push-Location ($PSScriptRoot | Split-Path)
5+
6+
$commandsPath = Join-Path $PWD Commands
57

68
# Get-Transpiler is generated with Piecemeal
7-
Install-Piecemeal -ExtensionNoun 'Transpiler' -ExtensionPattern '\.psx\.ps1$','^PipeScript\p{P}Transpiler\p{P}(?!(?>format|types|tests)\p{P})','^psx\p{P}' -ExtensionTypeName 'PipeScript.Transpiler' -OutputPath '.\Get-Transpiler.ps1' |
8-
Add-Member Noteproperty CommitMessage "Get-Transpiler: Updating Piecemeal@[$((Get-Module Piecemeal).Version)]" -Force -PassThru
9+
Install-Piecemeal -ExtensionNoun 'Transpiler' -ExtensionPattern '\.psx\.ps1$','^PipeScript\p{P}Transpiler\p{P}(?!(?>format|types|tests)\p{P})','^psx\p{P}' -ExtensionTypeName 'PipeScript.Transpiler' -OutputPath (
10+
Join-Path $commandsPath Get-Transpiler.ps1
11+
)
912

1013
# So is Get-PipeScript
11-
Install-Piecemeal -ExtensionNoun 'PipeScript' -ExtensionPattern '\.psx\.ps1{0,1}$','\.ps1{0,1}\.(?<ext>[^.]+$)','\.ps1{0,1}$','^PipeScript.' -ExtensionTypeName 'PipeScript' -OutputPath '.\Get-PipeScript.ps1' |
12-
Add-Member Noteproperty CommitMessage "Get-PipeScript: Updating Piecemeal@[$((Get-Module Piecemeal).Version)]" -Force -PassThru
14+
Install-Piecemeal -ExtensionNoun 'PipeScript' -ExtensionPattern '\.psx\.ps1{0,1}$','\.ps1{0,1}\.(?<ext>[^.]+$)','\.ps1{0,1}$','^PipeScript.' -ExtensionTypeName 'PipeScript' -OutputPath (
15+
Join-Path $commandsPath Get-PipeScript.ps1
16+
)
1317

1418
# Pop back to wherever we were
1519
Pop-Location

PipeScript.ezout.ps1 renamed to Build/PipeScript.ezout.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Install-Module EZOut or https://github.com/StartAutomating/EZOut
33
$myFile = $MyInvocation.MyCommand.ScriptBlock.File
44
$myModuleName = 'PipeScript'
5-
$myRoot = $myFile | Split-Path
5+
$myRoot = $myFile | Split-Path | Split-Path
66
Push-Location $myRoot
77
$formatting = @(
88
# Add your own Write-FormatView here,

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## PipeScript 0.2.5:
2+
3+
* Added Support for Aspects (#401)
4+
* Support for Pre/Post commands in Core Transpiler
5+
* Commands Named PipeScript.PreProcess / PipeScript.Analyzer will run before transpilation of a ScriptBlock
6+
* Commands Named PipeScript.PostProcess / PipeScript.Optimizer will run after transpilation of a ScriptBlock
7+
* Adding PipeScript.Optimizer.ConsolidateAspects (Fixes #413)
8+
* Conditional Keywords Fixes (Fixes #402)
9+
* New-PipeScript: Improving Pipelining (Fixes #400)
10+
* Update-PipeScript:
11+
* Tracing Events (#407)
12+
* Support for Insertions (#405, #406, #407)
13+
* Template Improvements
14+
* Templates can now be either singleline or multiline (Fixes #398)
15+
* New Language Support
16+
* Eiffel (#404)
17+
* PS1XML (#414)
18+
* SVG (#411)
19+
* XAML (#414)
20+
* XML Transpilers support inline xml output (Fixes #412)
21+
* Added initial demo file (Fixes #420)
22+
23+
---
24+
125
## PipeScript 0.2.4:
226

327
* Conditional Keywords now support throw/return (#389/#388) (also, fixed #387)

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

Export-PipeScript.ps1 renamed to Commands/Export-PipeScript.ps1

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,29 @@ function Export-Pipescript {
5050

5151
$buildFileTemplate = $buildFile.Template
5252
if ($buildFileTemplate -and $buildFile.PipeScriptType -ne 'Template') {
53-
Invoke-PipeScript $buildFileTemplate.Source
53+
try {
54+
Invoke-PipeScript $buildFileTemplate.Source
55+
} catch {
56+
$ex = $_
57+
Write-Error -ErrorRecord $ex
58+
}
5459
$alreadyBuilt[$buildFileTemplate.Source] = $true
5560
}
5661

57-
$EventsFromThisBuild = Get-Event |
62+
$EventsFromThisBuild = Get-Event |
5863
Where-Object TimeGenerated -gt $ThisBuildStartedAt |
59-
Where-Object SourceIdentifier -Like 'PipeScript.*'
64+
Where-Object SourceIdentifier -Like '*PipeScript*'
6065

61-
Invoke-PipeScript $buildFile.Source
66+
try {
67+
Invoke-PipeScript $buildFile.Source
68+
} catch {
69+
$ex = $_
70+
Write-Error -ErrorRecord $ex
71+
}
72+
6273
$alreadyBuilt[$buildFile.Source] = $true
6374
}
6475

65-
6676
$BuildTime = [DateTime]::Now - $buildStarted
6777
Write-Progress "Building PipeScripts [$FilesToBuildCount / $filesToBuildTotal]" "Finished In $($BuildTime) " -Completed -id $filesToBuildID
6878
}

0 commit comments

Comments
 (0)