-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
158 lines (158 loc) · 4.8 KB
/
package.json
File metadata and controls
158 lines (158 loc) · 4.8 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "new-sdc-folder",
"displayName": "New SDC Folder",
"description": "Create a new SDC folder with a component.yml, css, js, pcss, sass, scss, and stories.js files.",
"version": "1.0.2",
"repository": {
"repository": "github:baerkins/vscode-sdc-folder"
},
"publisher": "Baerkins",
"keywords": [
"sdc",
"drupal",
"single directory components",
"Single Directory Components",
"create file"
],
"engines": {
"vscode": "^1.91.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"id": "newSDCFolder",
"type": "object",
"title": "New SDC Folder",
"properties": {
"newSDCFolder.assetSubdirectory": {
"type": "string",
"default": "",
"order": 1,
"description": "Name of folder to add css and js files to. If empty, css and js files will be added to the top level of the folder. Useful if you're transforming css and js."
},
"newSDCFolder.addCssFile": {
"type": "boolean",
"default": true,
"order": 2,
"description": "Add css file"
},
"newSDCFolder.addJsFile": {
"type": "boolean",
"default": true,
"order": 3,
"description": "Add js file"
},
"newSDCFolder.addPcssFile": {
"type": "boolean",
"default": false,
"order": 4,
"description": "Add pcss file"
},
"newSDCFolder.addSassFile": {
"type": "boolean",
"default": false,
"order": 4,
"description": "Add sass file"
},
"newSDCFolder.addScssFile": {
"type": "boolean",
"default": false,
"order": 4,
"description": "Add scss file"
},
"newSDCFolder.addAttributesToComponentYML": {
"type": "boolean",
"default": true,
"order": 5,
"description": "Include `attributes` by default in component.yml file"
},
"newSDCFolder.storybook.addStoriesJS": {
"type": "boolean",
"default": false,
"order": 6,
"description": "Add .stories.js file"
},
"newSDCFolder.storybook.addStoriesTS": {
"type": "boolean",
"default": false,
"order": 6,
"description": "Add .stories.ts file"
},
"newSDCFolder.storybook.importCSS": {
"type": "boolean",
"default": false,
"order": 6,
"description": "import css file in stories"
},
"newSDCFolder.storybook.importJS": {
"type": "boolean",
"default": false,
"order": 6,
"description": "import js file in stories"
},
"newSDCFolder.storybook.ComponentImportSuffix": {
"type": "string",
"default": "Template",
"order": 7,
"description": "Suffix for storybook import name to prevent naming conflicts (e.g., 'Template' results in 'ButtonTemplate' import)."
},
"newSDCFolder.storybook.OrganizeComponents": {
"type": "boolean",
"default": false,
"order": 6,
"description": "If checked, Story titles will automatically include their parent folder names as categories."
},
"newSDCFolder.storybook.SdcComponentsCategoryTitle": {
"type": "string",
"default": "SDC Components",
"description": "Name of the SDC category in Storybook."
},
"newSDCFolder.storybook.AdditionalParentCategoryDirectoryNames": {
"type": "string",
"default": "",
"description": "Comma seperated list of parent folders that create category groups in the Storybook sidebar. Will autogenerate a title in stories file based on folder organization for folders created within these directory. SDC components will always be categorized under the 'Components' Sdc Components Category Title."
},
"newSDCFolder.storybook.ImportEngine": {
"type": "string",
"default": "@storybook/html-vite",
"description": "If generating typescript stories, this value will be used to generate the import statement for Storybook's Meta and StoryObj types."
}
}
},
"commands": [{
"command": "newSDCFolder.create",
"title": "Create New SDC Folder"
}],
"menus": {
"explorer/context": [
{
"command": "newSDCFolder.create",
"group": "1_modification"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.91.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"eslint": "^9.25.1",
"typescript": "^5.8.3",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.5.2"
}
}