Commit Graph

24 Commits

Author SHA1 Message Date
bjoluc
6006fec96a Prepare @jspsych/config for external use 2021-08-25 21:57:28 +02:00
bjoluc
ba9c495a21 Add .cjs extension to import-sort config 2021-08-20 11:39:09 +02:00
bjoluc
c340c5ea55 Enhance scripts in package.json files 2021-08-17 20:26:38 +02:00
bjoluc
b288a8e21f Move root Jest config into package.json 2021-08-17 18:58:59 +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
83f449c635 Utilize jest's monorepo support 2021-06-30 19:29:38 +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
Becky Gilbert
dd9424c84d update version number from 6.3.0 to 6.3.1 - fixes #1835 2021-05-18 15:20:26 -07:00
Josh de Leeuw
a69a355e9e step version in package.json 2021-02-15 21:46:48 -05:00
Josh de Leeuw
54dad43b7f update jest to 26.6 2020-10-20 14:37:37 -04:00
Ari Dyckovsky
1640c5341f
Update package.json to reflect organization
The name of the remote repository was attached to the previous username. This change updates the package.json references to the remote Git URLs with the organization `jspsych`.
2020-08-13 10:21:45 -06:00
Josh de Leeuw
c5bc9023e3 video tests, step package version 2019-07-16 11:00:04 -04:00
Josh de Leeuw
40f433651b bump jest v22 -> v24 2019-07-05 11:49:30 -04:00
Josh de Leeuw
0bcf6b856a update Jest, configure URL 2018-10-09 16:17:28 -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
Josh de Leeuw
ea51efad03 update test environment 2017-06-12 22:08:00 -04:00
Josh de Leeuw
629f9915f7 update jest to version 20 2017-05-26 10:08:52 -04:00
Josh de Leeuw
cd44986fe0 more tests for single-stim #351 2017-03-19 23:20:38 -04:00
Josh de Leeuw
e0bf9d8ef4 npm package 2016-12-09 21:12:45 -05:00