Skip to content

Commit 5ae0fa5

Browse files
committed
Add tasks to run local webserver
1 parent 061fa0e commit 5ae0fa5

File tree

8 files changed

+11346
-0
lines changed

8 files changed

+11346
-0
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.idea/
2+
*.iml
3+
*.iws
4+
*.eml
5+
out/
6+
.DS_Store
7+
.svn
8+
log/*.log
9+
tmp/**
10+
node_modules/
11+
.sass-cache
12+
~*.pptx

.vscode/extensions.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"sandcastle.vscode-open",
4+
"mushan.vscode-paste-image",
5+
"felipecaputo.git-project-manager",
6+
"mhutchie.git-graph",
7+
"waderyan.gitblame"
8+
]
9+
}

.vscode/settings.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.activeBackground": "#1f6fd0",
4+
"activityBar.background": "#1f6fd0",
5+
"activityBar.foreground": "#e7e7e7",
6+
"activityBar.inactiveForeground": "#e7e7e799",
7+
"activityBarBadge.background": "#ee90bb",
8+
"activityBarBadge.foreground": "#15202b",
9+
"commandCenter.border": "#e7e7e799",
10+
"sash.hoverBorder": "#1f6fd0",
11+
"statusBar.background": "#1857a4",
12+
"statusBar.foreground": "#e7e7e7",
13+
"statusBarItem.hoverBackground": "#1f6fd0",
14+
"statusBarItem.remoteBackground": "#1857a4",
15+
"statusBarItem.remoteForeground": "#e7e7e7",
16+
"titleBar.activeBackground": "#1857a4",
17+
"titleBar.activeForeground": "#e7e7e7",
18+
"titleBar.inactiveBackground": "#1857a499",
19+
"titleBar.inactiveForeground": "#e7e7e799"
20+
},
21+
"peacock.color": "#1857a4"
22+
}

.vscode/tasks.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Install dependencies",
6+
"type": "shell",
7+
"command": ".\\install.ps1",
8+
"problemMatcher": []
9+
},
10+
{
11+
"label": "Run local web server",
12+
"type": "shell",
13+
"command": ".\\run.ps1",
14+
"problemMatcher": []
15+
},
16+
{
17+
"label": "View slides (presentation mode)",
18+
"type": "shell",
19+
"command": "start http://localhost:8000/",
20+
"problemMatcher": []
21+
},
22+
{
23+
"label": "View presentation (PDF mode)",
24+
"type": "shell",
25+
"command": "start http://localhost:8000/?print-pdf",
26+
"problemMatcher": []
27+
}
28+
]
29+
}

install.ps1

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## start of script
2+
# Always set the $InformationPreference variable to "Continue" globally,
3+
# this way it gets printed on execution and continues execution afterwards.
4+
$InformationPreference = "Continue"
5+
6+
# Stop on first error
7+
$ErrorActionPreference = "Stop"
8+
9+
Push-Location $PSScriptRoot
10+
11+
try {
12+
scoop install nodejs
13+
npm install reveal.js
14+
}
15+
finally {
16+
Pop-Location
17+
}
18+
## end of script

0 commit comments

Comments
 (0)