Skip to content

Commit 785aeb4

Browse files
committed
2.11.0
1 parent 8541e30 commit 785aeb4

File tree

2 files changed

+108
-88
lines changed

2 files changed

+108
-88
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 106 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-typescript-exportallmodules",
33
"displayName": "TypeScript Barrel Generator",
44
"description": "VSCode extension which generates a barrel `index.ts` file with all the module exports from the current directory.",
5-
"version": "2.10.0",
5+
"version": "2.11.0",
66
"icon": "assets/export-all.png",
77
"publisher": "eliostruyf",
88
"galleryBanner": {
@@ -11,7 +11,8 @@
1111
},
1212
"license": "MIT",
1313
"author": "Elio Struyf <[email protected]> (https://www.eliostruyf.com)",
14-
"badges": [{
14+
"badges": [
15+
{
1516
"description": "version",
1617
"url": "https://img.shields.io/github/package-json/v/estruyf/vscode-typescript-exportallmodules?color=green&label=vscode-front-matter&style=flat-square",
1718
"href": "https://github.com/estruyf/vscode-typescript-exportallmodules"
@@ -42,7 +43,8 @@
4243
],
4344
"main": "./out/extension.js",
4445
"contributes": {
45-
"commands": [{
46+
"commands": [
47+
{
4648
"command": "exportall.generate",
4749
"title": "Export all modules",
4850
"category": "Barrel Generator"
@@ -83,16 +85,21 @@
8385
"category": "Barrel Generator"
8486
}
8587
],
86-
"submenus": [{
87-
"id": "exportall.submenu",
88-
"label": "TypeScript Barrel"
89-
}],
88+
"submenus": [
89+
{
90+
"id": "exportall.submenu",
91+
"label": "TypeScript Barrel"
92+
}
93+
],
9094
"menus": {
91-
"explorer/context": [{
92-
"submenu": "exportall.submenu",
93-
"group": "TypeScript@1"
94-
}],
95-
"exportall.submenu": [{
95+
"explorer/context": [
96+
{
97+
"submenu": "exportall.submenu",
98+
"group": "TypeScript@1"
99+
}
100+
],
101+
"exportall.submenu": [
102+
{
96103
"command": "exportall.generate",
97104
"when": "explorerResourceIsFolder",
98105
"group": "TypeScript@1"
@@ -113,11 +120,14 @@
113120
"group": "TypeScript@4"
114121
}
115122
],
116-
"view/title": [{
117-
"command": "exportall.refreshView",
118-
"when": "view == exportall.view"
119-
}],
120-
"view/item/context": [{
123+
"view/title": [
124+
{
125+
"command": "exportall.refreshView",
126+
"when": "view == exportall.view"
127+
}
128+
],
129+
"view/item/context": [
130+
{
121131
"command": "exportall.removeFolder",
122132
"when": "view == exportall.view && viewItem == exportall.listener && viewItem != exportall.header",
123133
"group": "TypeScript@1"
@@ -128,7 +138,8 @@
128138
"group": "TypeScript@2"
129139
}
130140
],
131-
"commandPalette": [{
141+
"commandPalette": [
142+
{
132143
"command": "exportall.generateCurrentFile",
133144
"when": "editorLangId == typescript || editorLangId == typescriptreact"
134145
},
@@ -162,77 +173,86 @@
162173
}
163174
]
164175
},
165-
"configuration": [{
166-
"type": "object",
167-
"title": "Export all modules",
168-
"properties": {
169-
"exportall.config.exclude": {
170-
"type": "array",
171-
"default": [
172-
".test.",
173-
".spec."
174-
],
175-
"description": "Specify which files you want to exclude the `index.ts` file. Works on the whole name or part of the name."
176-
},
177-
"exportall.config.relExclusion": {
178-
"type": "array",
179-
"default": [],
180-
"description": "Specify the relative folder/file paths to exclude from the export."
181-
},
182-
"exportall.config.includeFoldersToExport": {
183-
"type": "boolean",
184-
"default": true,
185-
"description": "Specify if you want to include folder as well to the module export. Will only be applied if folder contains a `index.ts` file."
186-
},
187-
"exportall.config.namedExports": {
188-
"type": "boolean",
189-
"default": false,
190-
"description": "Specify if you want to use named exports in the barrel file."
191-
},
192-
"exportall.config.folderListener": {
193-
"type": "array",
194-
"default": [],
195-
"description": "Specify the relative paths for the folder listeners. This will make it possible to automatically generate the module export once a file gets added/updated/removed within the specified folder."
196-
},
197-
"exportall.config.semis": {
198-
"type": "boolean",
199-
"default": true,
200-
"description": "Specify if you want to enable/disable the usage of semis in the barrel file."
201-
},
202-
"exportall.config.exportFileExtension": {
203-
"type": ["string", "null"],
204-
"default": null,
205-
"description": "Specify the file extension to append to the exported files."
206-
},
207-
"exportall.config.quote": {
208-
"type": "string",
209-
"default": "'",
210-
"enum": [
211-
"'",
212-
"\""
213-
],
214-
"enumDescriptions": [
215-
"Single quote",
216-
"Double quote"
217-
],
218-
"description": "Specify the character that you want to use as the quoting character; typically ' or \""
219-
},
220-
"exportall.config.message": {
221-
"type": "string",
222-
"description": "Specify the message that you want to use in the generated barrel file. The message will be added at the top."
176+
"configuration": [
177+
{
178+
"type": "object",
179+
"title": "Export all modules",
180+
"properties": {
181+
"exportall.config.exclude": {
182+
"type": "array",
183+
"default": [
184+
".test.",
185+
".spec."
186+
],
187+
"description": "Specify which files you want to exclude the `index.ts` file. Works on the whole name or part of the name."
188+
},
189+
"exportall.config.relExclusion": {
190+
"type": "array",
191+
"default": [],
192+
"description": "Specify the relative folder/file paths to exclude from the export."
193+
},
194+
"exportall.config.includeFoldersToExport": {
195+
"type": "boolean",
196+
"default": true,
197+
"description": "Specify if you want to include folder as well to the module export. Will only be applied if folder contains a `index.ts` file."
198+
},
199+
"exportall.config.namedExports": {
200+
"type": "boolean",
201+
"default": false,
202+
"description": "Specify if you want to use named exports in the barrel file."
203+
},
204+
"exportall.config.folderListener": {
205+
"type": "array",
206+
"default": [],
207+
"description": "Specify the relative paths for the folder listeners. This will make it possible to automatically generate the module export once a file gets added/updated/removed within the specified folder."
208+
},
209+
"exportall.config.semis": {
210+
"type": "boolean",
211+
"default": true,
212+
"description": "Specify if you want to enable/disable the usage of semis in the barrel file."
213+
},
214+
"exportall.config.exportFileExtension": {
215+
"type": [
216+
"string",
217+
"null"
218+
],
219+
"default": null,
220+
"description": "Specify the file extension to append to the exported files."
221+
},
222+
"exportall.config.quote": {
223+
"type": "string",
224+
"default": "'",
225+
"enum": [
226+
"'",
227+
"\""
228+
],
229+
"enumDescriptions": [
230+
"Single quote",
231+
"Double quote"
232+
],
233+
"description": "Specify the character that you want to use as the quoting character; typically ' or \""
234+
},
235+
"exportall.config.message": {
236+
"type": "string",
237+
"description": "Specify the message that you want to use in the generated barrel file. The message will be added at the top."
238+
}
223239
}
224240
}
225-
}],
241+
],
226242
"views": {
227-
"explorer": [{
228-
"id": "exportall.view",
229-
"name": "Barrel Generator: Export View"
230-
}]
243+
"explorer": [
244+
{
245+
"id": "exportall.view",
246+
"name": "Barrel Generator: Export View"
247+
}
248+
]
231249
},
232-
"viewsWelcome": [{
233-
"view": "exportall.view",
234-
"contents": "There are currently no TypeScript folder listeners"
235-
}]
250+
"viewsWelcome": [
251+
{
252+
"view": "exportall.view",
253+
"contents": "There are currently no TypeScript folder listeners"
254+
}
255+
]
236256
},
237257
"scripts": {
238258
"vscode:prepublish": "npm run compile",
@@ -256,4 +276,4 @@
256276
"tslint": "^5.20.1",
257277
"typescript": "^5.5.3"
258278
}
259-
}
279+
}

0 commit comments

Comments
 (0)