-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpackage.json
More file actions
139 lines (139 loc) · 4.16 KB
/
package.json
File metadata and controls
139 lines (139 loc) · 4.16 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
131
132
133
134
135
136
137
138
139
{
"name": "react-component-generator",
"displayName": "React Component Generator",
"description": "Generates files needed for new React components",
"author": {
"name": "AndrewMcGoveran"
},
"version": "1.1.1",
"engines": {
"vscode": "^1.51.0"
},
"categories": [
"Other"
],
"keywords": [
"react",
"component",
"generator",
"typescript"
],
"publisher": "AndrewMcGoveran",
"bugs:url": "https://github.com/andrewmcgov/react-component-generator/issues",
"activationEvents": [
"onCommand:extension.generateComponent",
"onCommand:extension.generateStories"
],
"main": "./dist/extension.js",
"icon": "assets/images/icon.png",
"contributes": {
"commands": [
{
"command": "extension.generateComponent",
"title": "Generate React component"
},
{
"command": "extension.generateStories",
"title": "Generate Storybook stories file"
}
],
"menus": {
"editor/context": [
{
"command": "extension.generateComponent",
"group": "navigation@5"
},
{
"command": "extension.generateStories",
"group": "navigation@6"
}
],
"explorer/context": [
{
"command": "extension.generateComponent",
"group": "2_workspace"
},
{
"command": "extension.generateStories",
"group": "2_workspace"
}
]
},
"configuration": {
"title": "react-component-generator",
"properties": {
"reactComponentGenerator.language": {
"type": "string",
"default": "ts",
"enum": [
"ts",
"js"
],
"description": "Specifies if components should be generated in TypeScript or JavaScript."
},
"reactComponentGenerator.stylesLanguage": {
"type": "string",
"default": "css",
"enum": [
"scss",
"css",
"module.scss",
"module.css"
],
"description": "Specifies what language will be used for styles."
},
"reactComponentGenerator.createStoriesFile": {
"type": "boolean",
"default": "false",
"description": "Specifies if a stories file should be generated with the component."
},
"reactComponentGenerator.useIndexFile": {
"type": "boolean",
"default": "true",
"description": "Specifies if the components folder should have an index file to export all of its components."
},
"reactComponentGenerator.importReact": {
"type": "boolean",
"default": "false",
"description": "Specifies if React should be imported in generated components and stories."
}
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/andrewmcgov/react-component-generator"
},
"homepage": "https://github.com/andrewmcgov/react-component-generator/blob/main/README.md",
"license": "SEE LICENSE IN LICENSE.txt",
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack --devtool nosources-source-map --config ./build/node-extension.webpack.config.js",
"watch": "webpack --watch --devtool nosources-source-map --info-verbosity verbose --config ./build/node-extension.webpack.config.js",
"package": "webpack --mode production --config ./build/node-extension.webpack.config.js",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "yarn run test-compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"publish-update": "vsce package"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.0",
"@types/node": "^12.11.7",
"@types/vscode": "^1.51.0",
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"eslint": "^7.9.0",
"glob": "^7.1.6",
"mocha": "^8.1.3",
"prettier": "2.2.0",
"ts-loader": "^8.0.3",
"typescript": "^4.0.2",
"vscode-test": "^1.4.0",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"vsce": "^1.84.0"
}
}