-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
130 lines (130 loc) · 4.18 KB
/
package.json
File metadata and controls
130 lines (130 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"name": "fast-css-edit",
"displayName": "Fast CSS Edit",
"description": "Quickly view and edit CSS declarations in a popup by hovering or clicking on className attributes in React files. Boost your workflow with instant style previews!",
"version": "0.0.5",
"publisher": "keyx",
"repository": {
"type": "git",
"url": "https://github.com/keyx-dev/fast-css-edit"
},
"preview": true,
"engines": {
"vscode": "^1.99.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:javascriptreact",
"onLanguage:typescriptreact",
"onLanguage:html",
"onCommand:fast-css-edit.deleteCssRule"
],
"icon": "fast-css-edit-logo.png",
"contributes": {
"configuration": {
"title": "Fast CSS Edit",
"properties": {
"fast-css-edit.defaultStyleExtension": {
"type": "string",
"enum": [
"css",
"scss",
"sass"
],
"default": "css",
"description": "Default extension for the style file to look for or create if no import is found."
},
"fast-css-edit.defaultModuleStyleExtension": {
"type": "string",
"enum": [
"css",
"scss",
"sass"
],
"default": "css",
"description": "Default extension for the CSS module style file to look for or create if no import is found."
},
"fast-css-edit.styleFileNamingConvention": {
"type": "string",
"default": "{componentName}",
"description": "Naming convention for the style file when no import is found. Use {componentName} as a placeholder."
},
"fast-css-edit.cssModuleIdentifier": {
"type": "string",
"default": "styles",
"description": "The common identifier used when importing CSS Modules (e.g., 'styles' in 'import styles from ...')."
},
"fast-css-edit.enableFileCreation": {
"type": "boolean",
"default": true,
"description": "Automatically create the style file if it doesn't exist."
},
"fast-css-edit.classNameExtractionRegex": {
"type": "string",
"default": "",
"description": "(Optional) Advanced Regex to extract class names from className/class attributes. Leave empty for default behavior. Ensure capture groups match expectations if used."
}
}
},
"commands": [
{
"command": "fast-css-edit.removeClass",
"title": "Fast CSS Edit: Remove Class and Definition"
},
{
"command": "fast-css-edit.deleteRuleAndClass",
"title": "FCE: Delete rule & class"
}
],
"menus": {
"editor/context": [
{
"command": "fast-css-edit.deleteRuleAndClass",
"when": "editorTextFocus",
"group": "navigation@2"
}
]
},
"keybindings": [
{
"command": "fast-css-edit.deleteRuleAndClass",
"key": "ctrl+shift+d",
"mac": "cmd+shift+d",
"when": "editorTextFocus"
}
]
},
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "pnpm run package",
"compile": "pnpm run check-types && pnpm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "pnpm run check-types && pnpm run lint && node esbuild.js --production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test",
"publish": "vsce publish"
},
"devDependencies": {
"@types/vscode": "^1.99.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"eslint": "^9.23.0",
"esbuild": "^0.25.1",
"npm-run-all": "^4.1.5",
"typescript": "^5.8.2",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1"
}
}