Skip to content

Instantly share code, notes, and snippets.

@sayedihashimi
Created February 10, 2016 07:25
Show Gist options
  • Select an option

  • Save sayedihashimi/633bea5cafc9fd11fbf7 to your computer and use it in GitHub Desktop.

Select an option

Save sayedihashimi/633bea5cafc9fd11fbf7 to your computer and use it in GitHub Desktop.
pecan waffle ideas
# OPTION 1
$itemTemplate = new-itemtemplate 'aspnet5-empty' 'ASP.NET 5 empty project' -properties @{
DefaultProjectName = 'MyEmptyProject'
LicenseUrl = 'https://raw.githubusercontent.com/ligershark/pecan-waffle/master/LICENSE'
ProjectUrl = 'https://github.com/ligershark/pecan-waffle'
GitUrl = 'https://github.com/ligershark/pecan-waffle.git'
GitBranch = 'master'
BeforeInstall = { 'before install' | Write-Host -ForegroundColor Cyan}
AfterInstall = { 'after install' | Write-Host -ForegroundColor Cyan}
}
replace $templateInfo @(
('EmptyProjet', {"$ProjectName"}, {"$DefaultProjectName"}),
('..\..\artifacts', "$ArtifactsDir",'..\..\artifacts'),
('97b148d4-829e-4de3-840b-9c6600caa117', {"$ProjectId"}, {[System.Guid]::NewGuid()})
)
replace-filename $templateInfo @(
'EmptyProject',{"$ProjectName"}
)
exclude-file $templateInfo 'pw-*.*','*.user','*.suo','*.userosscache','project.lock.json','*.vs*scc'
exclude-folder $templateInfo '.vs','artifacts'
# OPTION 2
$itemtemplate = new-itemtemplate @{
Name = 'aspnet5-empty'
Description = 'ASP.NET 5 empty project'
DefaultProjectName = 'MyEmptyProject'
LicenseUrl = 'https://raw.githubusercontent.com/ligershark/pecan-waffle/master/LICENSE'
ProjectUrl = 'https://github.com/ligershark/pecan-waffle'
GitUrl = 'https://github.com/ligershark/pecan-waffle.git'
GitBranch = 'master'
}
replace $templateInfo @(
('EmptyProjet', {"$ProjectName"}, {"$DefaultProjectName"}),
('..\..\artifacts', "$ArtifactsDir",'..\..\artifacts'),
('97b148d4-829e-4de3-840b-9c6600caa117', {"$ProjectId"}, {[System.Guid]::NewGuid()})
)
replace filename $templateInfo @(
'EmptyProject',{"$ProjectName"}
)
exclude file $templateInfo 'pw-*.*','*.user','*.suo','*.userosscache','project.lock.json','*.vs*scc'
exclude folder $templateInfo '.vs','artifacts'
# OPTION 3
$itemtemplate = new-itemtemplate @{
Name = 'aspnet5-empty'
Description = 'ASP.NET 5 empty project'
DefaultProjectName = 'MyEmptyProject'
LicenseUrl = 'https://raw.githubusercontent.com/ligershark/pecan-waffle/master/LICENSE'
ProjectUrl = 'https://github.com/ligershark/pecan-waffle'
GitUrl = 'https://github.com/ligershark/pecan-waffle.git'
GitBranch = 'master'
}
$templateInfo | replace @(
('EmptyProjet', {"$ProjectName"}, {"$DefaultProjectName"}),
('..\..\artifacts', "$ArtifactsDir",'..\..\artifacts'),
('97b148d4-829e-4de3-840b-9c6600caa117', {"$ProjectId"}, {[System.Guid]::NewGuid()})
)
$templateInfo | replace filename @(
'EmptyProject',{"$ProjectName"}
)
$templateInfo | exclude file 'pw-*.*','*.user','*.suo','*.userosscache','project.lock.json','*.vs*scc'
$templateInfo | exclude folder '.vs','artifacts'
# OPTION 4
$templateInfo = new-itemtemplate @{
Name = 'aspnet5-empty'
Description = 'ASP.NET 5 empty project'
DefaultProjectName = 'MyEmptyProject'
LicenseUrl = 'https://raw.githubusercontent.com/ligershark/pecan-waffle/master/LICENSE'
ProjectUrl = 'https://github.com/ligershark/pecan-waffle'
GitUrl = 'https://github.com/ligershark/pecan-waffle.git'
GitBranch = 'master'
}
$templateInfo | replace @(
('EmptyProjet', {"$ProjectName"}, {"$DefaultProjectName"}),
('..\..\artifacts', "$ArtifactsDir",'..\..\artifacts'),
('97b148d4-829e-4de3-840b-9c6600caa117', {"$ProjectId"}, {[System.Guid]::NewGuid()})
)
$templateInfo | replace filename @(
'EmptyProject',{"$ProjectName"}
)
$templateInfo | exclude file 'pw-*.*','*.user','*.suo','*.userosscache','project.lock.json','*.vs*scc'
$templateInfo | exclude folder '.vs','artifacts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment