-
Notifications
You must be signed in to change notification settings - Fork 28
/
package.json
203 lines (203 loc) · 6.22 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"name": "vscode-react-component-generator",
"displayName": "VSCode React Component Generator",
"description": "Generates React component files automatically",
"version": "0.0.5",
"publisher": "abdullahceylan",
"author": {
"name": "Abdullah Ceylan",
"email": "[email protected]"
},
"homepage": "https://github.com/abdullahceylan/vscode-react-component-generator",
"galleryBanner": {
"color": "#0273D4",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/abdullahceylan/vscode-react-component-generator.git"
},
"bugs": {
"url": "https://github.com/abdullahceylan/vscode-react-component-generator/issues",
"email": "[email protected]"
},
"license": "MIT",
"engines": {
"vscode": "^1.29.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"vscode-react",
"react",
"react component",
"react generate component",
"redux",
"stateless",
"typescript"
],
"activationEvents": [
"onCommand:extension.genReactStatelessComponentFiles",
"onCommand:extension.genReactReduxStatelessComponentFiles",
"onCommand:extension.genReactTypeScriptComponentFiles",
"onCommand:extension.genReactTypeScriptRemixComponentFiles",
"onCommand:extension.genReactTypeScriptRemixRouteComponentFiles"
],
"main": "./out/src/extension",
"icon": "assets/images/icon.png",
"contributes": {
"configuration": {
"type": "object",
"title": "AC React Component Generator",
"properties": {
"ACReactComponentGenerator.global.quotes": {
"type": "string",
"enum": [
"single",
"double"
],
"default": "single",
"description": "Options: `single` or `double` Result: `'` or `\"`"
},
"ACReactComponentGenerator.global.generateFolder": {
"type": "boolean",
"default": true,
"description": "Generate or not separate folder for newly created component"
},
"ACReactComponentGenerator.global.lifecycleType": {
"type": "string",
"default": "reactv16",
"enum": [
"legacy",
"reactv16"
],
"description": "The lifecycle type of generated component. `legacy` contains componentWillReceiveProps, componentWillMount etc."
},
"ACReactComponentGenerator.mainFile.create": {
"type": "boolean",
"default": true,
"description": "Whether to generate component's main file or not. e.g.: ComponentName.(extension)"
},
"ACReactComponentGenerator.mainFile.extension": {
"type": "string",
"enum": [
"TypeScript (.tsx)",
"JSX (.jsx)"
],
"default": "TypeScript (.tsx)",
"description": "The extension of generated component file"
},
"ACReactComponentGenerator.styleFile.create": {
"type": "boolean",
"default": true,
"description": "Whether to generate component's style file or not. e.g.: ComponentName.(extension)"
},
"ACReactComponentGenerator.styleFile.type": {
"type": "string",
"enum": [
"standard (.css)",
"styled-components/emotion (.js)",
"sass (.sass)",
"sass (.scss)",
"less (.less)"
],
"default": "standard (.css)",
"description": "The type of stylesheet file to create"
},
"ACReactComponentGenerator.styleFile.suffix": {
"type": "string",
"enum": [
"none",
".module",
".styles"
],
"default": "none",
"description": "The suffix to add to the end of the stylesheet filename. Default: ComponentName.modules.(extension)"
},
"ACReactComponentGenerator.indexFile.create": {
"type": "boolean",
"default": true,
"description": "Whether to generate component's index file or not. e.g.: index.(extension)"
},
"ACReactComponentGenerator.indexFile.extension": {
"type": "string",
"enum": [
"Vanilla (.js)",
"TypeScript (.ts)"
],
"default": "ts",
"description": "The extension of generated component index file"
}
}
},
"commands": [
{
"command": "extension.genReactStatelessComponentFiles",
"title": "New React Stateless Component"
},
{
"command": "extension.genReactReduxStatelessComponentFiles",
"title": "New React Stateless Component with Redux"
},
{
"command": "extension.genReactTypeScriptComponentFiles",
"title": "New React TypeScript Component"
},
{
"command": "extension.genReactTypeScriptRemixComponentFiles",
"title": "New React TypeScript Remix Component"
},
{
"command": "extension.genReactTypeScriptRemixRouteComponentFiles",
"title": "New React TypeScript Remix Route Component"
}
],
"menus": {
"explorer/context": [
{
"command": "extension.genReactStatelessComponentFiles",
"group": "navigation"
},
{
"command": "extension.genReactReduxStatelessComponentFiles",
"group": "navigation"
},
{
"command": "extension.genReactTypeScriptComponentFiles",
"group": "navigation"
},
{
"command": "extension.genReactTypeScriptRemixComponentFiles",
"group": "navigation"
},
{
"command": "extension.genReactTypeScriptRemixRouteComponentFiles",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^22.7.5",
"eslint": "^9.12.0",
"mocha": "^2.3.3",
"typescript": "^5.6.3",
"vscode": "^1.1.37"
},
"dependencies": {
"change-case": "^3.0.2",
"fs": "^0.0.1-security",
"fs-extra": "^11.2.0",
"lodash": "^4.17.11",
"rxjs": "^5.0.0-rc.1"
}
}