-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
180 lines (180 loc) · 6.76 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
176
177
178
179
180
{
"name": "stlint-vscode-plugin",
"displayName": "StLint",
"description": "Plugin StLint for Visual Studio Code",
"version": "0.0.5",
"publisher": "xdan",
"engines": {
"vscode": "^1.33.0"
},
"icon": "icon.png",
"categories": [
"Linters"
],
"activationEvents": [
"onLanguage:stylus",
"onCommand:stlint.enable",
"onCommand:stlint.disable",
"onCommand:stlint.showOutputChannel"
],
"main": "./client/out/extension",
"contributes": {
"commands": [
{
"title": "Enable Stlint",
"category": "Stlint",
"command": "stlint.enable"
},
{
"title": "Disable Stlint",
"category": "Stlint",
"command": "stlint.disable"
},
{
"title": "Show Output Channel",
"category": "Stlint",
"command": "stlint.showOutputChannel"
}
],
"languages": [
{
"id": "stylus",
"aliases": [
"Stylus",
"stylus"
],
"extensions": [
".styl"
]
}
],
"configuration": {
"type": "object",
"title": "StLint",
"properties": {
"stlint.enable": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Controls whether stlint is enabled for JavaScript files or not."
},
"stlint.alwaysShowStatus": {
"type": "boolean",
"default": false,
"description": "Always show the Stlint status bar item.",
"scope": "window"
},
"stlint.nodePath": {
"scope": "resource",
"type": [
"string",
"null"
],
"default": null,
"description": "A path added to NODE_PATH when resolving the stlint module."
},
"stlint.stlintrcPath": {
"scope": "resource",
"type": "string",
"default": ".stlintrc",
"description": "The path to the .stlintrc file containing the options (see https://github.com/stylus/stlint/stlint#options)."
},
"stlint.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode and the stlint linter service."
},
"stlint.run": {
"scope": "resource",
"type": "string",
"enum": [
"onSave",
"onType"
],
"default": "onType",
"description": "Run the linter on save (onSave) or on type (onType)"
},
"stlint.workingDirectories": {
"scope": "resource",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"directory": {
"type": "string",
"description": "The working directory to use if a file's path start with this directory."
},
"changeProcessCWD": {
"type": "boolean",
"description": "Whether the process's cwd should be changed as well."
}
}
}
]
}
},
"stlint.packageManager": {
"scope": "resource",
"type": "string",
"enum": [
"npm",
"yarn"
],
"default": "npm",
"description": "The package manager you use to install node modules."
}
}
}
},
"keywords": [
"lint",
"linter",
"stylus",
"stylus-linter",
"vscode",
"plugin",
"stlint"
],
"scripts": {
"clear": "rm -rf ./node_modules && rm -rf ./server/node_modules && rm -rf ./client/node_modules && rm -rf ./client/out/ && rm -rf ./client/server/ && rm -rf ./client/tsconfig.tsbuildinfo",
"rmoldvsis": "rm -f \"./stlint-vscode-plugin-$npm_package_version.vsix\"",
"newversion": "npm run rmoldvsis && npm version patch --no-git-tag-version && vsce package",
"newversiongit": "git add --all && git commit -m \"New version $npm_package_version. Read more https://github.com/stylus/stlint/releases/tag/$npm_package_version \" && git tag $npm_package_version && git push --tags origin HEAD:master",
"vscode:prepublish": "cd client && npm run update-vscode && cd .. && npm run compile",
"compile:client": "tsc -p ./client/tsconfig.json",
"compile:server": "cd ./server && npm run compile && cd ..",
"watch:client": "tsc -w -p ./client/tsconfig.json",
"watch:server": "tsc -w -p ./server/src/tsconfig.json",
"compile": "npm run compile:client && npm run compile:server",
"watch": "npm run watch:client && npm run watch:server",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"postupdate": "cd client && npm update && cd ../server && npm update && cd .."
},
"devDependencies": {
"@types/mocha": "^2.2.42",
"@types/node": "^10.14.7",
"tslint": "^5.12.1",
"typescript": "^3.4.5",
"vscode": "^1.1.34"
},
"author": "Chupurnov Valeriy<[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/stylus/stlint-vscode-plugin"
},
"bugs": {
"url": "https://github.com/stylus/stlint-vscode-plugin/issues"
},
"license": "MIT"
}