-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
199 lines (199 loc) · 5.94 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"name": "fileheader-pro",
"displayName": "Fileheader Pro",
"description": "Fileheader VSCode extension with out-of-box and full customizable",
"version": "1.3.3",
"license": "MIT",
"publisher": "IronLu233",
"icon": "assets/icon.png",
"repository": "https://github.com/IronLu233/fileheader-pro",
"author": {
"name": "IronLu233",
"email": "[email protected]"
},
"bugs": "https://github.com/IronLu233/fileheader-pro/issues",
"engines": {
"vscode": "^1.68.0"
},
"categories": [
"Formatters",
"Other"
],
"keywords": [
"fileheader",
"copyright",
"文件头部注释",
"许可证",
"Javascript",
"Typescript",
"Python"
],
"activationEvents": [
"*"
],
"testWorkspacePath": "./node_modules/test-workspace",
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "fileheader-pro.fileheader",
"title": "Fileheader Pro: Add Fileheader"
},
{
"command": "fileheader-pro.generateCustomTemplate",
"title": "Fileheader Pro: Generate Custom Fileheader Template"
}
],
"configuration": {
"title": "Fileheader Pro",
"properties": {
"FileheaderPro.currentUserName": {
"type": "string",
"description": "The fixed current user. The default is from your VCS"
},
"FileheaderPro.currentUserEmail": {
"type": "string",
"description": "The fixed current user email. the default is from your VCS"
},
"FileheaderPro.companyName": {
"type": "string",
"default": "YourCompanyName",
"description": "Your company name,"
},
"FileheaderPro.dateFormat": {
"type": "string",
"default": "YYYY-MM-DD HH:mm:ss",
"markdownDescription": "The date format, see [Dayjs Document](https://momentjs.com/docs/#/displaying/format)"
},
"FileheaderPro.autoInsertOnCreateFile": {
"type": "boolean",
"default": true,
"description": "Auto insert fileheader when create file"
},
"FileheaderPro.autoUpdateOnSave": {
"type": "boolean",
"default": true,
"description": "Auto update fileheader when save file"
},
"FileheaderPro.disableFields": {
"type": "array",
"default": [
"mtime"
],
"items": {
"type": "string",
"enum": [
"birthtime",
"mtime",
"authorName",
"authorEmail",
"userName",
"userEmail",
"companyName",
"projectName",
"filePath",
"dirPath",
"fileName"
]
},
"markdownEnumDescriptions": [
"file birth time. will get it from VCS or fallback to filesystem when it is not available",
"file last modified time. will get it from VCS or fallback to filesystem when it is not available",
"file author name. if the file is tracked by VCS, it will get the author name from VCS, else it will get it from current user name",
"file author email. if the file is tracked by VCS, it will get the author email from VCS, else it will get it from current user email",
"current user name. the default is from your git config. Can be override by #FileheaderPro.currentUserName#",
"current user email. the default is from your git config. Can be override by #FileheaderPro.currentUserEmail#",
"Company name",
"project name. the name of current project",
"the file path. relative to project root. POSIX path separator",
"the directory path. relative to project root. POSIX path separator",
"the file name including extension"
],
"markdownDescription": "Disable some fields in default fileheader. This properties can not affect the custom fileheader"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"watch": "webpack --watch",
"initTestWorkspace": "node scripts/initTestWorkspace.js",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint && yarn run initTestWorkspace",
"lint": "eslint src --ext ts",
"test:unit": "cross-env TEST_WORKSPACE_DIR=./node_modules/test-workspace node ./out/tests/runUnit.js",
"test:integration": "cross-env TEST_WORKSPACE_DIR=./node_modules/test-workspace node ./out/tests/runIntegration.js",
"test": "yarn run test:unit && yarn run test:integration",
"deploy": "vsce package --allow-star-activation && vsce publish --allow-star-activation"
},
"devDependencies": {
"@types/chai": "^4.3.1",
"@types/glob": "^7.2.0",
"@types/invariant": "^2.2.35",
"@types/lodash-es": "^4.17.6",
"@types/mocha": "^9.1.1",
"@types/node": "16.x",
"@types/object-hash": "^2.2.1",
"@types/proxyquire": "^1.3.28",
"@types/rewire": "^2.5.28",
"@types/rimraf": "^3.0.2",
"@types/sinon": "^10.0.12",
"@types/vscode": "^1.68.0",
"@types/yargs": "^17.0.10",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"@vscode/test-electron": "^2.1.3",
"chai": "^4.3.6",
"cross-env": "^7.0.3",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"proxyquire": "^2.1.3",
"rewire": "^6.0.0",
"rimraf": "^3.0.2",
"sinon": "^14.0.0",
"ts-loader": "^9.3.0",
"typescript": "^4.7.2",
"vsce": "^2.9.2",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
"yargs": "^17.5.1"
},
"dependencies": {
"dayjs": "^1.11.3",
"delay": "^5.0.0",
"eval": "^0.1.8",
"fs.promises.exists": "^1.1.3",
"invariant": "^2.2.4",
"lodash-es": "^4.17.21",
"object-hash": "^3.0.0",
"source-map-support": "^0.5.21",
"upath": "^2.0.1",
"winston": "^3.8.0"
},
"__metadata": {
"id": "740b13e8-551e-49f0-a617-c387e8789c2b",
"publisherDisplayName": "IronLu233",
"publisherId": "f84bf35f-be51-4f4b-a389-8408b2ae89a7",
"isPreReleaseVersion": false
},
"nyc": {
"extension": [
".ts",
".tsx"
],
"exclude": [
"**/*.d.ts"
],
"reporter": [
"html"
],
"all": true
}
}