-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
162 lines (162 loc) · 4.6 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
{
"name": "vscode-behavior-analysis",
"displayName": "behavior-analysis",
"description": "Analyze javascript behavior to provide feedbacks about code usage, it uses traces gathered during test and production runs.",
"version": "1.0.0",
"engines": {
"vscode": "^1.34.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:typescript",
"onCommand:BehaviorProvider.showContextViewer",
"onCommand:BehaviorProvider.showHierarchicalViewer",
"onCommand:BehaviorAnalysis.launchInstrumentedBrowser"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "BehaviorProvider.showContextViewer",
"title": "show n-gram view",
"category": "View"
},
{
"command": "BehaviorProvider.showHierarchicalViewer",
"title": "show tree view",
"category": "View"
},
{
"command": "BehaviorProvider.uploadTrace",
"title": "upload current trace to the database"
},
{
"command": "BehaviorProvider.launchInstrumentedBrowser",
"title": "launch instrumented browser"
},
{
"command": "BehaviorProvider.createDataBase",
"title": "create database",
"category": "Setup"
},
{
"command": "BehaviorProvider.installBasicPreset",
"title": "Copy the basic extended babel plugin and preset",
"category": "Setup"
}
],
"configuration": {
"title": "BehaviorAnalysis",
"properties": {
"behaviorAnalysis.extendedBabelPlugin": {
"type": "string",
"description": "Path to the extended babel plugin in charge of manipulating actual code"
},
"behaviorAnalysis.interception.interceptDeclaredFunctions": {
"type": "boolean",
"default": true,
"description": "Intercept functions declared in the current package"
},
"behaviorAnalysis.interception.interceptDependenciesFunctions": {
"type": "boolean",
"default": false,
"description": "Intercept function declared by dependencies"
},
"behaviorAnalysis.interception.automateInstrumentation": {
"type": [
"string",
"boolean"
],
"default": false,
"enum": [
"gutenberg",
true,
false
],
"description": "Automatically setup instrumentation"
},
"behaviorAnalysis.database.identification": {
"type": [
"object"
],
"default": {
"user": "ubehavior",
"host": "localhost",
"database": "behaviordb",
"password": "password",
"port": 5432
},
"scope": "window",
"description": "The data necessary to connect to the database containing the traces"
},
"behaviorAnalysis.database.stackFile": {
"type": [
"string"
],
"default": "behaviorDataBaseStack.yml",
"description": "the file containing the stack for docker compose"
},
"behaviorAnalysis.database.mappingFile": {
"type": [
"string"
],
"default": "modifications.csv",
"description": "Mapping old and new position of instrumented ranges"
},
"behaviorAnalysis.experimentation.startPage": {
"type": [
"string"
],
"format": "uri",
"default": "about:blank",
"description": "The start page of the instrumented browser"
},
"behaviorAnalysis.experimentation.tracesOutputDirectory": {
"type": [
"string"
],
"default": "/tmp/behavior_traces",
"description": "The output directory where traces will be stored"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/babel__traverse": "^7.0.6",
"@types/d3": "^5.7.2",
"@types/event-stream": "^3.3.34",
"@types/mocha": "^2.2.42",
"@types/mysql": "^2.15.6",
"@types/node": "^10.14.10",
"@types/pg": "^7.4.14",
"@types/pg-copy-streams": "^1.2.0",
"tslint": "^5.12.1",
"typescript": "^3.3.1",
"vscode": "^1.1.28"
},
"dependencies": {
"@babel/parser": "^7.4.5",
"@babel/plugin-syntax-jsx": "^7.2.0",
"@babel/plugin-syntax-typescript": "^7.3.3",
"@babel/traverse": "^7.4.5",
"@babel/types": "^7.4.4",
"behavior-code-processing": "git+https://[email protected]/quentinLeDilavrec/behavior-code-processing.git",
"behavior-trace-processing": "git+https://[email protected]/quentinLeDilavrec/behavior-trace-processing.git",
"chrome-instrumentation": "git+https://[email protected]/quentinLeDilavrec/Chrome-instrumentation.git",
"d3": "^5.9.7",
"event-stream": "^4.0.1",
"mysql": "^2.17.1",
"pg": "^7.11.0",
"pg-copy-streams": "^2.2.0"
}
}