Skip to content

Commit 43db51e

Browse files
committed
Project Structure Changes
- Global extension settings are now managed in the root package.json file. - The existing extension layer now only manages dependencies specific to the source code. - Relevant commands, test code, and more have been reworked.
1 parent dab064e commit 43db51e

23 files changed

Lines changed: 1761 additions & 1511 deletions

.vscodeignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Source code files - only include compiled output
2+
src/src/
3+
src/__mocks__/
4+
src/*.test.ts
5+
src/*.test.js
6+
src/*.spec.ts
7+
src/*.spec.js
8+
9+
# Development dependencies
10+
src/node_modules/
11+
12+
# Development config files
13+
src/tsconfig.json
14+
src/jest.config.js
15+
src/.gitignore
16+
src/yarn.lock
17+
src/package-lock.json
18+
19+
# Old build outputs (no longer used)
20+
src/out/
21+
22+
# Development files
23+
.env
24+
.env.*
25+
!.env.example
26+
27+
# VS Code specific
28+
.vscode-test/
29+
30+
# Git
31+
.git/
32+
.gitignore
33+
34+
# Documentation and development (keep README for marketplace)
35+
CLAUDE.md
36+
37+
# CI/CD
38+
.github/
39+
.gitlab-ci.yml
40+
.travis.yml
41+
.circleci/
42+
43+
# IDE files
44+
.idea/
45+
*.swp
46+
*.swo
47+
*~
48+
49+
# OS files
50+
.DS_Store
51+
Thumbs.db
52+
53+
# Temporary files
54+
tmp/
55+
temp/
56+
*.tmp
57+
58+
# Source maps
59+
*.map
60+
61+
# Other development files
62+
justfile
63+
.devcontainer/
64+
65+
# Test coverage
66+
coverage/
67+
.nyc_output/
68+
69+
# Logs
70+
*.log

justfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ set dotenv-load
33
root_dir := justfile_directory()
44
extension_dir := root_dir + "/src"
55

6-
deps:
6+
deps: deps-extension deps-root
7+
8+
deps-extension:
79
cd "{{ extension_dir }}" && yarn install
810

11+
deps-root:
12+
cd "{{ root_dir }}" && yarn install
13+
914
install-package:
10-
cd "{{ extension_dir }}" && yarn install-package
15+
cd "{{ root_dir }}" && yarn install-package
1116

1217
package:
13-
cd "{{ extension_dir }}" && yarn compile && yarn package
18+
cd "{{ extension_dir }}" && yarn compile
19+
cd "{{ root_dir }}" && yarn package
1420

1521
test mode="":
1622
#!/usr/bin/env bash
@@ -25,7 +31,7 @@ test mode="":
2531

2632
publish target="both":
2733
#!/usr/bin/env bash
28-
cd "{{ extension_dir }}"
34+
cd "{{ root_dir }}"
2935
if [ "{{ target }}" = "vsce" ] || [ "{{ target }}" = "both" ]; then
3036
echo "Publishing to VS Code Marketplace..."
3137
if [ -n "$VSCE_ACCESS_TOKEN" ]; then

package.json

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
{
2+
"name": "tlog-vscode",
3+
"displayName": "tlog",
4+
"description": "Transient Log - Quick console.log with [TLOG] prefix for easy identification and removal",
5+
"version": "0.2.0",
6+
"publisher": "KubrickCode",
7+
"license": "MIT",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/KubrickCode/tlog.git"
11+
},
12+
"engines": {
13+
"vscode": "^1.90.0"
14+
},
15+
"categories": [
16+
"Snippets",
17+
"Other"
18+
],
19+
"keywords": [
20+
"console.log",
21+
"logging",
22+
"debug",
23+
"tlog",
24+
"temporary"
25+
],
26+
"activationEvents": [],
27+
"main": "./out/src/main.js",
28+
"contributes": {
29+
"commands": [
30+
{
31+
"command": "tlog.insertTlog",
32+
"title": "Insert TLOG",
33+
"category": "tlog"
34+
},
35+
{
36+
"command": "tlog.removeAllTlogs",
37+
"title": "Remove All TLOGs",
38+
"category": "tlog"
39+
},
40+
{
41+
"command": "tlog.refreshTlogTree",
42+
"title": "Refresh",
43+
"icon": "$(refresh)"
44+
},
45+
{
46+
"command": "tlog.openTlogLocation",
47+
"title": "Open Location"
48+
},
49+
{
50+
"command": "tlog.removeFilesTlogs",
51+
"title": "Remove TLOGs from File",
52+
"icon": "$(trash)"
53+
},
54+
{
55+
"command": "tlog.removeDirectoryTlogs",
56+
"title": "Remove TLOGs from Directory",
57+
"icon": "$(trash)"
58+
},
59+
{
60+
"command": "tlog.removeSingleTlog",
61+
"title": "Remove This TLOG",
62+
"icon": "$(close)"
63+
}
64+
],
65+
"viewsContainers": {
66+
"activitybar": [
67+
{
68+
"id": "tlogContainer",
69+
"title": "TLOG",
70+
"icon": "$(debug-console)"
71+
}
72+
]
73+
},
74+
"views": {
75+
"tlogContainer": [
76+
{
77+
"id": "tlogExplorer",
78+
"name": "TLOG Explorer",
79+
"when": "workspaceFolderCount > 0"
80+
}
81+
]
82+
},
83+
"menus": {
84+
"view/title": [
85+
{
86+
"command": "tlog.refreshTlogTree",
87+
"when": "view == tlogExplorer",
88+
"group": "navigation"
89+
}
90+
],
91+
"view/item/context": [
92+
{
93+
"command": "tlog.removeFilesTlogs",
94+
"when": "view == tlogExplorer && viewItem == tlogFile",
95+
"group": "inline"
96+
},
97+
{
98+
"command": "tlog.removeDirectoryTlogs",
99+
"when": "view == tlogExplorer && viewItem == tlogDirectory",
100+
"group": "inline"
101+
},
102+
{
103+
"command": "tlog.removeSingleTlog",
104+
"when": "view == tlogExplorer && viewItem == tlogItem",
105+
"group": "inline"
106+
}
107+
]
108+
},
109+
"keybindings": [
110+
{
111+
"command": "tlog.insertTlog",
112+
"key": "ctrl+shift+t",
113+
"mac": "cmd+shift+t",
114+
"when": "editorTextFocus"
115+
},
116+
{
117+
"command": "tlog.removeAllTlogs",
118+
"key": "ctrl+shift+r",
119+
"mac": "cmd+shift+r",
120+
"when": "editorTextFocus"
121+
}
122+
]
123+
},
124+
"scripts": {
125+
"package": "vsce package --out versions/",
126+
"install-package": "code --install-extension versions/tlog-vscode-$npm_package_version.vsix",
127+
"vsce-publish": "vsce publish",
128+
"ovsx-publish": "ovsx publish"
129+
},
130+
"devDependencies": {
131+
"@vscode/vsce": "3.0.0"
132+
},
133+
"dependencies": {
134+
"@vscode/ripgrep": "1.15.9"
135+
}
136+
}

src/package.json

Lines changed: 4 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,18 @@
11
{
2-
"name": "tlog-vscode",
3-
"displayName": "tlog",
2+
"name": "tlog-vscode-src-code",
43
"description": "Transient Log - Quick console.log with [TLOG] prefix for easy identification and removal",
5-
"version": "0.2.0",
6-
"publisher": "KubrickCode",
7-
"license": "MIT",
8-
"repository": {
9-
"type": "git",
10-
"url": "https://github.com/KubrickCode/tlog.git"
11-
},
12-
"engines": {
13-
"vscode": "^1.90.0"
14-
},
15-
"categories": [
16-
"Snippets",
17-
"Other"
18-
],
19-
"keywords": [
20-
"console.log",
21-
"logging",
22-
"debug",
23-
"tlog",
24-
"temporary"
25-
],
26-
"activationEvents": [],
27-
"main": "./out/src/main.js",
28-
"contributes": {
29-
"commands": [
30-
{
31-
"command": "tlog.insertTlog",
32-
"title": "Insert TLOG",
33-
"category": "tlog"
34-
},
35-
{
36-
"command": "tlog.removeAllTlogs",
37-
"title": "Remove All TLOGs",
38-
"category": "tlog"
39-
},
40-
{
41-
"command": "tlog.refreshTlogTree",
42-
"title": "Refresh",
43-
"icon": "$(refresh)"
44-
},
45-
{
46-
"command": "tlog.openTlogLocation",
47-
"title": "Open Location"
48-
},
49-
{
50-
"command": "tlog.removeFilesTlogs",
51-
"title": "Remove TLOGs from File",
52-
"icon": "$(trash)"
53-
},
54-
{
55-
"command": "tlog.removeDirectoryTlogs",
56-
"title": "Remove TLOGs from Directory",
57-
"icon": "$(trash)"
58-
},
59-
{
60-
"command": "tlog.removeSingleTlog",
61-
"title": "Remove This TLOG",
62-
"icon": "$(close)"
63-
}
64-
],
65-
"viewsContainers": {
66-
"activitybar": [
67-
{
68-
"id": "tlogContainer",
69-
"title": "TLOG",
70-
"icon": "$(debug-console)"
71-
}
72-
]
73-
},
74-
"views": {
75-
"tlogContainer": [
76-
{
77-
"id": "tlogExplorer",
78-
"name": "TLOG Explorer",
79-
"when": "workspaceFolderCount > 0"
80-
}
81-
]
82-
},
83-
"menus": {
84-
"view/title": [
85-
{
86-
"command": "tlog.refreshTlogTree",
87-
"when": "view == tlogExplorer",
88-
"group": "navigation"
89-
}
90-
],
91-
"view/item/context": [
92-
{
93-
"command": "tlog.removeFilesTlogs",
94-
"when": "view == tlogExplorer && viewItem == tlogFile",
95-
"group": "inline"
96-
},
97-
{
98-
"command": "tlog.removeDirectoryTlogs",
99-
"when": "view == tlogExplorer && viewItem == tlogDirectory",
100-
"group": "inline"
101-
},
102-
{
103-
"command": "tlog.removeSingleTlog",
104-
"when": "view == tlogExplorer && viewItem == tlogItem",
105-
"group": "inline"
106-
}
107-
]
108-
},
109-
"keybindings": [
110-
{
111-
"command": "tlog.insertTlog",
112-
"key": "ctrl+shift+t",
113-
"mac": "cmd+shift+t",
114-
"when": "editorTextFocus"
115-
},
116-
{
117-
"command": "tlog.removeAllTlogs",
118-
"key": "ctrl+shift+r",
119-
"mac": "cmd+shift+r",
120-
"when": "editorTextFocus"
121-
}
122-
]
123-
},
4+
"version": "0.0.1",
1245
"scripts": {
1256
"compile": "tsc -p ./",
126-
"package": "vsce package --out versions/",
127-
"install-package": "code --install-extension versions/tlog-vscode-$npm_package_version.vsix",
1287
"test": "jest",
129-
"test:watch": "jest --watch",
130-
"vsce-publish": "vsce publish",
131-
"ovsx-publish": "ovsx publish"
8+
"test:watch": "jest --watch"
1329
},
13310
"devDependencies": {
13411
"@types/jest": "^29.0.0",
13512
"@types/node": "24.3.0",
13613
"@types/vscode": "^1.90.0",
13714
"jest": "^29.0.0",
13815
"ts-jest": "^29.0.0",
139-
"typescript": "5.9.2",
140-
"@vscode/vsce": "3.0.0"
141-
},
142-
"dependencies": {
143-
"@vscode/ripgrep": "1.15.9"
16+
"typescript": "5.9.2"
14417
}
14518
}

src/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"target": "ES2020",
5-
"outDir": "out",
5+
"outDir": "../out",
66
"lib": ["ES2020", "dom"],
77
"sourceMap": true,
88
"rootDir": ".",

0 commit comments

Comments
 (0)