-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
181 lines (181 loc) · 8.29 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
{
"name": "topper",
"displayName": "topper",
"description": "A fileheader utility.",
"version": "1.5.0",
"publisher": "sidmishraw",
"engines": {
"vscode": "^1.55.0"
},
"categories": [
"Snippets",
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "topper.addTopHeader",
"title": "Topper: Add default profile header"
}
],
"configuration": {
"type": "object",
"title": "Topper configuration",
"properties": {
"topper.customTemplateParameters": {
"type": "array",
"description": "Configures template parameters. These parameters can be used in the header templates as placeholders.",
"default": [
{
"personalProfile": {
"author": "bulbasaur",
"website": "bulbasaur.github.bitbucket.yababbdadado.com",
"copyright": "None \n None",
"license": "None",
"email": "[email protected]"
}
},
{
"officeProfile": {
"author": "John Doe",
"department": "Product Development",
"email": "[email protected]"
}
}
]
},
"topper.defaultHeaderTemplate": {
"type": "object",
"description": "The default header template that can be used for all languages if no-custom template is defined. The default language ID is `default`. Please don't use some other language ID for the default header template.",
"default": {
"default": {
"headerBegin": "/**",
"headerPrefix": "*",
"headerEnd": "*/",
"template": [
"${headerBegin}",
"${headerPrefix} ${fileName}",
"${headerPrefix} @author ${author}",
"${headerPrefix} @description ${description}",
"${headerPrefix} @created ${createdDate}",
"${headerPrefix} @copyright ${copyright}",
"${headerPrefix} @last-modified ${lastModifiedDate}",
"${headerEnd}"
]
}
}
},
"topper.headerTemplates": {
"type": "array",
"description": "Configure the templates for the headers depending on the languageId inferred by the editor. The list of language Ids can be found here: https://code.visualstudio.com/docs/languages/identifiers. \nIf the file's languageId is not configured here, it defaults to the `defaultCStyled` header template. \nPlease do not delete this template. Copy it over when configuring this section. \nNote: Please keep the `defaultCStyled` as the first element in the list of all the header templates. \nFor more information, refer to the Readme.md.",
"default": [
{
"python": {
"headerBegin": "#",
"headerPrefix": "#",
"headerEnd": "#",
"template": [
"${headerBegin}",
"${headerPrefix} ${fileName}",
"${headerPrefix} @author ${author}",
"${headerPrefix} @description ${description}",
"${headerPrefix} @created ${createdDate}",
"${headerPrefix} @last-modified ${lastModifiedDate}",
"${headerEnd}"
]
}
},
{
"php": {
"headerBegin": "/*",
"headerPrefix": "*",
"headerEnd": "*/",
"template": [
"${headerBegin}",
"${headerPrefix} ${fileName}",
"${headerPrefix} @author ${author}",
"${headerPrefix} @description ${description}",
"${headerPrefix} @created ${createdDate}",
"${headerPrefix} @last-modified ${lastModifiedDate}",
"${headerEnd}"
]
}
}
]
},
"topper.lastModified": {
"type": "string",
"description": "The key of the last-modified field in the header template. For eg: @last-modified. Topper looks for this to determine if it needs to update the last-modified date-time value in your header.",
"default": "@last-modified"
},
"topper.lastModifiedRegex": {
"type": "string",
"format": "regex",
"description": "The regular expression used for capturing the last modified date in the header and auto-update it when the file is saved.",
"default": "[ ]*\\@last\\-modified\\s*.?\\s+((\\d{4}-\\d{2}-\\d{2})T(\\d{2}:\\d{2}:\\d{2}\\.\\d{3})Z([\\+\\-]?\\d{2}:\\d{2}))\\n*"
},
"topper.dateFormat": {
"type": "string",
"description": "The format to be used for created date and last modified date values in the header. Topper uses Moment.js so please refer to the date formatting rules mentioned in moment.js. https://momentjs.com/docs/ . The default is ISO date format.",
"default": "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]Z"
},
"topper.insertAtRow": {
"type": "number",
"description": "The row from where to insert the header string at! Defaults to 0",
"format": "integer",
"default": 0
},
"topper.insertAtCol": {
"type": "number",
"description": "The column from where to insert the header string at! Defaults to 0",
"format": "integer",
"default": 0
}
}
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc --watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"copy": "cp -r ./src/resources ./out/src",
"clean": "rm -r ./out/src/resources",
"test": "node ./node_modules/vscode/bin/test",
"version": "node ./scripts/version.js && git add CHANGELOG.md"
},
"devDependencies": {
"@types/bluebird": "^3.5.26",
"@types/mocha": "^5.2.1",
"@types/node": "^8.10.39",
"@types/resolve": "0.0.8",
"@types/vscode": "^1.55.0",
"cross-env": "^5.1.6",
"mocha": "^8.3.2",
"typescript": "^4.2.4",
"vscode-test": "^1.5.2"
},
"keywords": [
"file header",
"fileheader",
"template",
"code template"
],
"repository": {
"type": "git",
"url": "https://github.com/sidmishraw/topper.git"
},
"bugs": {
"url": "https://github.com/sidmishraw/topper/issues",
"email": "[email protected]"
},
"dependencies": {
"@types/mustache": "^0.8.32",
"bluebird": "^3.5.4",
"moment": "^2.29.4",
"mustache": "^3.0.1"
}
}