jsPsych/package.json
bjoluc 8cfbba526a Use classes to avoid global state
Instead of a global `jsPsych` object, there is a `JsPsych` class now
which can be instantiated with the parameters that were previously
accepted by `jsPsych.init`. Upon instantiation, the `JsPsych` class also
instantiates classes for stateful modules (`jsPsych.data` and
`jsPsych.pluginAPI`) and passes relevant `JsPsych` instance information
to them. Plugins are expected to be classes now that are instantiated
for each trial and receive the `JsPsych` instance as their only
constructor argument.
2021-07-12 18:15:37 +02:00

43 lines
1019 B
JSON

{
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"test": "jest",
"build": "npm run build -ws",
"prepare": "npm run build",
"tsc": "npm run tsc -ws"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/jest": "^26.0.23",
"canvas": "^2.8.0",
"import-sort-style-module": "^6.0.0",
"jest": "^27.0.6",
"jest-environment-jsdom": "^27.0.6",
"prettier": "^2.3.2",
"prettier-plugin-import-sort": "^0.0.7",
"rollup": "^2.52.7",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^27.0.3",
"tslib": "^2.3.0",
"typescript": "^4.3.5"
},
"prettier": {
"printWidth": 100
},
"importSort": {
".ts, .js, .mjs": {
"style": "module",
"parser": "typescript"
}
}
}