Public/New-NcrementManifest.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<#
.SYNOPSIS
Creates a new [Manifest] object.
 
.DESCRIPTION
This function creates a new [Manifest] object.
 
.EXAMPLE
New-NcrementManifest | ConvertTo-Json | Out-File "C:\app\manifest.json";
This example, creates a new [Manifest] and saves to a file.
#>

function New-NcrementManifest()
{
    return @"
    {
        "id": null,
        "name": null,
        "author": null,
        "company": null,
        "copyright": null,
        "website": null,
        "license": null,
        "repository": null,
        "icon": null,
        "tags": null,
        "releaseNotes": null,
 
        "version": { "major": 0, "minor": 0, "patch": 1 },
        "branchSuffixMap": { "master": "", "*": "rc" }
    }
"@
 | ConvertFrom-Json;
}