-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
174 lines (173 loc) · 6.99 KB
/
package.json
File metadata and controls
174 lines (173 loc) · 6.99 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
{
"name": "deliberation-lab-tools",
"publisher": "deliberation-lab",
"displayName": "Deliberation Lab Experiment Development Tools",
"description": "Tools for experiment designers to use in creating experiments for deliberation lab",
"icon": "images/favicon.png",
"version": "0.0.5",
"repository": {
"type": "git",
"url": "https://github.com/Watts-Lab/deliberation-lab-tools"
},
"browser": "./dist/extension.js",
"main": "./dist/extension.js",
"extensionKind": [
"workspace"
],
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:treatmentsYaml"
],
"contributes": {
"configurationDefaults": {
"[treatmentsYaml]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
}
},
"languages": [
{
"id": "treatmentsYaml",
"aliases": [
"Treatments YAML"
],
"extensions": [
".treatments.yaml"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "treatmentsYaml",
"scopeName": "source.yaml",
"path": "./syntaxes/treatmentsYaml.tmLanguage.json"
}
],
"commands": [
{
"command": "deliberation-lab-tools.defaultTreatmentsYaml",
"title": "Deliberation Lab Tools: Create Default Treatments YAML file"
},
{
"command": "deliberation-lab-tools.createDefaultPromptMarkdown",
"title": "Deliberation Lab Tools: Create Default Prompt Markdown"
},
{
"command": "deliberation-lab-tools.openPromptPreview",
"title": "Deliberation Lab Tools: Open Prompt Preview"
},
{
"command": "deliberation-lab-tools.openStagePreview",
"title": "Deliberation Lab Tools: Open Stage Preview"
},
{
"command": "deliberation-lab-tools.previewExpandedTemplates",
"title": "Preview: Expanded Treatment File"
}
],
"menus": {
"editor/context": [
{
"command": "deliberation-lab-tools.openPromptPreview",
"when": "editorLangId == markdown",
"group": "deliberation-lab-tools"
},
{
"command": "deliberation-lab-tools.openStagePreview",
"when": "editorLangId == treatmentsYaml",
"group": "deliberation-lab-tools"
},
{
"command": "deliberation-lab-tools.previewExpandedTemplates",
"when": "editorLangId == treatmentsYaml",
"group": "deliberation-lab-tools"
}
]
}
},
"scripts": {
"build:css": "npx windicss deliberation-empirica/client/src/baseStyles.css -o src/views/styles.css --config deliberation-empirica/client/windi.config.cjs && npx tailwindcss -i src/views/index.css -o src/views/playerStyles.css --config src/views/tailwind.config.js && npx tailwindcss -i src/views/globals.css -o src/views/layout.css --config src/views/tailwind.config.js",
"prepare-submodule": "git submodule update --init --recursive",
"copy-validators": "cp ./deliberation-empirica/server/src/preFlight/validateTreatmentFile.ts ./src/zod-validators && cp ./deliberation-empirica/server/src/preFlight/validatePromptFile.ts ./src/zod-validators && cp ./deliberation-empirica/server/src/preFlight/validateDlConfig.ts ./src/zod-validators && cp ./deliberation-empirica/server/src/preFlight/validateBatchConfig.ts ./src/zod-validators && cp ./deliberation-empirica/server/src/preFlight/fillTemplates.ts ./src && sed -i 's|from \"./validateTreatmentFile\"|from \"./zod-validators/validateTreatmentFile\"|' ./src/fillTemplates.ts",
"prepare-web": "npm run prepare-submodule && npm run copy-validators && npm run build:css",
"compile-web": "npm run prepare-web && tsc -p tsconfig.json && npm run lint && node esbuild.js",
"package-web": "npm run prepare-web && npm run check-types && npm run lint && node esbuild.js --production",
"compile-test": "npm run build:css && tsc -p tsconfig.test.json",
"test": "npm run compile-test && ELECTRON_DISABLE_GPU=1 node -e \"const { spawnSync } = require('child_process'); const run = (cmd) => spawnSync(cmd, { shell: true, stdio: 'inherit' }); const check = spawnSync('command -v xvfb-run', { shell: true, stdio: 'pipe' }); if (check.status === 0) { console.log('🖥️ Using xvfb virtual display'); const xvfb = run('xvfb-run -a node runExtensionTests.js'); process.exit(xvfb.status ?? 0); } else { console.log('⚠️ xvfb not found, running tests without virtual display'); const plain = run('node runExtensionTests.js'); process.exit(plain.status ?? 1); }\"",
"test:electron": "vscode-test --extensionDevelopmentPath=. --extensionTestsPath=out/test/suite/extensionTests.js",
"vscode:prepublish": "npm run package-web",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"watch-web": "npm-run-all -p watch-web:*",
"watch-web:esbuild": "npm run prepare-web && node esbuild.js --watch",
"watch-web:tsc": "tsc --noEmit --watch --project tsconfig.json",
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@types/assert": "^1.5.10",
"@types/js-yaml": "^4.0.9",
"@types/json-to-ast": "^2.1.4",
"@types/mocha": "^10.0.10",
"@types/node": "^22.15.20",
"@types/react": "^18.3.23",
"@types/react-dom": "^18.3.7",
"@types/vscode": "^1.95.0",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.5.2",
"@vscode/test-web": "^0.0.63",
"@vscode/vsce": "^3.4.1",
"autoprefixer": "^10.4.21",
"esbuild": "^0.24.0",
"esbuild-plugin-path-alias": "^1.0.7",
"eslint": "^9.13.0",
"glob": "^11.0.0",
"mocha": "^10.7.3",
"npm-run-all": "^4.1.5",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.17",
"typescript": "^5.6.3",
"vscode-extension-tester": "^8.15.0",
"windicss": "^3.5.6",
"xvfb": "^0.4.0"
},
"dependencies": {
"@daily-co/daily-react": "^0.22.0",
"@empirica/core": "^1.11.2",
"@hello-pangea/dnd": "^16.3.0",
"@tailwindcss/vite": "^4.1.10",
"@watts-lab/surveys": "^1.19.1",
"axios": "^1.9.0",
"cp": "^0.2.0",
"daisyui": "^5.0.43",
"detect-browser": "^5.3.0",
"fastest-levenshtein": "^1.0.16",
"json-to-ast": "^2.1.0",
"react": "18.2.0",
"react-debounce-input": "^3.3.0",
"react-device-detect": "^2.2.3",
"react-dom": "18.2.0",
"react-error-boundary": "^6.0.0",
"react-markdown": "^9.0.1",
"react-player": "^3.1.0",
"react-sweet-progress": "^1.1.2",
"remark-gfm": "^4.0.0",
"vsce": "^2.15.0",
"ws": "^8.18.2",
"yaml": "^2.6.0",
"zod": "^3.23.8"
},
"overrides": {
"@empirica/core": {
"@empirica/tajriba": "1.5.2"
}
}
}