forked from psake/psake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsake-config.ps1
49 lines (46 loc) · 1.87 KB
/
psake-config.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#-------------------------------------------------------------------
#Specify defaults and do not auto-load modules
#-------------------------------------------------------------------
$psake.config = new-object psobject -property @{
defaultBuildFileName="default.ps1";
taskNameFormat="Executing {0}";
exitCode="1";
verboseError=$false;
modules=(new-object psobject -property @{ autoload=$false })
}
<#
-------------------------------------------------------------------
Specify defaults and auto-load modules from .\modules folder
-------------------------------------------------------------------
$psake.config = new-object psobject -property @{
defaultBuildFileName="default.ps1";
taskNameFormat="Executing {0}";
exitCode="1";
verboseError=$false;
modules=(new-object psobject -property @{ autoload=$true})
}
-------------------------------------------------------------------
Specify defaults and auto-load modules from .\my_modules folder
-------------------------------------------------------------------
$psake.config = new-object psobject -property @{
defaultBuildFileName="default.ps1";
taskNameFormat="Executing {0}";
exitCode="1";
verboseError=$false;
modules=(new-object psobject -property @{ autoload=$true; directory=".\my_modules" })
}
-------------------------------------------------------------------
Specify defaults and explicitly load module(s)
-------------------------------------------------------------------
$psake.config = new-object psobject -property @{
defaultBuildFileName="default.ps1";
taskNameFormat="Executing {0}";
exitCode="1";
verboseError=$false;
modules=(new-object psobject -property @{
autoload=$false;
module=(new-object psobject -property @{path="c:\module1dir\module1.ps1"}),
(new-object psobject -property @{path="c:\module1dir\module2.ps1"})
})
}
#>