forked from Serhioromano/vscode-st
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
141 lines (141 loc) · 4.56 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
{
"name": "vscode-st",
"displayName": "Structured Text language Support",
"description": "Supports for syntax highlights, snippets for IEC 61131-3 Structured Text",
"version": "1.12.14",
"publisher": "Serhioromano",
"sponsor": {
"url": "https://www.paypal.com/donate/?hosted_button_id=UTU4EMPLLLX54"
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"publish": "vsce package && gh release create $(node -pe \"require('./package.json')['version']\") --generate-notes \"./vscode-gitflow-$(node -pe \"require('./package.json')['version']\").vsix\" && vsce publish",
"_vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"vars": "env | grep npm_package_",
"test": "node ./out/test/runTest.js"
},
"_main": "./out/extension.js",
"main": "./out/main.js",
"repository": {
"type": "git",
"url": "https://github.com/Serhioromano/vscode-st"
},
"keywords": [
"ST",
"Structured Text",
"IEC 61131-3",
"PLC",
"TwinCAT3",
"CoDeSys",
"logi.CAD 3"
],
"author": "Sergey Romanov",
"license": "MIT",
"bugs": {
"url": "https://github.com/Serhioromano/vscode-st/issues",
"email": "[email protected]"
},
"homepage": "https://github.com/Serhioromano/vscode-st#readme",
"engines": {
"vscode": "^1.36.0"
},
"activationEvents": [
"onLanguage:st",
"onCommand:extension.st.autoformat"
],
"categories": [
"Programming Languages",
"Snippets",
"Formatters"
],
"icon": "icon.drawio.png",
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.36.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
"esbuild": "^0.14.10",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"typescript": "^4.6.3",
"vsce": "^2.6.4"
},
"contributes": {
"configuration": {
"type": "object",
"title": "Structured Text configuration",
"properties": {
"st.format.enable": {
"type": "boolean",
"default": true,
"description": "Automatically convert constants like TRUE, FALSE, NULL, or types like INT, BOOL, ...and other keywords to upper case."
}
}
},
"languages": [
{
"id": "st",
"aliases": [
"Structured Text",
"ST"
],
"firstLine": "^([\\(\\/\\*]?.*)?(PROGRAM ).*",
"extensions": [
".st",
".scl",
".exp",
".iecplc",
".iecst",
".TcDUT",
".TcPOU",
".iecstl"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"scopeName": "source.st",
"language": "st",
"path": "./syntaxes/st.tmLanguage.json"
},
{
"scopeName": "markdown.iecst.codeblock",
"path": "./syntaxes/md.codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.iecstmd": "st"
}
},
{
"scopeName": "xml.iecst.codeblock",
"path": "./syntaxes/xml.codeblock.json",
"injectTo": [
"text.xml"
],
"embeddedLanguages": {
"meta.embedded.block.iecstxml": "st"
}
}
],
"snippets": [
{
"language": "st",
"path": "./snippets/st.snippets.json"
}
]
}
}