Skip to content

Commit 5ccb124

Browse files
committed
2.9.0
1 parent 2a291c7 commit 5ccb124

File tree

2 files changed

+126
-101
lines changed

2 files changed

+126
-101
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: 124 additions & 99 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.8.0",
5+
"version": "2.9.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,98 +138,113 @@
128138
"group": "TypeScript@2"
129139
}
130140
],
131-
"commandPalette": [{
132-
"command": "exportall.generateCurrentFile",
133-
"when": "editorLangId == typescript || editorLangId == typescriptreact"
134-
}, {
135-
"command": "exportall.generate",
136-
"when": "false"
137-
}, {
138-
"command": "exportall.addFolder",
139-
"when": "false"
140-
}, {
141-
"command": "exportall.removeFolder",
142-
"when": "false"
143-
}, {
144-
"command": "exportall.excludeFolder",
145-
"when": "false"
146-
}, {
147-
"command": "exportall.excludeFile",
148-
"when": "false"
149-
}, {
150-
"command": "exportall.includeFolderFile",
151-
"when": "false"
152-
}, {
153-
"command": "exportall.refreshView",
154-
"when": "false"
155-
}]
156-
},
157-
"configuration": [{
158-
"type": "object",
159-
"title": "Export all modules",
160-
"properties": {
161-
"exportall.config.exclude": {
162-
"type": "array",
163-
"default": [
164-
".test.",
165-
".spec."
166-
],
167-
"description": "Specify which files you want to exclude the `index.ts` file. Works on the whole name or part of the name."
141+
"commandPalette": [
142+
{
143+
"command": "exportall.generateCurrentFile",
144+
"when": "editorLangId == typescript || editorLangId == typescriptreact"
168145
},
169-
"exportall.config.relExclusion": {
170-
"type": "array",
171-
"default": [],
172-
"description": "Specify the relative folder/file paths to exclude from the export."
146+
{
147+
"command": "exportall.generate",
148+
"when": "false"
173149
},
174-
"exportall.config.includeFoldersToExport": {
175-
"type": "boolean",
176-
"default": true,
177-
"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."
150+
{
151+
"command": "exportall.addFolder",
152+
"when": "false"
178153
},
179-
"exportall.config.namedExports": {
180-
"type": "boolean",
181-
"default": false,
182-
"description": "Specify if you want to use named exports in the barrel file."
154+
{
155+
"command": "exportall.removeFolder",
156+
"when": "false"
183157
},
184-
"exportall.config.folderListener": {
185-
"type": "array",
186-
"default": [],
187-
"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."
158+
{
159+
"command": "exportall.excludeFolder",
160+
"when": "false"
188161
},
189-
"exportall.config.semis": {
190-
"type": "boolean",
191-
"default": true,
192-
"description": "Specify if you want to enable/disable the usage of semis in the barrel file."
162+
{
163+
"command": "exportall.excludeFile",
164+
"when": "false"
193165
},
194-
"exportall.config.quote": {
195-
"type": "string",
196-
"default": "'",
197-
"enum": [
198-
"'",
199-
"\""
200-
],
201-
"enumDescriptions": [
202-
"Single quote",
203-
"Double quote"
204-
],
205-
"description": "Specify the character that you want to use as the quoting character; typically ' or \""
166+
{
167+
"command": "exportall.includeFolderFile",
168+
"when": "false"
206169
},
207-
"exportall.config.message": {
208-
"type": "string",
209-
"description": "Specify the message that you want to use in the generated barrel file. The message will be added at the top."
170+
{
171+
"command": "exportall.refreshView",
172+
"when": "false"
173+
}
174+
]
175+
},
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+
}
210231
}
211232
}
212-
}],
233+
],
213234
"views": {
214-
"explorer": [{
215-
"id": "exportall.view",
216-
"name": "Barrel Generator: Export View"
217-
}]
235+
"explorer": [
236+
{
237+
"id": "exportall.view",
238+
"name": "Barrel Generator: Export View"
239+
}
240+
]
218241
},
219-
"viewsWelcome": [{
220-
"view": "exportall.view",
221-
"contents": "There are currently no TypeScript folder listeners"
222-
}]
242+
"viewsWelcome": [
243+
{
244+
"view": "exportall.view",
245+
"contents": "There are currently no TypeScript folder listeners"
246+
}
247+
]
223248
},
224249
"scripts": {
225250
"vscode:prepublish": "npm run compile",
@@ -238,4 +263,4 @@
238263
"tslint": "^5.20.1",
239264
"typescript": "^3.9.3"
240265
}
241-
}
266+
}

0 commit comments

Comments
 (0)