Skip to content

Commit 003ef3b

Browse files
authored
Merge pull request #148 from UncleBats/add-devcontainer
Add devcontainer
2 parents c08526e + 21f01eb commit 003ef3b

File tree

5 files changed

+542
-206
lines changed

5 files changed

+542
-206
lines changed

.devcontainer/devcontainer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "Copilot Token Tracker Extension",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
4+
"features": {
5+
"ghcr.io/devcontainers/features/git:1": {},
6+
"ghcr.io/devcontainers/features/powershell:1": {}
7+
},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"dbaeumer.vscode-eslint",
12+
"esbenp.prettier-vscode",
13+
"ms-vscode.extension-test-runner",
14+
"amodio.tsc-problem-matcher",
15+
"github.copilot",
16+
"github.copilot-chat"
17+
],
18+
"settings": {
19+
"editor.formatOnSave": true,
20+
"editor.defaultFormatter": "esbenp.prettier-vscode",
21+
"eslint.enable": true,
22+
"typescript.tsdk": "node_modules/typescript/lib"
23+
}
24+
}
25+
},
26+
"postCreateCommand": "npm install",
27+
"remoteUser": "node"
28+
}

.gitattributes

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Enforce consistent line endings across platforms
2+
# Default: LF for all text files
3+
* text=auto eol=lf
4+
5+
# Windows script files should use CRLF
6+
*.ps1 text eol=crlf
7+
*.bat text eol=crlf
8+
*.cmd text eol=crlf
9+
10+
# Keep images and binaries untouched
11+
*.png binary
12+
*.jpg binary
13+
*.jpeg binary
14+
*.gif binary
15+
*.svg text
16+
*.ico binary
17+
*.zip binary
18+
*.gz binary
19+
*.tar binary
20+
*.pdf binary

.vscode/tasks.json

Lines changed: 77 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,80 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "npm compile",
8-
"type": "process",
9-
"command": "powershell.exe",
10-
"args": [
11-
"npm run compile"
12-
],
13-
"group": {
14-
"kind": "build",
15-
"isDefault": true
16-
},
17-
"presentation": {
18-
"reveal": "silent"
19-
},
20-
"problemMatcher": []
21-
},
22-
{
23-
"label": "watch",
24-
"dependsOn": [
25-
"npm: watch:tsc",
26-
"npm: watch:esbuild"
27-
],
28-
"presentation": {
29-
"reveal": "never"
30-
},
31-
"group": "build"
32-
},
33-
{
34-
"type": "npm",
35-
"script": "watch:esbuild",
36-
"group": "build",
37-
"problemMatcher": [],
38-
"isBackground": true,
39-
"label": "npm: watch:esbuild",
40-
"presentation": {
41-
"group": "watch",
42-
"reveal": "never"
43-
}
44-
},
45-
{
46-
"type": "npm",
47-
"script": "watch:tsc",
48-
"group": "build",
49-
"problemMatcher": "$tsc-watch",
50-
"isBackground": true,
51-
"label": "npm: watch:tsc",
52-
"presentation": {
53-
"group": "watch",
54-
"reveal": "never"
55-
}
56-
},
57-
{
58-
"type": "npm",
59-
"script": "watch-tests",
60-
"problemMatcher": "$tsc-watch",
61-
"isBackground": true,
62-
"presentation": {
63-
"reveal": "never",
64-
"group": "watchers"
65-
},
66-
"group": "build"
67-
},
68-
{
69-
"label": "tasks: watch-tests",
70-
"dependsOn": [
71-
"npm: watch",
72-
"npm: watch-tests"
73-
],
74-
"problemMatcher": []
75-
}
76-
]
77-
}
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "npm compile",
8+
"type": "npm",
9+
"script": "compile",
10+
"group": {
11+
"kind": "build",
12+
"isDefault": true
13+
},
14+
"presentation": {
15+
"reveal": "silent"
16+
},
17+
"problemMatcher": []
18+
},
19+
{
20+
"label": "watch",
21+
"dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"],
22+
"presentation": {
23+
"reveal": "never"
24+
},
25+
"group": "build"
26+
},
27+
{
28+
"type": "npm",
29+
"script": "watch",
30+
"group": "build",
31+
"problemMatcher": [],
32+
"isBackground": true,
33+
"label": "npm: watch",
34+
"presentation": {
35+
"group": "watch",
36+
"reveal": "never"
37+
}
38+
},
39+
{
40+
"type": "npm",
41+
"script": "watch:esbuild",
42+
"group": "build",
43+
"problemMatcher": [],
44+
"isBackground": true,
45+
"label": "npm: watch:esbuild",
46+
"presentation": {
47+
"group": "watch",
48+
"reveal": "never"
49+
}
50+
},
51+
{
52+
"type": "npm",
53+
"script": "watch:tsc",
54+
"group": "build",
55+
"problemMatcher": "$tsc-watch",
56+
"isBackground": true,
57+
"label": "npm: watch:tsc",
58+
"presentation": {
59+
"group": "watch",
60+
"reveal": "never"
61+
}
62+
},
63+
{
64+
"type": "npm",
65+
"script": "watch-tests",
66+
"problemMatcher": "$tsc-watch",
67+
"isBackground": true,
68+
"presentation": {
69+
"reveal": "never",
70+
"group": "watchers"
71+
},
72+
"group": "build"
73+
},
74+
{
75+
"label": "tasks: watch-tests",
76+
"dependsOn": ["npm: watch", "npm: watch-tests"],
77+
"problemMatcher": []
78+
}
79+
]
80+
}

0 commit comments

Comments
 (0)