-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
137 lines (137 loc) · 3.63 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
{
"name": "vscode-xhtml2pug",
"displayName": "vscode-xhtml2pug",
"description": "Convert HTML, Vue, Angular to PUG",
"version": "2.0.0",
"icon": "xhtml2pug-logo.png",
"publisher": "dimensi",
"license": "MIT",
"engines": {
"vscode": "^1.63.0"
},
"npm": {
"publish": false
},
"repository": {
"type": "git",
"url": "https://github.com/dimensi/vscode-xhtml2pug"
},
"author": {
"name": "Nikita Nafranets",
"email": "[email protected]",
"url": "https://dimensi.dev"
},
"tags": [
"vscode",
"pug",
"html2pug"
],
"categories": [
"Programming Languages",
"Formatters",
"Other"
],
"activationEvents": [
"onCommand:vscode-xhtml2pug.transformHTML2Pug",
"onCommand:vscode-xhtml2pug.transformVue2Pug"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "vscode-xhtml2pug.transformHTML2Pug",
"title": "xHTML2Pug: Convert HTML to Pug"
},
{
"command": "vscode-xhtml2pug.transformVue2Pug",
"title": "xHTML2Pug: Convert Vue, Angular to Pug"
}
],
"keybindings": [
{
"command": "vscode-xhtml2pug.transformVue2Pug",
"key": "ctrl+alt+p",
"mac": "cmd+alt+p",
"linux": "ctrl+alt+p"
}
],
"configuration": {
"title": "xHTML2Pug",
"properties": {
"xhtml2pug.indent": {
"type": "string",
"default": "spaces",
"enum": [
"spaces",
"tabs"
],
"description": "Indent"
},
"xhtml2pug.numberOfSpaces": {
"type": "number",
"default": 2,
"description": "Number of spaces for indents"
},
"xhtml2pug.fragment": {
"type": "boolean",
"default": true,
"description": "Don't wrap into html > body"
},
"xhtml2pug.commas": {
"type": "boolean",
"default": false,
"description": "Commas in attributes"
},
"xhtml2pug.encode": {
"type": "boolean",
"default": true,
"description": "Encode html characters."
},
"xhtml2pug.doubleQuotes": {
"type": "boolean",
"default": false,
"description": "Use double quotes for attributes"
},
"xhtml2pug.inlineCSS": {
"type": "boolean",
"default": false,
"description": "Place all classes in class attribute"
},
"xhtml2pug.classesAtEnd": {
"type": "boolean",
"default": false,
"description": "Place all classes after attributes"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.63.0",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"@vscode/test-electron": "^1.6.2",
"esbuild": "^0.14.10",
"eslint": "^8.1.0",
"glob": "^7.1.7",
"mocha": "^9.1.3",
"release-it": "^14.11.8",
"typescript": "^4.4.4"
},
"dependencies": {
"xhtml2pug": "^4.0.2"
}
}