Skip to content

Commit 3a1489f

Browse files
authored
Add Dev Container configuration
1 parent b014936 commit 3a1489f

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll
3+
{
4+
"name": "Jekyll",
5+
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bookworm",
6+
"features": {
7+
"ghcr.io/devcontainers/features/node:1": {}
8+
},
9+
"forwardPorts": [4000],
10+
"containerEnv": {
11+
"WX_SITE_DIR": "${containerWorkspaceFolder}"
12+
},
13+
"postCreateCommand": {
14+
"bootstrap": "./.devcontainer/postCreateCommand.sh",
15+
"assets": "yarn && yarn dist",
16+
"jekyll": "bundle exec jekyll serve"
17+
},
18+
"customizations": {
19+
"vscode": {
20+
"settings": {
21+
"files.eol": "\n"
22+
},
23+
"extensions": [
24+
"shopify.ruby-lsp"
25+
]
26+
}
27+
}
28+
}

.devcontainer/postCreateCommand.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
ruby update_release_info.rb
6+
ruby _cron/update_download_stats.rb
7+
8+
git clone --depth=1 https://github.com/wxWidgets/wxWidgets.git
9+
10+
_cron/update_wxxrc_schema.sh
11+
_cron/update_translation_stats.sh

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto eol=lf
2+
*.{cmd,[cC][mM][dD]} text eol=crlf
3+
*.{bat,[bB][aA][tT]} text eol=crlf

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/_site/
55
/node_modules/
66
/vendor
7+
/wxWidgets/
78
*.log
89

910
# Compiled Assets
@@ -19,3 +20,7 @@
1920
# Download stats files
2021
/_data/release_assets/*.json
2122
/downloads/downloads.json
23+
24+
# XRC Schemas copied from wxWidgets repo
25+
/schemas/xrc_schema_builtin_only.rnc
26+
/schemas/xrc_schema.rnc

0 commit comments

Comments
 (0)