Commit Graph

57 Commits

Author SHA1 Message Date
bjoluc
c499900e85
Fix CI condition in prepare script for Node.js v20 2024-07-18 00:36:15 +02:00
Josh de Leeuw
a23a3d5c6f don't try to install the root project with poetry
(rebased-with-history from commit ab31ef6386)
2024-06-07 22:49:07 +02:00
bjoluc
c31b859533 Merge pull request #3122 from jspsych/update-config-package
Update `@jspsych/config` dependencies

(rebased-with-history from commit 76fca2712f)
2024-06-07 22:49:07 +02:00
Josh de Leeuw
ab31ef6386 don't try to install the root project with poetry 2024-01-14 16:18:33 -05:00
bjoluc
220f4e36b4 Update @jspsych/config dependencies 2023-11-10 19:37:25 +01:00
bjoluc
5fb7c3a45d Replace ts-jest with Sucrase Jest plugin 2023-09-06 16:09:35 +02:00
bjoluc
c5e9f914bc Raise minimum required NPM version to 8.0.0 2023-09-06 08:43:06 +02:00
bjoluc
715a9d130e Upgrade @jspsych/config dependencies 2023-09-05 22:31:04 +02:00
bjoluc
2e40d013d4 Drop support for npm v7 and node up to v16 2022-11-18 23:08:46 +01:00
bjoluc
76e7508024 Upgrade Jest to v29 and replace ts-jest with @sucrase/jest-plugin 2022-11-17 21:28:44 +01:00
bjoluc
b36a3f6372 Update root dependencies 2022-11-16 10:28:04 +01:00
Josh de Leeuw
153e13f621 add docs commands to package.json 2022-05-19 13:42:26 -04:00
bjoluc
2660c04a2d Update root dependencies 2022-05-16 19:42:35 +02:00
bjoluc
e77371e94b Update @jspsych/config dependencies 2022-05-16 17:00:03 +02:00
bjoluc
518c76fe50 Make the changesets action update docs plugin versions 2022-05-13 19:31:51 +02:00
Becky Gilbert
2154423809 change gulp task name updatePluginVersion -> updatePluginVersions #2609 2022-05-06 12:15:28 -07:00
Becky Gilbert
74cc2ece69 add updatePluginVersion gulp task 2022-05-03 14:18:37 -07:00
Josh de Leeuw
99bf2924be remove svg dependency, update plugin behavior 2022-04-07 10:34:59 -04:00
bjoluc
8d55506e80 Add packageManager field to package.json 2022-03-11 19:44:31 +01:00
bjoluc
b2adee8031 Move Turbo config to turbo.json 2022-03-11 19:41:58 +01:00
bjoluc
9bd6481648 Update root dependencies 2022-03-11 19:29:37 +01:00
bjoluc
bdb7b9a2a9 Make the release workflow update all unpkg links
Closes #2348
2022-02-08 18:28:15 +01:00
bjoluc
88fe8c8416
Merge branch 'main' into docs-links 2022-01-30 18:58:12 +01:00
bjoluc
87f332f925 Add updateUnpkgLinks Gulp task 2022-01-06 20:35:43 +01:00
bjoluc
0362e65bd4 Add turbo caching to GH actions workflows 2022-01-06 18:14:48 +01:00
bjoluc
6f2613cc5c Setup turborepo 2021-12-11 23:28:07 +01:00
bjoluc
6aad6315df Fix project detection in root Jest config
Prior to this, empty directories in `packages` would have hindered Jest
from transforming some files, resulting in "unexpected token" errors
2021-10-08 13:27:47 +02:00
bjoluc
da654079f0 Update release workflow 2021-10-03 15:03:13 +02:00
bjoluc
b3b1d14dd8 Enhance release workflow 2021-10-02 03:00:04 +02:00
bjoluc
de6c6348b7 Fix release script in root package.json 2021-10-02 02:46:50 +02:00
bjoluc
dec9afc602 Fix scripts in root package.json 2021-10-02 02:32:10 +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
Becky Gilbert
db754538b7
Convert plugins to classes and update examples (#2078)
* modularize plugins: edit index.ts and example files (WIP)

* continue modularizing plugins: edit index.ts and example files (WIP)

* continue modularizing plugins: edit index.ts and example files (WIP)

* continue modularizing plugins and example files, make info static in plugin classes

* add preload flag to plugin info, fix a few parameterType values

* change preload flags in plugin info from audio/image/video strings to boolean

* convert more plugins and example files

* convert more plugins/examples, sync with webgazer branch plugins/examples (not working on this branch)

* remove preload flag from info, change to ParameterType, change to "ALL_KEYS"/"NO_KEYS", change KEY type to KEYS for array params

* remove descriptions from plugin info, fix some ALL_KEYS/NO_KEYS errors

* remove descriptions and add pretty names to plugin info

* remove/edit comments re ALL_KEYS/NO_KEYS and TS errors

* fix some preload plugin errors and convert example file (plugin still not working due to getAutoPreloadList)

* convert RDK plugin and example file

* convert preload plugin and example, add JsPsych getTimelineDescription method for auto-preloading (still not working for audio due to getAudioBuffer

* fix jsPsych getTimelineDescription method so that it does recursive search

* add image and video preloading to plugin examples

* Merge branch 'modularization' into modularization-plugins

* add tests for reconstruction

* fix timeline array getter method: add private timelineDescription var, set to timeline array in run(), rename getTimelineDescription to getTimeline

* changes in response to PR review: fix JsDoc comments, fix array: true in param info, change HTML string param types, add JsDoc author/file/see docs for all plugin classes, switch to @ts-expect-error. Thanks @bjoluc!

* fix JsDoc comments for plugin classes and preload trials parameter

* change preload type to boolean in ParameterInfo interface, and add `preload: false` to virtual-chinrest item_path image parameter

* All my tests except for preload plugin (will do that tomorrow)

* minor fixes to reconstruction tests

* Update preload plugin tests

* Finish test conversion

* switch to arrow functions to fix this keyword errors in plugins, add audio preloading into plugin example files, fix typos

* convert non-plugin example files (WIP, not tested)

* Fix allow_held_keys -> allow_held_key parameter in virtual-chinrest plugin

* Fix `keyboardListener` type in serial-reaction-time plugin

* type fixes for RDK, simplifying `correctOrNot()` function

* fixed ["ALL_KEYS"] => "ALL_KEYS" for iat plugins and tests

* Build jspsych packages before everything else

Dependent builds were previously failing due to missing type definitions

* Remove console.log from html-keyboard-response tests

I think I accidentially committed it.

* fix the delayed start to animation bug (#1885)

* round all RTs to nearest int (#2108)

* fixes and tests #1900 - IAT parameter problems

* finish converting/testing example files, add init settings, add audio preloading, fix errors

* fix progress-bar timeline to demo an example where auto-updating the progress bar works well

* Revert "round all RTs to nearest int (#2108)"

This reverts commit f53145d2e3.

* change how delayed timeline variables are implemented

* use static for generate_stimulus method so that it can be called on the vsl-grid-scene class

* fix external-html plugin and example (switch to arrow function for proper this context, fix incorrect parameter name)

* remove outdated TO DO comments

Co-authored-by: bjoluc <mail@bjoluc.de>
Co-authored-by: Josh de Leeuw <josh.deleeuw@gmail.com>
2021-09-08 09:44:53 -04:00
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