1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 16:48:10 +00:00

Merge pull request #317 from tpronk/master

ENH: some changes in support of automated testing (and one for easier committing)
This commit is contained in:
Alain Pitiot 2021-05-10 08:10:27 +02:00 committed by GitHub
commit f1e4e5b5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9448 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
dist
node_modules

9439
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
"main": "src/index.js",
"scripts": {
"build": "npm run build:js && npm run build:css && npm run build:docs",
"build:css": "cross-var postcss -o dist/psychojs-$npm_package_version.css src/index.css",
"build:css": "npx cross-var postcss -o dist/psychojs-$npm_package_version.css src/index.css",
"build:docs": "jsdoc src -r -d docs",
"build:js": "rollup -c",
"lint": "npm run lint:js && npm run lint:css",

View File

@ -691,6 +691,13 @@ export class PsychoJS
window.onerror = function (message, source, lineno, colno, error)
{
console.error(error);
document.body.setAttribute('data-error', JSON.stringify({
message: message,
source: source,
lineno: lineno,
colno: colno,
error: error.stack
}));
self._gui.dialog({"error": error});
return true;
};