-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 2.83 KB
/
package.json
File metadata and controls
83 lines (83 loc) · 2.83 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
{
"name": "css-modules-companion",
"displayName": "CSS Modules Companion",
"description": "Utilities for working with CSS Modules",
"version": "0.0.3",
"publisher": "GiacoCorsiglia",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/GiacoCorsiglia/css-modules-companion.git"
},
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:css-modules-companion.toggleBetweenComponentAndCssModule",
"onCommand:css-modules-companion.importCorrespondingCssModule"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "CSS Modules Companion",
"properties": {
"css-modules-companion.fileExtension": {
"enum": [
"auto",
"css",
"scss",
"sass",
"less",
"styl"
],
"default": "auto",
"description": "The file extension to use when searching for or creating a corresponding CSS module file. If set to \"auto\", the extension will attempt to identify whatever CSS preprocessor appears to be in use the current workspace."
},
"css-modules-companion.importName": {
"default": "css",
"type": "string",
"markdownDescription": "The `$NAME` in `import $NAME from \"file.module.css\";`"
}
}
},
"commands": [
{
"command": "css-modules-companion.toggleBetweenComponentAndCssModule",
"title": "Toggle Between Component and Corresponding CSS Module",
"enablement": "editorTextFocus && (editorLangId == typescript || editorLangId == typescriptreact || editorLangId == javascript || editorLangId == javascriptreact || resourceFilename =~ /\\.module\\.(css|scss|sass|less|styl)$/)"
},
{
"command": "css-modules-companion.importCorrespondingCssModule",
"title": "Import Corresponding CSS Module",
"enablement": "editorTextFocus && (editorLangId == typescript || editorLangId == typescriptreact || editorLangId == javascript || editorLangId == javascriptreact)"
}
],
"keybindings": [
{
"command": "css-modules-companion.toggleBetweenComponentAndCssModule",
"key": "ctrl+;",
"mac": "cmd+;",
"when": "editorTextFocus && (editorLangId == typescript || editorLangId == typescriptreact || editorLangId == javascript || editorLangId == javascriptreact || resourceFilename =~ /\\.module\\.(css|scss|sass|less|styl)$/)"
},
{
"command": "css-modules-companion.importCorrespondingCssModule",
"key": "ctrl+shift+;",
"mac": "cmd+shift+;",
"when": "editorTextFocus && (editorLangId == typescript || editorLangId == typescriptreact || editorLangId == javascript || editorLangId == javascriptreact)"
}
]
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^12.11.7",
"@types/vscode": "^1.66.0",
"typescript": "^4.6.4"
}
}