Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Pulumi Docs Author Environment",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "lts"
},
"ghcr.io/devcontainers/features/go:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/hugo:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/python:1": {
"installTools": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"installDirectlyFromGitHubRelease": true,
"version": "latest"
}
},
"customizations": {
"vscode": {
"extensions": [
"pulumi.pulumi-lsp-client",
"blackmist.LinkCheckMD",
"DavidAnson.vscode-markdownlint",
"redhat.vscode-yaml"
]
}
},

"postCreateCommand": "./.devcontainer/scripts/post-create.sh"
}
8 changes: 8 additions & 0 deletions .devcontainer/scripts/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

curl -fsSL https://get.pulumi.com | sh
echo 'export PATH=$HOME/.pulumi/bin:$PATH' >> ~/.bashrc
echo 'export PATH=$HOME/.pulumi/bin:$PATH' >> ~/.profile
export PATH=$HOME/.pulumi/bin:$PATH
pulumi version
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Preview Pulumi Site",
"type": "node-terminal",
"request": "launch",
"command": "make serve",
"serverReadyAction": {
"pattern": "Web Server is available at (https?://localhost:(\\d+))",
"uriFormat": "%s",
"action": "openExternally"
}
}
]
}
169 changes: 169 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "make ensure",
"type": "shell",
"command": "make",
"args": ["ensure"],
"detail": "Install/resolve all dependencies.",
"group": "build"
},
{
"label": "make lint",
"type": "shell",
"command": "make",
"args": ["lint"],
"detail": "Check Markdown files for correctness.",
"group": "test"
},
{
"label": "make format",
"type": "shell",
"command": "make",
"args": ["format"],
"detail": "Format files to match style guidelines.",
"group": "build"
},
{
"label": "make serve",
"type": "shell",
"command": "make",
"args": ["serve"],
"detail": "Run Hugo server locally at http://localhost:1313.",
"group": "build",
"isBackground": true,
"problemMatcher": {
"pattern": [
{
"regexp": ".*",
"file": 1,
"message": 1,
"line": 1
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "Watching for changes",
"endsPattern": "Web Server is available at"
}
},
"options": {
"terminateSignal": "SIGINT"
}
},
{
"label": "make serve-all",
"type": "shell",
"command": "make",
"args": ["serve-all"],
"detail": "Run Hugo server + watch CSS/JS changes.",
"group": "build",
"isBackground": true,
"problemMatcher": {
"pattern": [
{
"regexp": ".*",
"file": 1,
"message": 1,
"line": 1
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "Watching for changes",
"endsPattern": "Web Server is available at"
}
}
},
{
"label": "make build",
"type": "shell",
"command": "make",
"args": ["build"],
"detail": "Build the full site into ./public.",
"group": "build"
},
{
"label": "make build-assets",
"type": "shell",
"command": "make",
"args": ["build-assets"],
"detail": "Build just the CSS and JS bundles.",
"group": "build"
},
{
"label": "make serve-static",
"type": "shell",
"command": "make",
"args": ["serve-static"],
"detail": "Serve the contents of ./public via local HTTP.",
"group": "build"
},
{
"label": "make test",
"type": "shell",
"command": "make",
"args": ["test"],
"detail": "Run tests for programs in ./static/programs.",
"group": "test"
},
{
"label": "make generate",
"type": "shell",
"command": "make",
"args": ["generate"],
"detail": "Build the docs for TS, Python, and Pulumi CLI.",
"group": "build"
},
{
"label": "[scaffold] make new-blog-post",
"type": "shell",
"command": "make",
"args": ["new-blog-post"],
"detail": "Scaffold a new blog post with placeholders."
},
{
"label": "[scaffold] make new-tutorial",
"type": "shell",
"command": "make",
"args": ["new-tutorial"],
"detail": "Scaffold a new single-page tutorial."
},
{
"label": "[scaffold] make new-tutorial-module",
"type": "shell",
"command": "make",
"args": ["new-tutorial-module"],
"detail": "Scaffold a new multi-page tutorial module."
},
{
"label": "[scaffold] make new-tutorial-topic",
"type": "shell",
"command": "make",
"args": ["new-tutorial-topic"],
"detail": "Add a topic to an existing tutorial module."
},
{
"label": "[scaffold] make new-example-program",
"type": "shell",
"command": "make",
"args": ["new-example-program"],
"detail": "Generate a new multi-language example in ./static/programs."
},
{
"label": "[deploy] make new-dev-stack",
"type": "shell",
"command": "make",
"args": ["new-dev-stack"],
"detail": "Create a new dev stack (requires pulumi org access)."
},
{
"label": "[deploy] make deploy-dev-stack",
"type": "shell",
"command": "make",
"args": ["deploy-dev-stack"],
"detail": "Build, test, and deploy to the selected dev stack."
}
]
}
Loading