-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
109 lines (109 loc) · 3.63 KB
/
package.json
File metadata and controls
109 lines (109 loc) · 3.63 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
{
"name": "styled-components-extractor",
"displayName": "Styled-Components Extractor",
"description": "Generate styled-components from JSX tags. A faster styled-component workflow.",
"version": "0.1.1",
"publisher": "FallenMax",
"engines": {
"vscode": "^1.31.0"
},
"categories": [
"Other"
],
"keywords": [
"styled-components",
"extractor",
"snippet"
],
"activationEvents": [
"onCommand:styledComponentsExtractor.extract",
"onCommand:styledComponentsExtractor.extractExported"
],
"repository": {
"type": "git",
"url": "https://github.com/FallenMax/styled-components-extractor"
},
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "styledComponentsExtractor.extractToClipboard",
"title": "Extract styled-components to clipboard"
},
{
"command": "styledComponentsExtractor.extractExportedToClipboard",
"title": "Extract exported styled-components to clipboard"
},
{
"command": "styledComponentsExtractor.extractToSameFile",
"title": "Extract styled-components to the same file"
},
{
"command": "styledComponentsExtractor.extractToSeparateFile",
"title": "Extract exported styled-components to a separate file"
}
],
"configuration": {
"type": "object",
"title": "Styled-Components Extractor configuration",
"properties": {
"styledComponentsExtractor.separateFile.advanced.inputFileRegex": {
"type": "string",
"default": "",
"markdownDescription": "A regex pattern used to capture parts of the input file's name when extracting to a separate file. The pattern is matched against the file's name excluding the extension. The contents of the regex's capture groups can be referenced in the output file name as `$1`, `$2`, etc. Can be left blank if not needed.",
"order": 3
},
"styledComponentsExtractor.separateFile.outputFile": {
"type": "string",
"default": "$name.styles",
"markdownDescription": "The name of the file, excluding the extension, to place extracted components. You can use `$name` to reference the name of the input file, excluding its extension. If `#styledComponentsExtractor.separateFile.advanced.inputFileRegex#` is provided, you can also use `$1`, `$2`.",
"order": 2
},
"styledComponentsExtractor.addImportStatement": {
"type": "boolean",
"default": "true",
"markdownDescription": "Add `import styled from 'styled-component'` statement if variable `styled` is unbound. Only applies when extracting to clipboard.",
"order": 1
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile && npm run test",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "jest",
"test:watch": "jest --watch"
},
"devDependencies": {
"@types/babel__traverse": "^7.18.3",
"@types/jest": "^29.2.4",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"eslint": "^8.30.0",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"typescript": "^4.9.4",
"vscode": "^1.1.29"
},
"dependencies": {
"@babel/parser": "^7.20.7",
"@babel/traverse": "^7.20.10"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"icon": "images/logo.png"
}