-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
527 lines (527 loc) · 16.5 KB
/
package.json
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
{
"name": "remix-forge",
"displayName": "Remix Forge",
"description": "Remix Forge - A VS Code extension for Remix.run applications that super charges your development with a ever-growing set of functionalities.",
"version": "0.5.4",
"icon": "./remix-forge-logo.png",
"keywords": [
"Remix",
"remix-auth",
"Generator",
"Typescript",
"React",
"Snippets",
"conform",
"form-handling",
"remix-hook-form",
"form-generator",
"reactjs",
"testing-library",
"jest",
"vitest",
"shadncn-ui",
"shadcn"
],
"publisher": "CodeForge",
"engines": {
"vscode": "^1.78.0"
},
"categories": [
"Snippets",
"Extension Packs",
"Testing",
"Other"
],
"activationEvents": [
"onStartupFinished",
"onLanguage:typescriptreact"
],
"main": "./dist/extension.js",
"contributes": {
"languages": [
{
"id": "typescriptreact",
"extensions": [
".tsx"
],
"aliases": [
"TypeScript React"
]
}
],
"codeLensProvider": [
{
"language": "typescript",
"scheme": "file",
"command": {
"command": "remix-forge.openUrl",
"title": "Open URL",
"arguments": []
}
}
],
"configuration": {
"title": "Remix Forge",
"properties": {
"remix-forge.urlGenerator": {
"type": "string",
"default": "",
"description": "Pass in a custom function to be used to generate the relative part of the URL for the code lens. The function will receive the current path of the component as the first argument. eg: (filePath) => `something` will return `localhost:3000/something` as the URL.",
"editPresentation": "multilineText"
},
"remix-forge.urlDebug": {
"type": "boolean",
"default": false,
"description": "Allows you to debug your custom urlGenerator function by showing the url output it generates in the output panel."
},
"remix-forge.urlGeneratorPaths": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title to display above the component eg: Staging => Open Staging URL"
},
"url": {
"type": "string",
"description": "URL of your site eg: http://staging.dev.site"
}
}
},
"default": [
{
"title": "Local",
"url": "http://localhost:3000"
}
]
},
"remix-forge.preselected": {
"type": "array",
"enum": [
"all",
"route",
"loader",
"action",
"meta",
"handle",
"links",
"errorBoundary",
"revalidate",
"headers"
],
"description": "Preselects parts to generate when creating a new route."
},
"remix-forge.orderOfGeneration": {
"type": "array",
"enum": [
"links",
"meta",
"handler",
"headers",
"loader",
"action",
"component",
"errorBoundary",
"revalidate"
],
"minItems": 9,
"maxItems": 9,
"description": "Order of the parts to be generated (top to bottom). You have to include all of them otherwise you won't generate parts if they are not included in this array."
},
"remix-forge.loader": {
"type": "string",
"default": "",
"description": "Remix loader code to generate instead of the default one. Leave empty to use the default loader.",
"editPresentation": "multilineText"
},
"remix-forge.clientLoader": {
"type": "string",
"default": "",
"description": "Remix clientLoader code to generate instead of the default one. Leave empty to use the default clientLoader.",
"editPresentation": "multilineText"
},
"remix-forge.action": {
"type": "string",
"default": "",
"description": "Remix action code to generate instead of the default one. Leave empty to use the default action.",
"editPresentation": "multilineText"
},
"remix-forge.clientAction": {
"type": "string",
"default": "",
"description": "Remix clientAction code to generate instead of the default one. Leave empty to use the default clientAction.",
"editPresentation": "multilineText"
},
"remix-forge.meta": {
"type": "string",
"default": "",
"description": "Remix meta code to generate instead of the default one. Leave empty to use the default meta.",
"editPresentation": "multilineText"
},
"remix-forge.handle": {
"type": "string",
"default": "",
"description": "Remix handle code to generate instead of the default one. Leave empty to use the default handle.",
"editPresentation": "multilineText"
},
"remix-forge.component": {
"type": "string",
"default": "",
"description": "Remix component code to generate instead of the default one. Leave empty to use the default component.",
"editPresentation": "multilineText"
},
"remix-forge.runtimeDependency": {
"type": "string",
"default": "",
"description": "Runtime dependency to use instead of the default one (@remix-run/node)"
},
"remix-forge.links": {
"type": "string",
"default": "",
"description": "Remix links code to generate instead of the default one. Leave empty to use the default links.",
"editPresentation": "multilineText"
},
"remix-forge.errorBoundary": {
"type": "string",
"default": "",
"description": "Remix errorBoundary code to generate instead of the default one. Leave empty to use the default errorBoundary.",
"editPresentation": "multilineText"
},
"remix-forge.revalidate": {
"type": "string",
"default": "",
"description": "Remix revalidate code to generate instead of the default one. Leave empty to use the default revalidate.",
"editPresentation": "multilineText"
},
"remix-forge.headers": {
"type": "string",
"default": "",
"description": "Remix headers code to generate instead of the default one. Leave empty to use the default headers.",
"editPresentation": "multilineText"
},
"remix-forge.importAuthFrom": {
"type": "string",
"default": "",
"description": "Generate the auth import from this path. Leave empty to use the default one (~/services/auth.server)."
},
"remix-forge.barrelizeRemoveExtensions": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"tsx",
"ts",
"jsx",
"js"
],
"description": "Tell the barrelize command to remove these extensions when generating the barrel file."
},
"remix-forge.barrelizeIndexExtension": {
"type": "string",
"default": "ts",
"description": "Tell the barrelize command what extension to use for the index file."
},
"remix-forge.barrelizeIgnoreFiles": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"index",
"test",
"stories"
],
"description": "Tell the barrelize command to ignore all the files containing the strings provided."
},
"remix-forge.formHandler": {
"type": "string",
"default": "remix-hook-form",
"enum": [
"remix-hook-form",
"conform"
],
"description": "What form handling library you want your project to use by default (remix-hook-form or conform)."
},
"remix-forge.searchStrategy": {
"type": "string",
"default": "one-up",
"enum": [
"all",
"one-up",
"sub"
],
"description": "How far to search for a file from the current directory. All will search the whole project, one-up will search the current directory and its parent, sub will search the current directory and its children."
},
"remix-forge.componentFolder": {
"type": "string",
"description": "The folder where the shadcn/ui components will be generated."
},
"remix-forge.customActionImports": {
"type": "string",
"description": "Allows you to add custom imports whenever you generate a route with an action inside"
},
"remix-forge.customLoaderImports": {
"type": "string",
"description": "Allows you to add custom imports whenever you generate a route with a loader inside"
},
"remix-forge.formRouteTemplate": {
"type": "string",
"description": "The template to use when generating a form route"
},
"remix-forge.latestRemixNotification": {
"type": "boolean",
"default": true,
"description": "Whether to show a notification when a new version of Remix is available"
},
"remix-forge.devToolsPort": {
"type": "number",
"default": 3003,
"description": "Port number that allows the Remix dev tools to communicate with the extension"
}
}
},
"submenus": [
{
"label": "Remix Forge Generators",
"id": "remixForgeGenerators"
}
],
"commands": [
{
"command": "remix-forge.generateRemixRoute",
"title": "Generate Remix Route"
},
{
"command": "remix-forge.generateLoader",
"title": "Insert Remix Loader"
},
{
"command": "remix-forge.generateClientLoader",
"title": "Insert Remix Client Loader"
},
{
"command": "remix-forge.generateAction",
"title": "Insert Remix Action"
},
{
"command": "remix-forge.generateClientAction",
"title": "Insert Remix Client Action"
},
{
"command": "remix-forge.generateErrorBoundary",
"title": "Insert Remix ErrorBoundary"
},
{
"command": "remix-forge.generateHeaders",
"title": "Insert Remix headers function"
},
{
"command": "remix-forge.generateLinks",
"title": "Insert Remix links function"
},
{
"command": "remix-forge.generateRevalidate",
"title": "Insert Remix shouldRevalidate function"
},
{
"command": "remix-forge.generateMeta",
"title": "Insert Remix meta function"
},
{
"command": "remix-forge.generateShadcnUI",
"title": "Add shadcn-ui components to your project"
},
{
"command": "remix-forge.initShadcnUi",
"title": "Initialize shadcn-ui config in your project"
},
{
"command": "remix-forge.linting",
"title": "Initialize eslint and prettier"
},
{
"command": "remix-forge.generateTests",
"title": "Generate Tests"
},
{
"command": "remix-forge.updateRemix",
"title": "Update Remix Version"
},
{
"command": "remix-forge.generateRemixFormRoute",
"title": "Generate Remix Form Route"
},
{
"command": "remix-forge.devTools",
"title": "Start Remix Dev Tools"
},
{
"command": "remix-forge.generateAuth",
"title": "Generate Authentication Workflow"
},
{
"command": "remix-forge.generatePrisma",
"title": "Initialize Prisma"
},
{
"command": "remix-forge.openUrl",
"title": "Opens url in browser"
},
{
"command": "remix-forge.barrelize",
"title": "Barrelize folder"
},
{
"command": "remix-forge.generateAuthSnippet",
"title": "Generates authentication for loaders/actions"
},
{
"command": "remix-forge.flattenRoutes",
"title": "Convert routes to v2 convention"
}
],
"menus": {
"remixForgeGenerators": [
{
"command": "remix-forge.generateLoader",
"group": "1_RemixForge@10"
},
{
"command": "remix-forge.generateClientLoader",
"group": "1_RemixForge@15"
},
{
"command": "remix-forge.generateAction",
"group": "1_RemixForge@20"
},
{
"command": "remix-forge.generateClientAction",
"group": "1_RemixForge@25"
},
{
"command": "remix-forge.generateErrorBoundary",
"group": "1_RemixForge@30"
},
{
"command": "remix-forge.generateMeta",
"group": "1_RemixForge@40"
},
{
"command": "remix-forge.generateHeaders",
"group": "1_RemixForge@20"
},
{
"command": "remix-forge.generateLinks",
"group": "1_RemixForge@30"
},
{
"command": "remix-forge.generateRevalidate",
"group": "1_RemixForge@40"
}
],
"editor/context": [
{
"group": "1_Remix@1",
"submenu": "remixForgeGenerators"
}
],
"explorer/context": [
{
"command": "remix-forge.generateRemixRoute",
"when": "explorerResourceIsFolder",
"group": "2_Remix@10"
},
{
"command": "remix-forge.generateRemixFormRoute",
"when": "explorerResourceIsFolder",
"group": "2_Remix@20"
},
{
"command": "remix-forge.generateTests",
"when": "resourceExtname == .ts || resourceExtname == .tsx",
"group": "2_Remix@30"
},
{
"command": "remix-forge.flattenRoutes",
"when": "explorerResourceIsFolder && resourceFilename =~ /routes/",
"group": "2_Remix@30"
},
{
"command": "remix-forge.generateAuth",
"when": "explorerResourceIsFolder && resourceFilename =~ /app/",
"group": "2_Remix@40"
},
{
"command": "remix-forge.generateShadcnUI",
"when": "explorerResourceIsFolder && resourceFilename =~ /app/",
"group": "2_Remix@35"
},
{
"command": "remix-forge.generatePrisma",
"when": "explorerResourceIsFolder && resourceFilename =~ /app/",
"group": "2_Remix@40"
},
{
"command": "remix-forge.updateRemix",
"when": " resourceFilename =~ /package.json/",
"group": "2_Remix@10"
},
{
"command": "remix-forge.linting",
"when": " resourceFilename =~ /package.json/",
"group": "2_Remix@15"
},
{
"command": "remix-forge.initShadcnUi",
"when": " resourceFilename =~ /package.json/",
"group": "2_Remix@20"
},
{
"command": "remix-forge.barrelize",
"when": "explorerResourceIsFolder",
"group": "2_Remix@60"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"dev": "npm run watch"
},
"repository": {
"type": "git",
"url": "https://github.com/Code-Forge-Net/Remix-Forge"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.x",
"@types/vscode": "^1.78.0",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"@vscode/test-electron": "^2.3.0",
"eslint": "^8.39.0",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"ts-loader": "^9.4.2",
"typescript": "^5.1.3",
"webpack": "^5.81.0",
"webpack-cli": "^5.0.2"
},
"dependencies": {
"execa": "^7.1.1",
"pidtree": "^0.6.0",
"ws": "^8.13.0"
}
}