Skip to content

Commit b6f73ce

Browse files
authored
Merge pull request microsoft#131 from jasonwilliams/improveDevEx
Improve Developer Experience when debugging
2 parents cbb662e + 7d6153e commit b6f73ce

File tree

6 files changed

+29
-17
lines changed

6 files changed

+29
-17
lines changed

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ node_modules/
33
*.swp
44
*.swo
55
.DS_Store
6-
*.log
6+
*.map
77
log.txt
88

99
test-workspace

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "attach",
7+
"name": "Debug Styled Plugin",
8+
"skipFiles": ["<node_internals>/**"],
9+
"outFiles": ["${workspaceFolder}/lib/**/*.js"],
10+
"port": 9229,
11+
"preLaunchTask": "npm: watch:compile"
12+
}
13+
]
14+
}

.vscode/settings.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77
"type": "npm",
88
"script": "watch:compile",
99
"problemMatcher": [
10-
"$tsc-watch"
11-
]
10+
{
11+
"base": "$tsc-watch",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": "Starting compilation in watch mode",
15+
"endsPattern": "Watching\\sfor\\sfile\\schanges\\."
16+
}
17+
}
18+
],
19+
"isBackground": true
1220
}
1321
]
14-
}
22+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TypeScript server plugin that adds intellisense to [styled component](https://st
44

55
![](documentation/preview.gif)
66

7-
![Build Status](https://github.com/github/docs/actions/workflows/ci.yml/badge.svg)
7+
![Build Status](https://github.com/microsoft/typescript-styled-plugin/actions/workflows/ci.yml/badge.svg)
88

99
**Features**
1010

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"outDir": "lib",
66
"rootDir": "src",
77
"strict": true,
8-
"declaration": true
8+
"declaration": true,
9+
"sourceMap": true
910
},
1011
"exclude": ["lib", "e2e", "node_modules", "test-workspace"]
1112
}

0 commit comments

Comments
 (0)