diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..70ada49 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,15 @@ +# trunk-ignore-all(trivy/DS026) +# trunk-ignore-all(trivy/DS002) +# trunk-ignore-all(checkov/CKV_DOCKER_2) +# trunk-ignore-all(checkov/CKV_DOCKER_3) +FROM mcr.microsoft.com/devcontainers/cpp:1-debian-12 + +# trunk-ignore(terrascan/AC_DOCKER_0002) +# trunk-ignore(hadolint/DL3008) +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends \ + ca-certificates \ + git \ + wget \ + zip \ + && apt-get clean && rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d8a7e10 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +// For format details, see https://aka.ms/devcontainer.json. +{ + "name": "Meshtastic Device-UI Dev", + "build": { + "dockerfile": "Dockerfile" + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/trunk-io/devcontainer-feature/trunk:1": {}, + "ghcr.io/devcontainers/features/node:1": {} + }, + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "Trunk.io", + "ms-vscode.cpptools-extension-pack", + "ms-azuretools.vscode-docker" + ], + "settings": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "trunk.io", + "trunk.enableWindows": true, + "files.insertFinalNewline": false, + "files.trimFinalNewlines": false, + "cmake.configureOnOpen": false, + "[cpp]": { + "editor.defaultFormatter": "trunk.io" + } + } + } + }, + + "postCreateCommand": "npm install lv_i18n -g --no-fund" +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..2746afa --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format. + "recommendations": ["Trunk.io"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..395983e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,13 @@ +{ + // See https://code.visualstudio.com/docs/getstarted/settings#_settings-json-file + // for the documentation about the settings.json format. + "editor.formatOnSave": true, + "editor.defaultFormatter": "trunk.io", + "trunk.enableWindows": true, + "files.insertFinalNewline": false, + "files.trimFinalNewlines": false, + "cmake.configureOnOpen": false, + "[cpp]": { + "editor.defaultFormatter": "trunk.io" + } +}