-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.ps1
31 lines (23 loc) · 956 Bytes
/
bootstrap.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
<#
.SYNOPSIS
This is a Powershell script to o start creating your own slides and specify a name for your presentation.
.DESCRIPTION
.PARAMETER PresentationName
The name of the presentation.
#>
[CmdletBinding()]
Param(
[Parameter(Position = 0, Mandatory = $true)]
[string]$PresentationName
)
Write-Host "Cloning laurentkempe/reveal.js-starter repository..."
& git clone "https://github.com/laurentkempe/reveal.js-starter" .\docs\$PresentationName
Set-Location .\docs\$PresentationName
Remove-Item -Recurse -Force .git
Remove-Item bootstrap.sh, bootstrap.ps1, README.md, LICENSE, js\.gitkeep, css\.gitkeep, lib\.gitkeep, img\.gitkeep, plugin\.gitkeep
Write-Output "Installing dependencies..."
& npm install
Write-Output ""
Write-Host "Presentation sucessfully set up in '.\docs\$PresentationName'" -ForegroundColor Green
Write-Host "Run 'npm run serve' to open it in your browser."
Write-Host "Edit your presentation then push it to Github!"