Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
182 lines (182 loc) · 5.63 KB
/
Copy pathpackage.json
File metadata and controls
182 lines (182 loc) · 5.63 KB
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
{
"name": "cfml-refactor",
"displayName": "CFML Refactor",
"description": "Detect and refactor database queries in CFML files.",
"version": "0.1.19",
"publisher": "cfml-refactor",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:cfml",
"onLanguage:html"
],
"main": "./dist/extension.js",
"repository": {
"type": "git",
"url": "https://github.com/jtl3d/cfml-refactor.git"
},
"license": "MIT",
"contributes": {
"commands": [
{
"command": "cfml-refactor.detectQueries",
"title": "CFML Refactor: Detect Queries"
},
{
"command": "cfml-refactor.convertQueriesInPlace",
"title": "CFML Refactor: Convert Queries In Place"
},
{
"command": "cfml-refactor.renameQueriesToPrc",
"title": "CFML Refactor: Rename Query Variables to prc"
},
{
"command": "cfml-refactor.hoistQueries",
"title": "CFML Refactor: Hoist Queries"
},
{
"command": "cfml-refactor.indexWorkspace",
"title": "CFML Refactor: Index Workspace"
},
{
"command": "cfml-refactor.findSimilarQueries",
"title": "CFML Refactor: Find Similar Queries"
},
{
"command": "cfml-refactor.findExtractableFunctions",
"title": "CFML Refactor: Find Extractable Functions"
},
{
"command": "cfml-refactor.findExtractableFunctionsWorkspace",
"title": "CFML Refactor: Find Extractable Functions (Workspace)"
},
{
"command": "cfml-refactor.convertCfmToHandler",
"title": "CFML Refactor: Convert CFM to ColdBox Handler"
},
{
"command": "cfml-refactor.convertUrlFormToRc",
"title": "CFML Refactor: Convert url/form References to rc"
},
{
"command": "cfml-refactor.stripViewToLogic",
"title": "CFML Refactor: Strip View to Logic"
}
],
"configuration": {
"title": "CFML Refactor",
"properties": {
"cfml-refactor.indexOnActivation": {
"type": "boolean",
"default": true,
"description": "Build query index when extension activates if missing"
},
"cfml-refactor.normalizeIdentifierCase": {
"type": "boolean",
"default": false,
"description": "Treat identifier case as insignificant during matching"
},
"cfml-refactor.stripTableAliases": {
"type": "boolean",
"default": false,
"description": "Strip single-letter table aliases during normalization"
},
"cfml-refactor.suggestSimilarQueries": {
"type": "boolean",
"default": false,
"description": "Surface TABLE-OVERLAP matches in addition to EXACT/STRUCTURAL"
},
"cfml-refactor.indexExclude": {
"type": "array",
"default": [
"node_modules",
"dist",
"build",
".git"
],
"description": "Glob patterns to exclude from indexing"
},
"cfml-refactor.viewSafeFunctions": {
"type": "array",
"default": [],
"description": "Additional function names that are safe in views (extends the built-in list)"
},
"cfml-refactor.viewFolderPatterns": {
"type": "array",
"default": [
"**/views/**/*.cfm"
],
"description": "Glob patterns identifying view files for workspace scans"
},
"cfml-refactor.handlerLogicPrefixes": {
"type": "array",
"default": [
"get",
"fetch",
"load",
"find",
"lookup",
"calculate",
"compute",
"validate",
"check",
"is",
"has",
"can",
"should",
"process",
"apply",
"transform",
"convert"
],
"description": "Function name prefixes that suggest handler logic"
},
"cfml-refactor.servicePatterns": {
"type": "array",
"default": [
"Service",
"DAO",
"Gateway",
"Manager",
"Repository",
"Model"
],
"description": "Variable name suffixes that suggest service objects"
},
"cfml-refactor.defaultDatasourcePatterns": {
"type": "array",
"default": [],
"description": "Datasource attribute values matching these patterns will be omitted from queryExecute options. Exact-match strings against the literal datasource attribute text. Leave empty to always emit datasource."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "node esbuild.js --production",
"build": "node esbuild.js",
"watch": "node esbuild.js --watch",
"compile-tests": "tsc -p ./tsconfig.test.json",
"pretest": "npm run compile-tests",
"test": "mocha \"out-test/test/**/*.test.js\"",
"typecheck": "tsc --noEmit",
"package": "vsce package --out dist/",
"package:patch": "npm version patch --no-git-tag-version && npm run package",
"package:minor": "npm version minor --no-git-tag-version && npm run package",
"release:patch": "npm version patch && git push && git push --tags",
"release:minor": "npm version minor && git push && git push --tags"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^2.24.0",
"esbuild": "^0.20.0",
"mocha": "^10.3.0",
"typescript": "^5.4.0"
}
}