Skip to content

Commit 948d520

Browse files
Cleanup code a bit and fix some type errors (#922)
* Update prettier version * Add Prettier ignore file * Optimize code * Cleanup imports * Move file * Run Prettier on entire codebase * Cleanup imports * Fix some type errors * Replace minimatch with picomatch * Simplify * Refactor * Fix typo This was assigning JS files to a CSS file list. This didn’t have any adverse affects aside from reading more file content to memory than necessary * Cleanup * Update to latest alpha in fixtures * Cleanup code
1 parent 8285ebc commit 948d520

File tree

93 files changed

+883
-2983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+883
-2983
lines changed

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages/*/dist
2+
packages/*/bin

.vscode/launch.json

+37-37
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
{
2-
"version": "0.2.0",
3-
// List of configurations. Add new configurations or edit existing ones.
4-
"configurations": [
5-
{
6-
"type": "extensionHost",
7-
"request": "launch",
8-
"name": "Launch Client",
9-
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-tailwindcss"],
11-
"stopOnEntry": false,
12-
"sourceMaps": true,
13-
"outFiles": ["${workspaceRoot}/packages/vscode-tailwindcss/dist/**/*.js"]
14-
// "preLaunchTask": "npm: dev"
15-
},
16-
{
17-
"type": "node",
18-
"request": "attach",
19-
"name": "Attach to Server 6011",
20-
"address": "localhost",
21-
"protocol": "inspector",
22-
"port": 6011,
23-
"sourceMaps": true,
24-
"outFiles": ["${workspaceRoot}/packages/vscode-tailwindcss/dist/**/*.js"]
25-
},
26-
{
27-
"type": "node",
28-
"request": "attach",
29-
"name": "Attach to Server 6012",
30-
"address": "localhost",
31-
"protocol": "inspector",
32-
"port": 6012,
33-
"sourceMaps": true,
34-
"outFiles": ["${workspaceRoot}/packages/vscode-tailwindcss/dist/**/*.js"]
35-
}
36-
]
37-
}
1+
{
2+
"version": "0.2.0",
3+
// List of configurations. Add new configurations or edit existing ones.
4+
"configurations": [
5+
{
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"name": "Launch Client",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}/packages/vscode-tailwindcss"],
11+
"stopOnEntry": false,
12+
"sourceMaps": true,
13+
"outFiles": ["${workspaceRoot}/packages/vscode-tailwindcss/dist/**/*.js"]
14+
// "preLaunchTask": "npm: dev"
15+
},
16+
{
17+
"type": "node",
18+
"request": "attach",
19+
"name": "Attach to Server 6011",
20+
"address": "localhost",
21+
"protocol": "inspector",
22+
"port": 6011,
23+
"sourceMaps": true,
24+
"outFiles": ["${workspaceRoot}/packages/vscode-tailwindcss/dist/**/*.js"]
25+
},
26+
{
27+
"type": "node",
28+
"request": "attach",
29+
"name": "Attach to Server 6012",
30+
"address": "localhost",
31+
"protocol": "inspector",
32+
"port": 6012,
33+
"sourceMaps": true,
34+
"outFiles": ["${workspaceRoot}/packages/vscode-tailwindcss/dist/**/*.js"]
35+
}
36+
]
37+
}

.vscode/tasks.json

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "npm",
6-
"script": "build",
7-
"group": "build",
8-
"presentation": {
9-
"panel": "dedicated",
10-
"reveal": "never"
11-
},
12-
"problemMatcher": ["$tsc"]
13-
},
14-
{
15-
"type": "npm",
16-
"script": "dev",
17-
"isBackground": true,
18-
"group": {
19-
"kind": "build",
20-
"isDefault": true
21-
},
22-
"presentation": {
23-
"panel": "dedicated",
24-
"reveal": "never"
25-
},
26-
"problemMatcher": ["$tsc-watch"]
27-
}
28-
]
29-
}
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "build",
7+
"group": "build",
8+
"presentation": {
9+
"panel": "dedicated",
10+
"reveal": "never"
11+
},
12+
"problemMatcher": ["$tsc"]
13+
},
14+
{
15+
"type": "npm",
16+
"script": "dev",
17+
"isBackground": true,
18+
"group": {
19+
"kind": "build",
20+
"isDefault": true
21+
},
22+
"presentation": {
23+
"panel": "dedicated",
24+
"reveal": "never"
25+
},
26+
"problemMatcher": ["$tsc-watch"]
27+
}
28+
]
29+
}

package-lock.json

+114-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
"devDependencies": {
88
"@npmcli/package-json": "^5.0.0",
9+
"prettier": "^3.2.5",
910
"semver": "^7.5.4"
1011
},
1112
"prettier": {

0 commit comments

Comments
 (0)