Skip to content

Commit 4f23772

Browse files
committed
initial commit
0 parents  commit 4f23772

20 files changed

+4048
-0
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: ecmel
4+
custom: https://www.buymeacoffee.com/ecmel

.github/workflows/commit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
node-version: [20]
14+
os: [ubuntu-24.04, macos-latest, windows-latest]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Install node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm install
24+
- run: xvfb-run -a npm test
25+
if: runner.os == 'Linux'
26+
- run: npm test
27+
if: runner.os != 'Linux'

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Install Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 20
18+
- run: npm install
19+
- run: xvfb-run -a npm test
20+
- name: Publish
21+
if: success()
22+
run: npm run publish
23+
env:
24+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
out
3+
dist
4+
node_modules
5+
coverage
6+
.vscode-test/
7+
*.vsix

.vscode-test.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from "@vscode/test-cli";
2+
3+
export default defineConfig({
4+
files: "out/test/**/*.test.js",
5+
launchArgs: ["--disable-extensions"],
6+
mocha: { ui: "bdd", timeout: 60000 },
7+
});

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"ms-vscode.extension-test-runner",
5+
"ecmel.vscode-launcher"
6+
]
7+
}

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
9+
"preLaunchTask": "${defaultBuildTask}",
10+
"outFiles": ["${workspaceFolder}/out/**/*.js"]
11+
},
12+
{
13+
"name": "Extension Tests",
14+
"type": "extensionHost",
15+
"request": "launch",
16+
"args": [
17+
"--disable-extensions",
18+
"--extensionDevelopmentPath=${workspaceFolder}"
19+
],
20+
"preLaunchTask": "npm: pretest",
21+
"testConfiguration": "${workspaceFolder}/.vscode-test.mjs"
22+
}
23+
]
24+
}

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// Extension Configuration
3+
"files.exclude": { "out": false },
4+
"search.exclude": { "out": true },
5+
"typescript.tsc.autoDetect": "off",
6+
7+
// Sample Configuration
8+
"debug.internalConsoleOptions": "openOnSessionStart",
9+
"launcher.mappings": [
10+
{ "name": "Run Extension", "pattern": "extension\\.ts" },
11+
{ "name": "Extension Tests", "pattern": "\\.test\\.ts" }
12+
]
13+
}

.vscode/tasks.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "watch",
7+
"problemMatcher": "$tsc-watch",
8+
"isBackground": true,
9+
"presentation": { "reveal": "never" },
10+
"group": { "kind": "build", "isDefault": true }
11+
}
12+
]
13+
}

.vscodeignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.vscode/**
2+
.vscode-test/**
3+
src/**
4+
.gitignore
5+
.github
6+
.yarnrc
7+
**/tsconfig.json
8+
**/eslint.config.mjs
9+
**/*.map
10+
**/*.ts
11+
**/.vscode-test.*
12+
out/test/**
13+
coverage

0 commit comments

Comments
 (0)