|
1 | 1 | {
|
2 | 2 |
|
3 | 3 | "name": "custom-ui-style",
|
4 |
| - "displayName": "custom-ui-style", |
| 4 | + "displayName": "Custom UI Style", |
5 | 5 | "version": "0.0.0",
|
6 | 6 | "private": true,
|
7 | 7 | "packageManager": "[email protected]",
|
8 |
| - "description": "", |
| 8 | + "description": "Custom ui css style in both editor and webview, unify global font family, setup background image", |
9 | 9 | "author": "subframe7536 <[email protected]>",
|
10 | 10 | "license": "MIT",
|
11 | 11 | "homepage": "https://github.com/subframe7536/custom-ui-style#readme",
|
|
32 | 32 | "activationEvents": [
|
33 | 33 | "onStartupFinished"
|
34 | 34 | ],
|
| 35 | + "extensionKind": [ |
| 36 | + "ui", |
| 37 | + "workspace" |
| 38 | + ], |
35 | 39 | "contributes": {
|
36 |
| - "commands": [], |
| 40 | + "commands": [ |
| 41 | + { |
| 42 | + "command": "custom-ui-style.reload", |
| 43 | + "title": "Custom UI Style: Load custom style" |
| 44 | + }, |
| 45 | + { |
| 46 | + "command": "custom-ui-style.rollback", |
| 47 | + "title": "Custom UI Style: Rollback" |
| 48 | + } |
| 49 | + ], |
37 | 50 | "configuration": {
|
38 | 51 | "type": "object",
|
39 |
| - "title": "custom-ui-style", |
40 |
| - "properties": {} |
| 52 | + "title": "Custom UI Style", |
| 53 | + "properties": { |
| 54 | + "custom-ui-style.monospace": { |
| 55 | + "type": "string", |
| 56 | + "title": "Custom global monospace font family" |
| 57 | + }, |
| 58 | + "custom-ui-style.sansSerif": { |
| 59 | + "type": "string", |
| 60 | + "title": "Custom global sans-serif font family" |
| 61 | + }, |
| 62 | + "custom-ui-style.backgroundUrl": { |
| 63 | + "type": "string", |
| 64 | + "pattern": "^(https://|file://|data:)", |
| 65 | + "patternErrorMessage": "Only allow https: file:// data:", |
| 66 | + "title": "Custom background image url" |
| 67 | + }, |
| 68 | + "custom-ui-style.backgroundUrlWin32": { |
| 69 | + "type": "string", |
| 70 | + "pattern": "^(https://|file://|data:)", |
| 71 | + "patternErrorMessage": "Only allow https: file:// data:", |
| 72 | + "title": "Custom background image url (For Windows)" |
| 73 | + }, |
| 74 | + "custom-ui-style.backgroundUrlDarWin": { |
| 75 | + "type": "string", |
| 76 | + "pattern": "^(https://|file://|data:)", |
| 77 | + "patternErrorMessage": "Only allow https: file:// data:", |
| 78 | + "title": "Custom background image url (For MacOS)" |
| 79 | + }, |
| 80 | + "custom-ui-style.backgroundUrlLinux": { |
| 81 | + "type": "string", |
| 82 | + "pattern": "^(https://|file://|data:)", |
| 83 | + "patternErrorMessage": "Only allow https: file:// data:", |
| 84 | + "title": "Custom background image url (For Linux)" |
| 85 | + }, |
| 86 | + "custom-ui-style.backgroundOpacity": { |
| 87 | + "type": "number", |
| 88 | + "title": "Custom background image opacity", |
| 89 | + "default": 0.9 |
| 90 | + }, |
| 91 | + "custom-ui-style.backgroundSize": { |
| 92 | + "type": "string", |
| 93 | + "enum": [ |
| 94 | + "cover", |
| 95 | + "contain" |
| 96 | + ], |
| 97 | + "title": "Custom background image size", |
| 98 | + "default": "cover" |
| 99 | + }, |
| 100 | + "custom-ui-style.backgroundPosition": { |
| 101 | + "type": "string", |
| 102 | + "title": "Custom background image size", |
| 103 | + "default": "center" |
| 104 | + }, |
| 105 | + "custom-ui-style.stylesheet": { |
| 106 | + "type": "object", |
| 107 | + "title": "Custom css", |
| 108 | + "description": "support nest selectors" |
| 109 | + }, |
| 110 | + "custom-ui-style.webviewMonospaceSelector": { |
| 111 | + "type": "array", |
| 112 | + "items": { |
| 113 | + "type": "string" |
| 114 | + }, |
| 115 | + "title": "Custom monospace selector in webview" |
| 116 | + }, |
| 117 | + "custom-ui-style.webviewSansSerifSelector": { |
| 118 | + "type": "array", |
| 119 | + "items": { |
| 120 | + "type": "string" |
| 121 | + }, |
| 122 | + "title": "Custom sans-serif selector in webview" |
| 123 | + }, |
| 124 | + "custom-ui-style.webviewStylesheet": { |
| 125 | + "type": "object", |
| 126 | + "title": "Custom css", |
| 127 | + "description": "support nest selectors" |
| 128 | + } |
| 129 | + } |
41 | 130 | }
|
42 | 131 | },
|
43 | 132 | "scripts": {
|
44 |
| - "build": "tsup src/index.ts --external vscode", |
45 |
| - "dev": "pnpm run build --watch", |
| 133 | + "build": "tsup --treeshake", |
| 134 | + "dev": "tsup --watch", |
46 | 135 | "prepare": "pnpm run update",
|
47 | 136 | "update": "vscode-ext-gen --output src/generated/meta.ts",
|
48 | 137 | "format": "eslint . --fix",
|
49 | 138 | "vscode:prepublish": "pnpm run build",
|
50 | 139 | "publish": "vsce publish --no-dependencies",
|
51 | 140 | "pack": "vsce package --no-dependencies",
|
52 | 141 | "typecheck": "tsc --noEmit",
|
53 |
| - "release": "bumpp && pnpm publish" |
| 142 | + "release": "bumpp && pnpm run publish" |
54 | 143 | },
|
55 | 144 | "devDependencies": {
|
56 | 145 | "@subframe7536/eslint-config": "^0.9.4",
|
| 146 | + "@subframe7536/type-utils": "^0.1.6", |
57 | 147 | "@types/node": "^20.16.11",
|
58 | 148 | "@types/vscode": "^1.94.0",
|
59 | 149 | "@vscode/vsce": "^3.1.1",
|
| 150 | + "atomically": "^2.0.3", |
60 | 151 | "bumpp": "^9.7.1",
|
61 | 152 | "eslint": "^9.12.0",
|
62 | 153 | "reactive-vscode": "^0.2.5",
|
|
0 commit comments