Skip to content

Commit 15a1ee0

Browse files
committed
2.10.0
1 parent c9efd48 commit 15a1ee0

File tree

2 files changed

+100
-83
lines changed

2 files changed

+100
-83
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: 98 additions & 81 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.9.2",
5+
"version": "2.10.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,72 +173,78 @@
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.quote": {
203-
"type": "string",
204-
"default": "'",
205-
"enum": [
206-
"'",
207-
"\""
208-
],
209-
"enumDescriptions": [
210-
"Single quote",
211-
"Double quote"
212-
],
213-
"description": "Specify the character that you want to use as the quoting character; typically ' or \""
214-
},
215-
"exportall.config.message": {
216-
"type": "string",
217-
"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.quote": {
215+
"type": "string",
216+
"default": "'",
217+
"enum": [
218+
"'",
219+
"\""
220+
],
221+
"enumDescriptions": [
222+
"Single quote",
223+
"Double quote"
224+
],
225+
"description": "Specify the character that you want to use as the quoting character; typically ' or \""
226+
},
227+
"exportall.config.message": {
228+
"type": "string",
229+
"description": "Specify the message that you want to use in the generated barrel file. The message will be added at the top."
230+
}
218231
}
219232
}
220-
}],
233+
],
221234
"views": {
222-
"explorer": [{
223-
"id": "exportall.view",
224-
"name": "Barrel Generator: Export View"
225-
}]
235+
"explorer": [
236+
{
237+
"id": "exportall.view",
238+
"name": "Barrel Generator: Export View"
239+
}
240+
]
226241
},
227-
"viewsWelcome": [{
228-
"view": "exportall.view",
229-
"contents": "There are currently no TypeScript folder listeners"
230-
}]
242+
"viewsWelcome": [
243+
{
244+
"view": "exportall.view",
245+
"contents": "There are currently no TypeScript folder listeners"
246+
}
247+
]
231248
},
232249
"scripts": {
233250
"vscode:prepublish": "npm run compile",
@@ -251,4 +268,4 @@
251268
"tslint": "^5.20.1",
252269
"typescript": "^5.5.3"
253270
}
254-
}
271+
}

0 commit comments

Comments
 (0)