Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set up readme to update automatically upon publish of new plugins/ext… #133

Merged
merged 8 commits into from
Aug 20, 2024
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update README list of plugins and extensions
run: npm run update-readme.js

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to add the commit and push actions here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quickly dropping a note here that we can just make the changesets action do the commit work for us:

    "update-unpkg-links": "gulp updateUnpkgLinks",
+   "update-readme": "node update-readme.js",
    "prepare": "husky install",
    "changeset": "changeset",
-   "changeset:version": "changeset version && npm install && npm run update-unpkg-links",
+   "changeset:version": "changeset version && npm install && npm run update-unpkg-links && npm run update-readme",

98 changes: 70 additions & 28 deletions README.md

Large diffs are not rendered by default.

14,428 changes: 7,201 additions & 7,227 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"changeset": "changeset",
"changeset:version": "changeset version && npm install && npm run update-unpkg-links",
"changeset:publish": "npm run build && changeset publish",
"new": "node ./templates/cli/src/index.js"
"new": "node ./templates/cli/src/index.js",
"update-readme": "node ./update-readme.js"
},
"dependencies": {
"gulp": "^5.0.0",
"gulp-replace": "^1.1.4"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/extension-countdown/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/extension-countdown",
"version": "1.1.0",
"description": "jsPsych extension for adding a countdown during a trial",
"description": "This extension adds a countdown during a trial.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/extension-countdown"
},
"author": "Shaobin Jiang",
"authorGitHub": "https://github.com/Shaobin-Jiang",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should make this compliant with how npm expects it:

https://docs.npmjs.com/cli/v10/configuring-npm/package-json#people-fields-author-contributors

"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
1 change: 1 addition & 0 deletions packages/extension-device-motion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"directory": "packages/extension-device-motion"
},
"author": "Pedro Neto",
"authorGitHub": "https://github.com/pasoneto",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/extension-mediapipe-face-mesh/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/extension-mediapipe-face-mesh",
"version": "2.0.0",
"description": "A jsPsych extension for online tracking of facial posture during trials using the MediaPipe Face Mesh library",
"description": "This extension provides online tracking of facial posture during trials using the [MediaPipe Face Mesh](https://google.github.io/mediapipe/solutions/face_mesh) library.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -26,6 +26,7 @@
"directory": "packages/extension-mediapipe-face-mesh"
},
"author": "C. Martin Grewe",
"authorGitHub": "https://github.com/mgrewe",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
1 change: 1 addition & 0 deletions packages/extension-touchscreen-buttons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"directory": "packages/extension-touchscreen-buttons"
},
"author": "Younes Strittmatter",
"authorGitHub": "https://github.com/younesStrittmatter",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-audio-multi-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-audio-multi-response",
"version": "1.0.0",
"description": "",
"description": "This plugin collects responses to an audio file using both button clicks and key presses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-audio-multi-response"
},
"author": "Adam Richie-Halford",
"authorGitHub": "https://github.com/richford",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-audio-swipe-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-audio-swipe-response",
"version": "1.0.0",
"description": "",
"description": "This plugin collects responses to an audio file using swipe gestures and keyboard responses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-audio-swipe-response"
},
"author": "Adam Richie-Halford",
"authorGitHub": "https://github.com/richford",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-copying-task/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"directory": "packages/plugin-copying-task"
},
"author": "Andre Sahakian",
"authorGitHub": "https://github.com/Andre3582",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-corsi-blocks/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-corsi-blocks",
"version": "1.0.0",
"description": "Corsi blocks task plugin for jsPsych",
"description": "This plugin displays a configurable Corsi blocks task and records a series of click responses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-corsi-blocks"
},
"author": "Josh de Leeuw",
"authorGitHub": "https://github.com/jodeleeuw",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-gamepad/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/jspsych-gamepad",
"name": "@jspsych-contrib/plugin-gamepad",
"version": "1.0.1",
"description": "A jsPsych plugin for using gamepad in behavioral experiments",
"description": "This plugin allows one to use gamepads in a jsPsych experiment.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-gamepad"
},
"author": "Shaobin Jiang",
"authorGitHub": "https://github.com/Shaobin-Jiang",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-gamepad/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PluginGamepad from ".";

jest.useFakeTimers();

describe("jsPsychGamepad", () => {
describe("Gamepad", () => {
it("should end within about 2s", async () => {
let time_start = performance.now();
await startTimeline([
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-gamepad/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";
import { GamepadModel, GamepadModels } from "./gamepad-model";

const info = <const>{
name: "jspsych-gamepad",
name: "gamepad",
parameters: {
/**
* The size of the canvas element
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-html-choice/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-html-choice",
"version": "1.0.0",
"description": "",
"description": "This plugin displays clickable html elements that can be used to present a choice.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-html-choice"
},
"author": "Younes Strittmatter",
"authorGitHub": "https://github.com/younesStrittmatter",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-html-keyboard-response-raf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"directory": "packages/plugin-html-keyboard-response-raf"
},
"author": "Josh de Leeuw",
"authorGitHub": "https://github.com/jodeleeuw",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-html-keyboard-slider/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-html-keyboard-slider",
"version": "1.0.0",
"description": "HTML slider which allows for keyboard responses",
"description": "Sliders which allow for keyboard responses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-html-keyboard-slider"
},
"author": "Max Lovell",
"authorGitHub": "https://github.com/Max-Lovell",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-html-multi-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-html-multi-response",
"version": "1.0.2",
"description": "",
"description": "This plugin collects responses to an arbitrary HTML string using both button clicks and key presses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-html-multi-response"
},
"author": "Adam Richie-Halford",
"authorGitHub": "https://github.com/richford",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-html-swipe-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-html-swipe-response",
"version": "1.1.2",
"description": "",
"description": "This plugin collects responses to an arbitrary HTML string using swipe gestures and keyboard responses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-html-swipe-response"
},
"author": "Adam Richie-Halford",
"authorGitHub": "https://github.com/richford",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-html-vas-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-html-vas-response",
"version": "1.2.0",
"description": "",
"description": "This plugin collects responses to an arbitrary HTML string using a point-and-click visual analogue scale.",
"unpkg": "dist/index.browser.min.js",
"files": [
"index.js",
Expand All @@ -17,6 +17,7 @@
"directory": "packages/plugin-html-vas-response"
},
"author": "Isaac Kinley",
"authorGitHub": "https://github.com/kinleyid",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-image-array-keyboard-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-image-array-keyboard-response",
"version": "1.0.0",
"description": "",
"description": "This plugin displays an arbitrary number of images and records responses generated with the keyboard.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-image-array-keyboard-response"
},
"author": "Younes Strittmatter",
"authorGitHub": "https://github.com/younesStrittmatter",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-image-multi-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-image-multi-response",
"version": "1.0.1",
"description": "",
"description": "This plugin collects responses to an image stimulus using both button clicks and key presses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-image-multi-response"
},
"author": "Adam Richie-Halford",
"authorGitHub": "https://github.com/richford",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-image-swipe-response/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-image-swipe-response",
"version": "1.0.0",
"description": "",
"description": "This plugin collects responses to an image stimulus using swipe gestures and keyboard responses.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-image-swipe-response"
},
"author": "Adam Richie-Halford",
"authorGitHub": "https://github.com/richford",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-ios/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-ios",
"version": "1.0.0",
"description": "",
"description": "This plugin implements a continuous version of the Inclusion of Other in the Self (IOS) Scale ([Aron et al., 1992](https://psycnet.apa.org/doiLanding?doi=10.1037%2F0022-3514.63.4.596)).",
"unpkg": "dist/index.browser.min.js",
"files": [
"index.js",
Expand All @@ -17,6 +17,7 @@
"directory": "packages/plugin-ios"
},
"author": "Isaac Kinley",
"authorGitHub": "https://github.com/kinleyid",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-libet-intentional-binding/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-libet-intentional-binding",
"version": "1.2.0",
"description": "",
"description": "This plugin measures intentional binding using a Libet clock, and allows the participant to estimate the timing of events by adjusting the clock hand themselves.",
"unpkg": "dist/index.browser.min.js",
"files": [
"index.js",
Expand All @@ -17,6 +17,7 @@
"directory": "packages/plugin-libet-intentional-binding"
},
"author": "Isaac Kinley",
"authorGitHub": "https://github.com/kinleyid",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-nextcloud-filedrop/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-nextcloud-filedrop",
"version": "1.0.0",
"description": "",
"description": "This plugin provides permanent storage of data collected during an experiment using a nextcloud instance.",
"unpkg": "dist/index.browser.min.js",
"files": [
"index.js",
Expand All @@ -17,6 +17,7 @@
"directory": "packages/plugin-nextcloud-filedrop"
},
"author": "C. Martin Grewe",
"authorGitHub": "https://github.com/mgrewe",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-pipe/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-pipe",
"version": "0.4.0",
"description": "jsPsych plugin to faciliate communication with DataPipe (https://pipe.jspsych.org)",
"description": "jsPsych plugin to faciliate communication with [DataPipe](https://pipe.jspsych.org)",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-pipe"
},
"author": "Josh de Leeuw",
"authorGitHub": "https://github.com/jodeleeuw",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-rdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@jspsych-contrib/plugin-rdk",
"version": "1.1.0",
"description": "",
"description": "This plugin displays a Random Dot Kinematogram (RDK) and allows the subject to report the primary direction of motion by pressing a key on the keyboard.",
"type": "module",
"main": "dist/index.cjs",
"exports": {
Expand All @@ -28,6 +28,7 @@
"directory": "packages/plugin-rdk"
},
"author": "Josh de Leeuw",
"authorGitHub": "https://github.com/jodeleeuw",
"license": "MIT",
"bugs": {
"url": "https://github.com/jspsych/jspsych-contrib/issues"
Expand Down
Loading