@bdelab/roar-levante-tasks 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -0
- package/lib/index.5eef6672.js +16 -0
- package/lib/resources/core-tasks.css +1176 -0
- package/package.json +108 -0
- package/patchPackages.js +37 -0
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bdelab/roar-levante-tasks",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/index.5eef6672.js",
|
|
6
|
+
"module": "lib/index.5eef6672.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib",
|
|
10
|
+
"lib/resources",
|
|
11
|
+
"patchPackages.js"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "npx webpack --mode production --env dbmode=production",
|
|
15
|
+
"prepackage": "rimraf lib/",
|
|
16
|
+
"package": "npx rollup -c",
|
|
17
|
+
"postpackage": "node postBuildPackage.js",
|
|
18
|
+
"prepublishOnly": "npm run package",
|
|
19
|
+
"preversion": "npm run lint",
|
|
20
|
+
"version": "npm run format && git add -A",
|
|
21
|
+
"postversion": "GIT_REMOTE=$(git remote -v | grep \"yeatmanlab/roar-levante-tasks.git \\(push\\)\" | cut -f 1) && git push $GIT_REMOTE && git push $GIT_REMOTE --tags",
|
|
22
|
+
"dev": "npx webpack serve --mode development --env dbmode=development",
|
|
23
|
+
"deploy": "npm run build && firebase deploy --only hosting",
|
|
24
|
+
"lint": "npx eslint --ext .ts,.tsx,.js,.jsx",
|
|
25
|
+
"format": "npx prettier . --write",
|
|
26
|
+
"patchPackages": "node patchPackages.js",
|
|
27
|
+
"postinstall": "npm run patchPackages",
|
|
28
|
+
"predev": "fkill :8000 -f || true",
|
|
29
|
+
"preprod": "fkill :8000 -f || true",
|
|
30
|
+
"cypress:open": "cypress open"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/yeatmanlab/roar-levante-tasks.git"
|
|
35
|
+
},
|
|
36
|
+
"contributors": [
|
|
37
|
+
"Philip Ziolkowski",
|
|
38
|
+
"George Kachergis"
|
|
39
|
+
],
|
|
40
|
+
"license": "STANFORD ACADEMIC SOFTWARE LICENSE FOR ROAR™",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@bdelab/jscat": "^3.0.3",
|
|
43
|
+
"@bdelab/roar-firekit": "^6.1.2",
|
|
44
|
+
"@bdelab/roar-utils": "^1.0.11",
|
|
45
|
+
"@jspsych-contrib/plugin-audio-multi-response": "^1.0.0",
|
|
46
|
+
"@jspsych-contrib/plugin-corsi-blocks": "^1.0.0",
|
|
47
|
+
"@jspsych-contrib/plugin-html-multi-response": "^1.0.2",
|
|
48
|
+
"@jspsych/plugin-audio-button-response": "^1.1.2",
|
|
49
|
+
"@jspsych/plugin-audio-keyboard-response": "^1.1.0",
|
|
50
|
+
"@jspsych/plugin-fullscreen": "^1.1.0",
|
|
51
|
+
"@jspsych/plugin-html-slider-response": "^1.1.3",
|
|
52
|
+
"@jspsych/plugin-preload": "^1.1.3",
|
|
53
|
+
"@sentry/browser": "^8.7.0",
|
|
54
|
+
"@sentry/integrations": "^7.114.0",
|
|
55
|
+
"@sentry/rollup-plugin": "^3.5.0",
|
|
56
|
+
"@sentry/wasm": "^9.33.0",
|
|
57
|
+
"@sentry/webpack-plugin": "^3.5.0",
|
|
58
|
+
"cypress-real-events": "^1.13.0",
|
|
59
|
+
"fscreen": "^1.2.0",
|
|
60
|
+
"i18next": "^22.4.15",
|
|
61
|
+
"i18next-browser-languagedetector": "^7.0.1",
|
|
62
|
+
"jspsych": "^7.2.1",
|
|
63
|
+
"lodash": "^4.17.21",
|
|
64
|
+
"papaparse": "^5.4.1",
|
|
65
|
+
"regenerator-runtime": "^0.13.9",
|
|
66
|
+
"store2": "^2.13.2"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@babel/cli": "^7.22.5",
|
|
70
|
+
"@babel/core": "^7.22.5",
|
|
71
|
+
"@babel/preset-env": "^7.22.5",
|
|
72
|
+
"@rollup/plugin-commonjs": "^25.0.3",
|
|
73
|
+
"@rollup/plugin-dsv": "^3.0.2",
|
|
74
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
75
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
76
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
77
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
78
|
+
"@types/fscreen": "^1.0.4",
|
|
79
|
+
"@types/lodash": "^4.17.7",
|
|
80
|
+
"@types/papaparse": "^5.3.15",
|
|
81
|
+
"babel-loader": "^9.1.2",
|
|
82
|
+
"css-loader": "^6.7.1",
|
|
83
|
+
"csv-loader": "^3.0.5",
|
|
84
|
+
"cypress": "^13.13.3",
|
|
85
|
+
"eslint": "^8.12.0",
|
|
86
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
87
|
+
"eslint-config-prettier": "^8.8.0",
|
|
88
|
+
"eslint-plugin-cypress": "^2.15.1",
|
|
89
|
+
"eslint-plugin-import": "^2.25.4",
|
|
90
|
+
"file-loader": "^6.2.0",
|
|
91
|
+
"html-webpack-plugin": "^5.5.0",
|
|
92
|
+
"path-browserify": "^1.0.1",
|
|
93
|
+
"prettier": "3.0.0",
|
|
94
|
+
"process": "^0.11.10",
|
|
95
|
+
"rimraf": "^5.0.1",
|
|
96
|
+
"rollup": "^3.26.3",
|
|
97
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
98
|
+
"sass": "^1.64.2",
|
|
99
|
+
"sass-loader": "^13.3.2",
|
|
100
|
+
"style-loader": "^3.3.1",
|
|
101
|
+
"ts-loader": "^9.5.1",
|
|
102
|
+
"typescript": "^5.5.2",
|
|
103
|
+
"webpack": "^5.70.0",
|
|
104
|
+
"webpack-cli": "^5.1.4",
|
|
105
|
+
"webpack-dev-server": "^4.15.1",
|
|
106
|
+
"webpack-merge": "^5.8.0"
|
|
107
|
+
}
|
|
108
|
+
}
|
package/patchPackages.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
const NODE_MODULES_PATH = 'node_modules';
|
|
5
|
+
const PATCH_PATH = 'patches';
|
|
6
|
+
|
|
7
|
+
const replaceFile = (filePathList) => {
|
|
8
|
+
try {
|
|
9
|
+
const data = fs.readFileSync(path.resolve(path.dirname('package.json'), PATCH_PATH, ...filePathList), 'utf8');
|
|
10
|
+
fs.writeFileSync(path.resolve(path.dirname('package.json'), NODE_MODULES_PATH, ...filePathList), data, 'utf8');
|
|
11
|
+
} catch (err) {
|
|
12
|
+
console.error('ReplaceFileError', err);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const traverseFolderTree = (root = []) => {
|
|
17
|
+
try {
|
|
18
|
+
const contents = fs.readdirSync(path.resolve(path.dirname('package.json'), PATCH_PATH, ...root));
|
|
19
|
+
for (let i = 0; i < contents.length; i += 1) {
|
|
20
|
+
const currentContent = contents[i];
|
|
21
|
+
const newPath = [...root, currentContent];
|
|
22
|
+
const isDirectory = fs
|
|
23
|
+
.lstatSync(path.resolve(path.dirname('package.json'), PATCH_PATH, ...newPath))
|
|
24
|
+
.isDirectory();
|
|
25
|
+
if (isDirectory) {
|
|
26
|
+
traverseFolderTree(newPath);
|
|
27
|
+
} else {
|
|
28
|
+
console.log('INFO:', 'Replacing file', newPath.join('/'));
|
|
29
|
+
replaceFile(newPath);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
} catch (err) {
|
|
33
|
+
console.error('Error: TraverseFolderTree', err);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
traverseFolderTree();
|