-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
139 lines (139 loc) · 4.88 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
{
"name": "storybook-opener",
"displayName": "Storybook Opener",
"icon": "./assets/icon.png",
"description": "Open Storybook quickly",
"version": "3.0.4",
"publisher": "ygkn",
"engines": {
"vscode": "^2023.0.0"
},
"categories": [
"Other"
],
"homepage": "https://github.com/ygkn/storybook-opener#readme",
"bugs": {
"url": "https://github.com/ygkn/storybook-opener/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/ygkn/storybook-opener.git"
},
"activationEvents": [
"workspaceContains:*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "storybook-opener.open",
"title": "Open Storybook",
"category": "Storybook Opener",
"when": "storybook-opener.isActiveEditorCsf",
"icon": {
"light": "./assets/icon-black.svg",
"dark": "./assets/icon-white.svg"
}
}
],
"menus": {
"editor/title": [
{
"when": "storybook-opener.isActiveEditorCsf",
"command": "storybook-opener.open",
"group": "navigation"
}
],
"editor/context": [
{
"when": "storybook-opener.isActiveEditorCsf",
"command": "storybook-opener.open",
"group": "navigation"
}
]
},
"configuration": {
"title": "Storybook Opener",
"properties": {
"storybook-opener.startCommand": {
"type": "string",
"description": "Command to run when starting a Storybook. By default, Storybook Opener will run `npx storybook dev --no-open ${options}` with options built from `storybook-opener.storybookOption` options.",
"scope": "resource"
},
"storybook-opener.autoStartBehavior": {
"type": "string",
"default": "ask",
"description": "The behavior when Storybook server is not running.",
"enum": [
"ask",
"always",
"never"
],
"enumDescriptions": [
"Ask before starting Storybook server.",
"Always automatically start Storybook server without asking.",
"Never automatically start Storybook server without asking."
]
},
"storybook-opener.storybookOption.configDir": {
"type": "string",
"default": ".storybook",
"markdownDescription": "Directory where to load Storybook configurations from\n\nSame to `-c` / `--config-dir` option of [Storybook CLI Options](https://storybook.js.org/docs/react/api/cli-options)",
"scope": "resource"
},
"storybook-opener.storybookOption.port": {
"type": "number",
"markdownDescription": "Port to run Storybook\n\nSame to `-p` / `--port` option of [Storybook CLI Options](https://storybook.js.org/docs/react/api/cli-options)",
"default": 6006,
"scope": "resource"
},
"storybook-opener.storybookOption.host": {
"type": "string",
"markdownDescription": "Host to run Storybook\n\nSame to `-h` / `--host` option of [Storybook CLI Options](https://storybook.js.org/docs/react/api/cli-options)",
"default": "localhost",
"scope": "resource"
},
"storybook-opener.storybookOption.https": {
"type": "boolean",
"markdownDescription": "Serve Storybook over HTTPS\n\nSame to `--https` option of [Storybook CLI Options](https://storybook.js.org/docs/react/api/cli-options)",
"default": false,
"scope": "resource"
},
"storybook-opener.openInEditor.enable": {
"type": "boolean",
"description": "When enabled, Open storybook with vscode SimpleBrowser.",
"default": false,
"scope": "resource"
},
"storybook-opener.openInEditor.follow": {
"type": "boolean",
"markdownDescription": "When enabled, Automatically opens stories related to the opened file.\n\n`storybook-opener.openInEditor.enable` **MUST** be set to `true`.",
"default": false,
"scope": "resource"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"build": "npm run esbuild-base -- --sourcemap",
"build:watch": "npm run esbuild-base -- --sourcemap --watch",
"lint:biome": "biome check src",
"lint:ts": "tsc --noEmit",
"lint": "concurrently npm:lint:*"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@tsconfig/strictest": "2.0.5",
"@types/mocha": "10.0.10",
"@types/node": "22.10.5",
"@types/vscode": "1.60.0",
"@vscode/test-electron": "2.4.1",
"concurrently": "9.1.2",
"esbuild": "0.24.2",
"mocha": "11.0.1",
"storybook": "7.6.20",
"typescript": "5.7.2"
}
}