-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
161 lines (161 loc) · 4.74 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
{
"name": "vscode-syntax-tree",
"displayName": "Syntax Tree",
"description": "VSCode support for the syntax_tree gem",
"icon": "doc/logo.png",
"version": "0.5.1",
"publisher": "ruby-syntax-tree",
"repository": {
"type": "git",
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/ruby-syntax-tree/vscode-syntax-tree/issues"
},
"packageManager": "[email protected]",
"engines": {
"vscode": "^1.68.0"
},
"activationEvents": [
"onLanguage:erb",
"onLanguage:haml",
"onLanguage:ruby",
"workspaceContains:Gemfile.lock",
"onCommand:syntaxTree.start",
"onCommand:syntaxTree.stop",
"onCommand:syntaxTree.restart",
"onCommand:syntaxTree.showOutputChannel",
"onCommand:syntaxTree.visualize"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "syntaxTree.start",
"title": "Syntax Tree: Start"
},
{
"command": "syntaxTree.stop",
"title": "Syntax Tree: Stop"
},
{
"command": "syntaxTree.restart",
"title": "Syntax Tree: Restart"
},
{
"command": "syntaxTree.showOutputChannel",
"title": "Syntax Tree: Show Output Channel"
},
{
"command": "syntaxTree.visualize",
"title": "Syntax Tree: Visualize"
}
],
"configuration": [
{
"type": "object",
"title": "Syntax Tree",
"properties": {
"syntaxTree.additionalPlugins": {
"default": [],
"markdownDescription": "Registers [extra behaviors](https://github.com/ruby-syntax-tree/syntax_tree#plugins) with the language server.",
"items": {
"type": "string"
},
"type": "array"
},
"syntaxTree.ignoreFiles": {
"default": "",
"markdownDescription": "A glob pattern of files to ignore for formatting.",
"type": "string"
},
"syntaxTree.printWidth": {
"markdownDescription": "The width to be used when formatting code.",
"type": "number"
},
"syntaxTree.singleQuotes": {
"default": false,
"markdownDescription": "Uses single-quoted strings when possible.",
"type": "boolean"
},
"syntaxTree.trailingComma": {
"default": false,
"markdownDescription": "Adds a trailing comma to multi-line array literals, hash literals, and method parameters.",
"type": "boolean"
}
}
},
{
"type": "object",
"title": "Advanced",
"properties": {
"syntaxTree.advanced.commandPath": {
"default": "",
"markdownDescription": "Absolute path to stree executable. Overrides default search order.\n\nSupports variables `${userHome}`, `${pathSeparator}`, and `${cwd}`",
"type": "string"
}
}
}
],
"colors": []
},
"scripts": {
"clean": "rm -rf ./out",
"compile": "yarn run esbuild-base --sourcemap",
"esbuild-base": "esbuild --bundle --external:vscode --external:vscode-languageclient --format=cjs --outfile=out/extension.js --platform=node src/extension.ts",
"lint": "eslint .",
"package": "vsce package --no-yarn --githubBranch main",
"publish": "vsce publish --no-yarn --githubBranch main",
"test": "node ./out/test/runTest.js",
"test-compile": "tsc -p ./",
"test-watch": "tsc --watch -p ./",
"vscode:prepublish": "yarn run esbuild-base -- --minify",
"watch": "yarn run esbuild-base --sourcemap --watch"
},
"dependencies": {
"vscode-languageclient": "8.1.0"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^20.0.0",
"@types/vscode": "^1.68.0",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"@vscode/test-electron": "^2.2.0",
"esbuild": "^0.19.0",
"eslint": "^8.22.0",
"glob": "^10.0.0",
"mocha": "^10.0.0",
"typescript": "^5.0.2",
"vsce": "^2.9.2"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"quotes": [
"error",
"double"
],
"semi": "error"
},
"ignorePatterns": [
"out"
]
},
"__metadata": {
"id": "b46118f9-0f6f-4320-9e2e-75c96492b4cb",
"publisherDisplayName": "ruby-syntax-tree",
"publisherId": "63942dce-de09-44d8-b863-4a1dbd5508c6",
"isPreReleaseVersion": false
}
}