-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
26 lines (20 loc) · 808 Bytes
/
makefile
File metadata and controls
26 lines (20 loc) · 808 Bytes
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
# PSModuleTemplate
.PHONY: setup build pester
# Default target
.DEFAULT_GOAL := build
# Initialize module structure from template
# Creates the module directory, manifest, and copies template files
setup:
pwsh -File './.build/scripts/New-PSModule.ps1' -Verbose
# Build the module to .output directory
# Compiles module to .output/{ModuleName}/{Version}/ and creates .nupkg package
build:
pwsh -File './.build/scripts/Build-PSModule.ps1' -Verbose
# Invokes PSDepend to gather dependencies
# Installs required modules detailed in PSDepend.psd1
depend:
pwsh -File './.build/scripts/Invoke-PSModulePSDepend.ps1' -Verbose
# Run Pester tests with detailed output
# Imports local Pester module, runs all tests, and displays detailed results
pester:
pwsh -File './.build/scripts/Invoke-PSModulePester.ps1'