diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..39bbd2681d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,4 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "features": {} +} diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000000..460f782006 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5 diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml new file mode 100644 index 0000000000..9626ff6d35 --- /dev/null +++ b/.github/workflows/webpack.yml @@ -0,0 +1,28 @@ +name: NodeJS with Webpack + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x, 22.x] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + npx webpack diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..884c643559 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "github.vscode-github-actions" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index a5cc14660e..7776898526 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,78 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "name": "Embedded Debug", + "type": "embedded-debug", + "request": "launch", + "serialNumber": "${command:device-manager.getSerialNumber}", + "program": "${command:embedded-debug.getApplicationFile}", + "cmsisPack": "${command:device-manager.getDevicePack}" + }, + { + "type": "aws-sam", + "request": "direct-invoke", + "name": "Invoke Lambda with API Gateway", + "invokeTarget": { + "target": "api", + "templatePath": "Template Location", + "logicalId": "Function Logical ID" + }, + "api": { + "path": "Path", + "httpMethod": "Method", + "payload": { + "json": {} + } + } + }, + { + "type": "aws-sam", + "request": "direct-invoke", + "name": "Invoke Lambda", + "invokeTarget": { + "target": "template", + "templatePath": "Template Location", + "logicalId": "Function Logical ID" + }, + "lambda": { + "payload": { + "json": {} + } + } + }, + { + "type": "aws-sam", + "request": "direct-invoke", + "name": "Invoke Lambda with API Gateway", + "invokeTarget": { + "target": "api", + "templatePath": "Template Location", + "logicalId": "Function Logical ID" + }, + "api": { + "path": "Path", + "httpMethod": "Method", + "payload": { + "json": {} + } + } + }, + { + "type": "aws-sam", + "request": "direct-invoke", + "name": "Invoke Lambda", + "invokeTarget": { + "target": "template", + "templatePath": "Template Location", + "logicalId": "Function Logical ID" + }, + "lambda": { + "payload": { + "json": {} + } + } + }, { "type": "node", "request": "launch", diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..b81a8d85c4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,58 @@ +{ + "workbench.editor.alwaysShowEditorActions": true, + "workbench.editor.autoLockGroups": { + "default": true, + "workbench.editor.chatSession": true, + "workbench.editor.chatDebug": true, + "workbench.editorinputs.searchEditorInput": true, + "agentSessionsWelcomePage": true, + "jupyter-notebook": true, + "notebookOutputEditor": true, + "github-issues": true, + "aws-redshift-sql-notebook": true, + "repl": true, + "workbench.editors.gettingStartedInput": true, + "vscode.markdown.editor": true, + "imagePreview.previewEditor": true, + "vscode.videoPreview": true, + "vscode.audioPreview": true, + "gitlens.rebase": true, + "workflowStudio.asl": true, + "arm-debugger.debug-config": true, + "virtual-hardware.fvpParamsEditor": true, + "arm-debugger.run-config": true, + "workbench.input.interactive": true, + "mainThreadWebview-markdown.preview": true, + "memory-inspector.inspect": true + }, + "workbench.editor.centeredLayoutFixedWidth": true, + "workbench.editor.defaultBinaryEditor": "gitlens.rebase", + "workbench.editor.enablePreviewFromCodeNavigation": true, + "workbench.editor.enablePreviewFromQuickOpen": true, + "workbench.editor.highlightModifiedTabs": true, + "workbench.editor.limit.enabled": true, + "workbench.editor.limit.excludeDirty": true, + "workbench.editor.limit.perEditorGroup": true, + "workbench.editor.pinnedTabsOnSeparateRow": true, + "workbench.editor.preferHistoryBasedLanguageDetection": true, + "workbench.editor.revealIfOpen": true, + "workbench.editor.scrollToSwitchTabs": true, + "workbench.editor.sharedViewState": true, + "workbench.editor.showTabIndex": true, + "workbench.editor.wrapTabs": true, + "workbench.editor.useModal": "all", + "workbench.editor.markdownDefaultEditorInAgentsWindow": true, + "workbench.editor.closeOnFileDelete": true, + "gitlens.views.repositories.showIncomingActivity": true, + "gitlens.views.repositories.includeWorkingTree": true, + "gitlens.graph.showRemoteNames": true, + "gitlens.codeLens.scopes": [ + "document", + "containers", + "blocks" + ], + "gitlens.currentLine.format": "${author, }${agoOrDate}${' via 'pullRequest}${ • message|50?}", + "gitlens.currentLine.uncommittedChangesFormat": "✏️ ${ago", + "github-actions.workflows.pinned.refresh.enabled": true, + "github-actions.use-enterprise": true +} \ No newline at end of file diff --git a/script/sync-ghes/package-lock.json b/script/sync-ghes/package-lock.json index 768bbda918..450f8c1c19 100644 --- a/script/sync-ghes/package-lock.json +++ b/script/sync-ghes/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "js-yaml": "^3.13.1" + "js-yaml": "^4.1.1" }, "devDependencies": { "@types/js-yaml": "^3.12.4", diff --git a/script/sync-ghes/package.json b/script/sync-ghes/package.json index c3c9872458..f861510f02 100644 --- a/script/sync-ghes/package.json +++ b/script/sync-ghes/package.json @@ -14,6 +14,6 @@ "typescript": "^3.9.2" }, "dependencies": { - "js-yaml": "^3.13.1" + "js-yaml": "^4.1.1" } }