Commit Graph

184 Commits

Author SHA1 Message Date
Josh de Leeuw
2c795f41f4 update pl 2021-10-27 13:30:11 -04:00
Josh de Leeuw
ed9833a045 continue dev work on sketchpad 2021-10-26 12:22:24 -04:00
Josh de Leeuw
910d49cbb4 create template for sketchpad plugin 2021-10-21 15:46:36 -04:00
Josh de Leeuw
a0337af87f Merge remote-tracking branch 'origin/main' into plugin-exclusions 2021-10-21 09:59:35 -04:00
bjoluc
30ff816a14 Update package-lock.json 2021-10-16 11:47:31 +02:00
Josh de Leeuw
15d790e3ad update package-lock.json 2021-10-14 16:47:35 -04:00
Josh de Leeuw
04a133b3c3 add testing suite for mouse tracking extension, fix a few bugs 2021-10-14 12:17:23 -04:00
Josh de Leeuw
448c50788b basic grabbing of features working 2021-10-08 15:08:04 -04:00
Josh de Leeuw
7bbc2436da initial work on browser-check plugin, WIP 2021-10-07 15:39:37 -04:00
bjoluc
9af1b541d4 Update package-lock.json 2021-10-07 00:23:01 +02:00
bjoluc
347e7f6765 Setup initial survey plugin draft 2021-10-07 00:11:17 +02:00
bjoluc
da654079f0 Update release workflow 2021-10-03 15:03:13 +02:00
bjoluc
bc92967e25 Update @jspsych/config dependencies and fix type errors in plugin-preload tests 2021-10-02 02:23:15 +02:00
bjoluc
27efa71e1d Remove circular dependency in @jspsych/test-utils 2021-10-02 00:41:07 +02:00
bjoluc
8b279d1dbf Add directory to repository field in package.json files 2021-10-01 19:32:43 +02:00
bjoluc
2c95fac678 Update package.json in @jspsych/config 2021-10-01 19:10:13 +02:00
bjoluc
37b85f953c
Setup changesets (#2066)
* Setup changesets and the changesets GH action
* Lower package versions so changesets can bump them
* Add changesets for all changes on the `modularization` branch

Co-authored-by: Josh de Leeuw <josh.deleeuw@gmail.com>
Co-authored-by: Becky Gilbert <beckyannegilbert@gmail.com>
2021-09-30 21:39:25 +02:00
Josh de Leeuw
a913b62ead remove the plugins that moved to contrib 2021-09-29 12:06:59 -04:00
bjoluc
ff2827d8c9 Move test utility functions into @jspsych/test-utils 2021-09-28 20:04:19 +02:00
bjoluc
e720b4ebb1 Add standalone babel dependencies to @jspsych/config
They are used by non-typescript plugins in jspsych-contrib
2021-09-14 22:29:32 +02:00
bjoluc
ab7b3545cf Add @jspsych/config dev dependency to packages 2021-08-25 22:08:45 +02:00
bjoluc
6006fec96a Prepare @jspsych/config for external use 2021-08-25 21:57:28 +02:00
Josh de Leeuw
b3b9f5fd5e
Create modular versions of extensions (#2053)
Extensions are now passed to the `JsPsych` constructor via an `extensions` option.
Along the way, the webgazer plugins and plugin-html-button-response have been modularized as well.

Co-authored-by: bjoluc <mail@bjoluc.de>
Co-authored-by: Becky Gilbert <beckyannegilbert@gmail.com>
2021-08-20 11:15:33 +02:00
bjoluc
105b041255 Configure husky to run prettier via lint-staged 2021-08-13 22:04:28 +02:00
bjoluc
559f60c83e Add Gulp script to create a dist archive 2021-08-09 09:35:48 +02:00
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
bjoluc
91e7b1e3ff Migrate to TypeScript 2021-07-06 17:55:42 +02:00
bjoluc
d12052c774 Decompose jspsych core into ES6 modules 2021-07-01 12:46:41 +02:00
bjoluc
744e67b0a5 Setup monorepo and switch to ES6 modules
* Convert jsPsych and plugins to ES6 modules
* Create packages for each plugin, the core library, and config files
* Setup rollup, jest, and babel configurations
* Update jsPsych to load plugin objects directly from the `type` field
* Update tests to use the ES6 modules
2021-06-23 22:39:38 +02:00
Josh de Leeuw
54dad43b7f update jest to 26.6 2020-10-20 14:37:37 -04:00
Josh de Leeuw
40f433651b bump jest v22 -> v24 2019-07-05 11:49:30 -04:00
Josh de Leeuw
501a5be52a update all to performance.now() - #492 2018-10-09 16:13:59 -04:00
Josh de Leeuw
e89c947de7 jest upgrade, fixing tests to work with upgrade of jsdom 2017-12-28 16:07:15 -05:00
KristinDiep
9e715e2457 iat-image, iat-html, image-keyboard-response tests done 2017-07-07 14:46:33 -04:00