forked from holmesconan/vscode-wordcount-cjk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
107 lines (107 loc) · 3.17 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
{
"name": "vscode-wordcount-cjk",
"displayName": "Word Count CJK",
"description": "A word count extension that supports CJK languages.",
"version": "1.3.1",
"publisher": "holmescn",
"license": "SEE LICENSE IN LICENSE",
"keywords": [
"word",
"count",
"chinese",
"cjk"
],
"preview": false,
"homepage": "https://github.com/holmescn/vscode-wordcount-cjk/blob/master/README.md",
"bugs": {
"url": "https://github.com/holmescn/vscode-wordcount-cjk/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/holmescn/vscode-wordcount-cjk.git"
},
"engines": {
"vscode": "^1.0.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:markdown",
"onLanguage:plaintext",
"onCommand:extension.wordcount",
"onCommand:extension.wordcountActivate"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "extension.wordcount",
"title": "Word Count"
},
{
"command": "extension.wordcountActivate",
"title": "Word Count Activate"
},
{
"command": "extension.wordcountDeactivate",
"title": "Word Count Deactivate"
}
],
"configuration": {
"type": "object",
"title": "Word count CJK configuration",
"properties": {
"wordcount_cjk.statusBarTextTemplate": {
"type": "string",
"default": "共 ${cjk} 字",
"description": "Customize the status bar text."
},
"wordcount_cjk.statusBarTooltipTemplate": {
"type": "string",
"default": "中文字数:\\t\\t${cjk}\\n非 ASCII 字符数:\\t${total - ascii}\\n英文单词数:\\t\\t${en_words}\\n非空白字符数:\\t\\t${total - whitespace}\\n总字符数:\\t\\t${total}",
"description": "Customize the status bar tooltip."
},
"wordcount_cjk.regexWordChar": {
"type": "string",
"default": "\\w",
"description": "The regular expression used to test if a char is a word char."
},
"wordcount_cjk.regexASCIIChar": {
"type": "string",
"default": "[\\u0000-\\u00FF]",
"description": "The regular expression used to test if a char is a ASCII char."
},
"wordcount_cjk.regexWhitespaceChar": {
"type": "string",
"default": "\\s",
"description": "The regular expression used to test if a char is a whitespace."
},
"wordcount_cjk.activateLanguages": {
"type": "array",
"default": [
"markdown",
"plaintext"
],
"description": "The languages to activate this extension."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"typescript": "^2.6.1",
"vscode": "^1.1.6",
"tslint": "^5.8.0",
"mocha": "^2.5.3",
"@types/node": "^7.0.43",
"@types/mocha": "^2.2.42"
}
}