-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
178 lines (178 loc) · 5.67 KB
/
package.json
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"name": "react-file-structure",
"displayName": "React file structure creator",
"description": "Creates file structure for react project",
"version": "2.0.0",
"license": "(ISC OR GPL-3.0)",
"publisher": "DenisBratchikov",
"repository": {
"type": "git",
"url": "https://github.com/DenisBratchikov/vscode-react-structure-creator"
},
"engines": {
"vscode": "^1.34.0"
},
"categories": [
"Other"
],
"keywords": [
"react",
"typescript",
"file structure"
],
"activationEvents": [
"onCommand:extension.create",
"onCommand:extension.createCustom"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "extension.create",
"title": "Create react file structure"
},
{
"command": "extension.createCustom",
"title": "Create react file structure with options"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.create",
"group": "React_file_structure_creator@1",
"when": "resourceExtname == ''"
},
{
"command": "extension.createCustom",
"group": "React_file_structure_creator@1",
"when": "resourceExtname == ''"
}
]
},
"configuration": {
"title": "React File Structure",
"properties": {
"react-file-structure.Component File Extension": {
"type": "string",
"default": ".tsx",
"description": "Extension for react components",
"enum": [
".js",
".jsx",
".tsx"
],
"enumDescriptions": [
"Create .js files for react components",
"Create .jsx files for react components",
"Create .tsx files for react components"
]
},
"react-file-structure.Component Function": {
"type": "string",
"default": "ARROW_DEFAULT",
"description": "Function for react components",
"enum": [
"ARROW_DEFAULT",
"ARROW_NAMED",
"DECLARATION_DEFAULT",
"DECLARATION_NAMED"
],
"enumDescriptions": [
"Arrow function with default import",
"Arrow function with named import",
"Function declaration with default import",
"Function declaration with named import"
]
},
"react-file-structure.Index File": {
"type": "string",
"default": "NONE",
"description": "Use index file for the component. With 'COMPONENT' value last input value in path is considered as the folder name",
"enum": [
"NONE",
"COMPONENT",
"EXPORTS"
],
"enumDescriptions": [
"Do not use index files",
"Use index files for the component content",
"Create named component and index file with the exports"
]
},
"react-file-structure.Styles File Extension": {
"type": "string",
"default": ".css",
"description": "Extenstion for the styles files. If not set, styles files are not created"
},
"react-file-structure.Styles File Name": {
"type": "string",
"default": "",
"description": "If set, all styles files will be named as this value. Otherwise, styles files will be named as component name"
},
"react-file-structure.Styles File Folder": {
"type": "string",
"default": "",
"description": "Folder for grouping styles files. Creates in component folder if not specified."
},
"react-file-structure.Component Types": {
"type": "string",
"default": "FILE",
"description": "Types file usage",
"enum": [
"NONE",
"INLINE",
"FILE"
],
"enumDescriptions": [
"Do not create types for the component",
"Create types in the component file",
"Create types in the separate file"
]
},
"react-file-structure.Types File Name": {
"type": "string",
"default": "",
"description": "If set, all types files will be named as this value. Otherwise, types files will be named as component name with .d.ts extension"
},
"react-file-structure.Types File Folder": {
"type": "string",
"default": "",
"description": "Folder for grouping TypeScript interface files. Creates in component folder, if not specified"
},
"react-file-structure.Test File": {
"type": "boolean",
"default": false,
"description": "Create test files for components"
},
"react-file-structure.Test File Folder": {
"type": "string",
"default": "",
"description": "Folder for grouping test files. Creates in component folder, if not specified"
},
"react-file-structure.Root Path": {
"type": "string",
"default": null,
"description": "Base folder path. From this folder extension calcs path to component (vscode project path by default)"
},
"react-file-structure.Use Snippets": {
"type": "boolean",
"default": true,
"description": "Use pre-defined snippets in the created files"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "tslint -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^10.17.60",
"@types/vscode": "^1.34.0",
"tslint": "^5.16.0",
"typescript": "^3.9.10"
}
}