-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
173 lines (173 loc) 路 6.42 KB
/
Copy pathpackage.json
File metadata and controls
173 lines (173 loc) 路 6.42 KB
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
{
"name": "font-preview",
"displayName": "Font Preview",
"description": "Preview fonts in VS Code",
"license": "MIT",
"version": "2.2.1",
"publisher": "ctcuff",
"icon": "icon.png",
"workspaces": [
"packages/*"
],
"private": true,
"scripts": {
"build": "yarn build:shared && yarn workspaces foreach --include '@font-preview/{extension,web}' --interlaced -v run build",
"build:shared": "yarn workspace @font-preview/shared run build",
"format": "yarn workspaces foreach --exclude @font-preview/eslint-base-config --interlaced -v run format",
"lint": "yarn workspaces foreach --exclude @font-preview/eslint-base-config --interlaced -v run lint",
"package": "vsce package --no-update-package-json --no-dependencies",
"precommit": "yarn workspaces foreach --exclude @font-preview/eslint-base-config --interlaced -v run precommit",
"postinstall": "yarn build:shared && husky install",
"test:compile": "yarn workspaces foreach --exclude @font-preview/eslint-base-config --interlaced -v run test:compile",
"vscode:prepublish": "yarn run build",
"watch": "yarn build:shared && yarn workspaces foreach --parallel --include '@font-preview/{extension,web}' --interlaced run watch"
},
"devDependencies": {
"@types/vscode-webview": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"eslint-webpack-plugin": "^3.2.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^2.3.0",
"typescript": "~4.1.3",
"webpack": "^5.19.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ctcuff/vscode-font-preview/"
},
"galleryBanner": {
"color": "#041A2F",
"theme": "dark"
},
"keywords": [
"font",
"viewer",
"font preview",
"font viewer"
],
"packageManager": "yarn@3.6.4",
"engines": {
"vscode": "^1.67.0",
"yarn": "^3.6.4"
},
"vsce": {
"yarn": true
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onCustomEditor:font.detail.preview",
"onCommand:font-preview.createSampleYAMLFile",
"onCommand:font-preview.debug.resetGlobalState",
"onCommand:font-preview.openSampleYAMLFile"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "font-preview.createSampleYAMLFile",
"title": "Font Preview: Create sample YAML file"
},
{
"command": "font-preview.debug.resetGlobalState",
"title": "Font Preview (Debug): Reset global state"
},
{
"command": "font-preview.openSampleYAMLFile",
"title": "Font Preview: Open sample YAML file"
}
],
"customEditors": [
{
"viewType": "font.detail.preview",
"displayName": "Font Preview",
"priority": "default",
"selector": [
{
"filenamePattern": "*.{ttf,ttc,otf,woff,woff2}"
}
]
}
],
"configuration": {
"title": "Font Preview",
"properties": {
"font-preview.defaultTab": {
"description": "Controls the starting tab of the preview.",
"type": "string",
"enum": [
"Preview",
"Features",
"Glyphs",
"Waterfall",
"Type Yourself",
"License"
],
"default": "Preview",
"enumDescriptions": [
"The preview will always start on the \"Preview\" tab.",
"The preview will always start on the \"Features\" tab (if present).",
"The preview will always start on the \"Glyphs\" tab (if present).",
"The preview will always start on the \"Waterfall\" tab.",
"The preview will always start on the \"Type Yourself\" tab.",
"The preview will always start on the \"License\" tab (if present)."
]
},
"font-preview.useWorker": {
"description": "If enabled, VS Code will try to use a worker when loading the font. Fonts may load faster, but you may also see a small shift while the font loads. Disable this setting if you notice any weird behavior.",
"type": "boolean",
"default": false
},
"font-preview.showGlyphWidth": {
"description": "Show the glyph's width in the cell.",
"type": "boolean",
"default": true
},
"font-preview.showGlyphIndex": {
"description": "Show the index of the glyph in the left corner of the cell.",
"type": "boolean",
"default": true
},
"font-preview.sampleTextPaths": {
"title": "Sample Text Paths",
"markdownDescription": "Paths to custom sample text YAML files. **NOTE**: A large number of sample _may_ cause performance issues. The YAML file must have the following format:\n\n```yaml\n# The name of the sample text (required)\nid: Sample Title\n# A citation stating where this text came from (optional)\nsource: Sample source\n# Determines if this is a right-to-left language (optional)\nrtl: false\n# The text to display.\n# This must be an array of strings (required)\nparagraphs:\n - Hello, World!\n```",
"type": "array",
"default": [],
"items": {
"type": "string"
}
},
"font-preview.defaultSampleTextId": {
"markdownDescription": "The name of the default sample text to load. For user defined YAML file samples, this comes from the `id` property.",
"type": "string",
"default": "English"
},
"font-preview.defaultLogLevel": {
"description": "The default logging level for the output window.",
"type": "string",
"default": "Info",
"enum": [
"Debug",
"Info",
"Warn",
"Error"
]
},
"font-preview.showSampleTextErrors": {
"description": "Show a warning notification if the extension detects an invalid or missing sample text file. If disabled, errors can still be viewed in the output window.",
"type": "boolean",
"default": true
},
"font-preview.retainTabPosition": {
"markdownDescription": "If enabled, newly opened font files will start on the tab of the last font file. Note that this setting will override the default tab setting `#font-preview.defaultTab#`.",
"type": "boolean",
"default": false
}
}
}
}
}