-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
executable file
·117 lines (117 loc) · 4.82 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
{
"name": "cpp-class-creator",
"displayName": "C++ Class Creator",
"description": "A very simple class creation extension for Visual Studio Code from FleeXo",
"publisher": "FleeXo",
"icon": "icon/logo.png",
"repository": {
"url": "https://github.com/tzAcee/cpp-class-creator.git"
},
"version": "1.3.0",
"engines": {
"vscode": "^1.87.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.createClass"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"title": "Create C++ Class",
"command": "extension.createClass"
}
],
"menus": {
"explorer/context": [
{
"group": "navigation@-1",
"command": "extension.createClass"
}
]
},
"keybindings": [
{
"command": "extension.createClass",
"key": "alt+x",
"when": "editorTextFocus"
}
],
"languages": [
{
"id": "cpp",
"extensions": [
".cpp",
".hpp"
]
}
],
"configuration": [
{
"title": "C++ Class Creator",
"properties": {
"cpp.creator.setPath": {
"type": [
"string",
"null",
"boolean"
],
"default": null,
"description": "Specifies the path, where the class is created or set it to true when you want the path to be dynamically inputted. [setting: cpp.creator.setPath = \"path\" or true]"
},
"cpp.creator.headerFileContentPreset": {
"type": "string",
"editPresentation": "multilineText",
"default": "#ifndef {{*CLASSNAMEUPPER*}}_H\n#define {{*CLASSNAMEUPPER*}}_H\n\n#pragma once\n\nclass {{*CLASSNAME*}}\n{\npublic:\n {{*CLASSNAME*}}();\n ~{{*CLASSNAME*}}();\n\nprivate:\n\n};\n\n#endif",
"description": "Content of your created header file. \nAvailable commands are:\n{{*CLASSNAME*}} - entered classname.\n{{*CLASSNAMEUPPER*}} - entered classname in upper-case letters.\n{{*CLASSNAMELOWER*}} - entered classname in lower-case letters.\n{{*CLASSNAMELOWER*}} - entered classname in lower-case letters.\n{{*CLASSNAMECAPI*}} - default classname with capitalized first letter.\n{{*HEADERFILENAME*}} - default headerfilename as entered in the settings. \n{{*SOURCEFILENAME*}} - default sourcefilename as entered in the settings.\n{{*CURRENTDATETIME*}} - current date and time.\n{{*CURRENTDATE*}} - current date.\n{{*CURRENTTIME*}} - current time."
},
"cpp.creator.sourceFileContentPreset": {
"type": "string",
"editPresentation": "multilineText",
"default": "#include \"{{*HEADERFILENAME*}}\"\n\n{{*CLASSNAME*}}::{{*CLASSNAME*}}()\n{\n\n}\n\n{{*CLASSNAME*}}::~{{*CLASSNAME*}}()\n{\n\n}",
"description": "Content of your created source file. \nAvailable commands are:\n{{*CLASSNAME*}} - entered classname.\n{{*CLASSNAMEUPPER*}} - entered classname in upper-case letters.\n{{*CLASSNAMELOWER*}} - entered classname in lower-case letters.\n{{*CLASSNAMECAPI*}} - default classname with capitalized first letter.\n{{*HEADERFILENAME*}} - default headerfilename as entered in the settings. \n{{*SOURCEFILENAME*}} - default sourcefilename as entered in the settings.\n{{*CURRENTDATETIME*}} - current date and time.\n{{*CURRENTDATE*}} - current date.\n{{*CURRENTTIME*}} - current time."
},
"cpp.creator.sourceFileNamePreset": {
"type": "string",
"default": "{{*CLASSNAME*}}.cpp",
"description": "Name of your source file. \nAvailable commands are:\n{{*CLASSNAME*}} - entered classname.\n{{*CLASSNAMEUPPER*}} - entered classname in upper-case letters.\n{{*CLASSNAMELOWER*}} - entered classname in lower-case letters."
},
"cpp.creator.headerFileNamePreset": {
"type": "string",
"default": "{{*CLASSNAME*}}.h",
"description": "Name of your header file. \nAvailable commands are:\n{{*CLASSNAME*}} - entered classname.\n{{*CLASSNAMEUPPER*}} - entered classname in upper-case letters.\n{{*CLASSNAMELOWER*}} - entered classname in lower-case letters."
},
"cpp.creator.createFolder": {
"type": "boolean",
"default": false,
"description": "Create an extra folder for the class."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "extest setup-and-run out/test/ui-test/*.test.js -m ./mocharc.js",
"test:file-name-replacement": "extest setup-and-run out/test/ui-test/file-name-replacement.test.js -m ./mocharc.js",
"test:file-content-replacement": "extest setup-and-run out/test/ui-test/file-content-replacement.test.js -m ./mocharc.js",
"test:negative": "extest setup-and-run out/test/ui-test/negative.test.js -m ./mocharc.js"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.22",
"@types/vscode": "^1.87.0",
"glob": "^7.1.5",
"mocha": "^10.3.0",
"typescript": "^5.4.2",
"vscode-extension-tester": "^7.2.0",
"vscode-test": "^1.2.2"
}
}