-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
175 lines (175 loc) · 5.3 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
{
"name": "less-watch",
"displayName": "less watch",
"description": "listen less file compilation to css(监视Less文件 实时编译成css)",
"version": "0.1.0",
"publisher": "2468785842",
"engines": {
"vscode": "^1.89.0"
},
"icon": "logo.jpg",
"repository": {
"type": "git",
"url": "https://github.com/2468785842/less-watch.git"
},
"keywords": [
"watch",
"less",
"less watch",
"watch less",
"watch live",
"live watch",
"Compiler",
"Less Compiler"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:less"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "lessWatch.command.watchLessOn",
"title": "Watch Less On",
"category": "Less Watch"
},
{
"command": "lessWatch.command.watchLessOff",
"title": "Watch Less Off",
"category": "Less Watch"
},
{
"command": "lessWatch.command.compileAllLess",
"title": "Compile All Less",
"category": "Less Watch"
},
{
"command": "lessWatch.command.openOutputWindow",
"title": "Open Less Watch Output Window",
"category": "Less Watch"
}
],
"configuration": {
"title": "Less Watch Compile Config",
"properties": {
"lessWatchCompile.settings.compile": {
"type": "object",
"description": "Configuration options for LESS Watch extension.",
"properties": {
"excludes": {
"type": "array",
"default": [
"**/node_modules/**",
"**/out/"
],
"description": "exclude of Scan Folder (不需要扫描的文件夹)"
},
"compress": {
"type": "boolean",
"default": true,
"description": "Compress .css files? (removes unnecessary white-space)"
},
"ieCompat": {
"type": "boolean",
"default": true,
"description": "IE8 compatiblity mode? (restricts size of data-uri to 32KB)"
},
"sourceMap": {
"type": "object",
"description": "setting of generated .map",
"properties": {
"outputSourceFiles": {
"type": "boolean",
"description": "Should generated .map file?",
"default": true
},
"sourceMapFileInline": {
"type": "boolean",
"description": "Should source maps be inlined within the .css file? (requires sourceMap: true)",
"default": true
}
}
},
"out": {
"type": "string",
"description": "Default 'out' setting. Set to false to default to no output.",
"default": "./css"
},
"outExt": {
"type": "string",
"description": "The file extension to use for generated .css files",
"default": ".min.css"
},
"relativeUrls": {
"type": "boolean",
"default": false,
"description": "Rewrite URLs from imported files, relative to the importing file (default: false)"
},
"javascriptEnabled": {
"type": "boolean",
"default": false,
"description": "Enable inline javascript in less files within backticks (`) (default: false)"
},
"autoprefixer": {
"type": [
"string",
"array",
"null"
],
"description": "The 'browsers' argument for autoprefixer plugin (see https://github.com/ai/browserslist#queries)",
"default": "> 5%, last 2 Chrome versions, not ie 6-9"
},
"outputWindow": {
"type": "boolean",
"default": true,
"description": "打开编译详细信息"
},
"math": {
"type": "string",
"description": "The `math` mode used by less. Default is `parens-division` (see http://lesscss.org/usage/#less-options-math)",
"oneOf": [
"parens-division",
"parens",
"always",
"strict",
"strict-legacy"
],
"default": "parens-division"
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "npx tsc -p ./",
"watch": "npx tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/less": "^3.0.6",
"@types/mkpath": "^0.1.32",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.11",
"@types/vscode": "^1.89.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@vscode/test-electron": "^1.6.1",
"eslint": "^8.56.0",
"mocha": "^10.4.0",
"typescript": "^5.4.5"
},
"dependencies": {
"glob": "^10.3.14",
"less": "4.2.0",
"less-plugin-autoprefix": "^2.0.0",
"minimatch": "^9.0.4",
"mkpath": "^1.0.0"
}
}