forked from holychen555/uniapp-ifdef-display
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
145 lines (145 loc) · 3.05 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
{
"name": "uniapp-ifdef-display",
"displayName": "uniapp-ifdef-display",
"description": "可控制uniapp条件编译的代码置灰显示",
"keywords": [
"uniapp",
"ifdef",
"条件编译",
"小程序",
"微信小程序"
],
"version": "0.0.1",
"publisher": "holychen555",
"engines": {
"vscode": "^1.17.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:html",
"onLanguage:vue",
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:css",
"onLanguage:sass",
"onLanguage:scss",
"onLanguage:json"
],
"repository": {
"type": "git",
"url": "https://github.com/holychen555/uniapp-ifdef-display"
},
"bugs": "https://github.com/holychen555/uniapp-ifdef-display/issues",
"main": "./dist/extension",
"license": "MIT",
"scripts": {
"vscode:prepublish": "cross-env NODE_ENV=production webpack --mode production",
"dev": "cross-env NODE_ENV=development webpack --mode development --watch",
"test": "node ./test/runTest.js"
},
"icon": "uniapp.png",
"contributes": {
"menus": {
"editor/title": [
{
"command": "ifdefdisplay.showQuickPick",
"group": "navigation",
"when": "config.ifdefdisplay.isEnable && hasIfDef"
}
]
},
"commands": [
{
"command": "ifdefdisplay.showQuickPick",
"title": "请选择%PLATFORM%",
"icon": "./assets/icon.svg"
}
],
"configuration": {
"type": "object",
"title": "uniapp-ifdef-display",
"properties": {
"ifdefdisplay.platformArr": {
"type": "array",
"default": [
"MP-WEIXIN"
],
"description": "Set the platforms"
},
"ifdefdisplay.isEnable": {
"type": "boolean",
"default": true,
"description": "Enable or disable the ifdefdisplay"
},
"ifdefdisplay.darkColor": {
"type": "string",
"default": "#333",
"description": "Set dark mode color"
},
"ifdefdisplay.lightColor": {
"type": "string",
"default": "#ddd",
"description": "Set light mode color"
}
}
},
"languages": [
{
"id": "vue",
"extensions": [ ".vue" ]
},
{
"id": "vue-html"
},
{
"id": "sass",
"extensions": [ ".sass" ]
},
{
"id": "scss",
"extensions": [ ".scss" ]
}
],
"snippets": [
{
"language": "javascript",
"path": "./snippets/javascript.json"
},
{
"language": "typescript",
"path": "./snippets/javascript.json"
},
{
"language": "vue-html",
"path": "./snippets/vue-html.json"
},
{
"language": "css",
"path": "./snippets/style.json"
},
{
"language": "sass",
"path": "./snippets/style.json"
},
{
"language": "scss",
"path": "./snippets/style.json"
}
]
},
"dependencies": {
"xregexp": "3.1.0"
},
"devDependencies": {
"@vscode/test-electron": "^2.1.5",
"clean-webpack-plugin": "^4.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.23.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
}