-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
118 lines (118 loc) · 2.92 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
{
"name": "copyright-inserter",
"publisher": "minherz",
"displayName": "Copyright Inserter",
"description": "Inserts copyright header of the selected license into active editor",
"version": "1.1.0",
"icon": "resources/copyright.jpg",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "https://github.com/minherz/copyright-inserter"
},
"bugs": {
"url": "https://github.com/minherz/copyright-inserter/issues"
},
"engines": {
"vscode": "^1.40.0"
},
"extensionKind": [
"ui",
"workspace"
],
"categories": [
"Other"
],
"activationEvents": [
"onCommand:copyright.insertHeader"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "copyright.insertHeader",
"title": "Copyright: Insert Header"
}
],
"configuration": {
"id": "copyrightInserter",
"title": "Copyright Inserter",
"properties": {
"copyrightInserter.license": {
"order": 1,
"type": "string",
"default": "apache",
"enum": [
"apache",
"agpl3",
"bsd",
"gpl3",
"mit",
"mpl2",
"user"
],
"enumItemLabels": [
"Apache 2.0",
"Affero GPL 3",
"BSD",
"GPL 3",
"MIT",
"MPL 2",
"User defined"
],
"description": "A type of the license. Select \"User defined\" if you want to provide your custom license text."
},
"copyrightInserter.holder": {
"order": 2,
"type": "string",
"default": "Google LLC",
"maxLength": 128,
"description": "Copyright holder"
},
"copyrightInserter.year": {
"order": 3,
"type": "string",
"default": "",
"pattern": "^$|^\\d{4}$",
"patternErrorMessage": "A year should be empty or composed of 4 digits",
"description": "Copyright year. If not defined, the current year is used"
},
"copyrightInserter.useLineComment": {
"order": 5,
"type": "boolean",
"default": false,
"description": "When language supports block and line comments always enforces the use of line comment"
},
"copyrightInserter.linePrefix": {
"order": 6,
"type": "string",
"default": "",
"description": "A short prefix string to insert into all copyright lines before the text (except for first and last lines)"
},
"copyrightInserter.userText": {
"order": 4,
"type": "string",
"default": "",
"maxLength": 2048,
"description": "User-defined license text. Use '${year}' to mark the place for the copyright year and use '${holder}' to mark the place for the copyright holder."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/node": "^10.12.21",
"@types/vscode": "^1.37.0",
"tslint": "^5.19.0",
"typescript": "^3.3.1"
},
"dependencies": {
"jsonc-parser": "^3.0.0"
}
}