Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions reference-game-cwg.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
<!-- STUDY PROTOTYPE: on the LOCAL adapter for two-tab piloting on one machine. For the paid Prolific
run, swap adapter-multiplayer-local → adapter-multiplayer-firebase (and pair via a real waiting
room); nothing else in this file changes. -->
<!-- TODO: pin to a real published version once jspsych-multiplayer PR #35 (Version Packages) merges -->
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/adapter-multiplayer-local@0.1.0/dist/index.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/plugin-multiplayer-sync@0.1.0/dist/index.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/plugin-multiplayer-role@0.1.0/dist/index.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/plugin-multiplayer-reference-game@0.1.0/dist/index.browser.min.js"></script>
<!-- These four load from vendor/ in this repo, NOT from npm: reference-game is unpublished and the
published 0.1.0 builds predate the jsPsych.multiplayer namespace migration. Repoint to
cdn.jsdelivr.net/npm/... and delete vendor/ once jspsych-multiplayer PR #35 publishes.
See vendor/README.md. -->
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/adapter-multiplayer-local.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/plugin-multiplayer-sync.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/plugin-multiplayer-role.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/plugin-multiplayer-reference-game.js"></script>
<script src="tangrams.js"></script>
<link
rel="stylesheet"
Expand Down
13 changes: 8 additions & 5 deletions reference-game-hawkins.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
<!-- STUDY PROTOTYPE: on the LOCAL adapter for two-tab piloting on one machine. For the paid Prolific
run, swap adapter-multiplayer-local → adapter-multiplayer-firebase (and pair via a real waiting
room); nothing else in this file changes. -->
<!-- TODO: pin to a real published version once jspsych-multiplayer PR #35 (Version Packages) merges -->
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/adapter-multiplayer-local@0.1.0/dist/index.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/plugin-multiplayer-sync@0.1.0/dist/index.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/plugin-multiplayer-role@0.1.0/dist/index.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/plugin-multiplayer-reference-game@0.1.0/dist/index.browser.min.js"></script>
<!-- These four load from vendor/ in this repo, NOT from npm: reference-game is unpublished and the
published 0.1.0 builds predate the jsPsych.multiplayer namespace migration. Repoint to
cdn.jsdelivr.net/npm/... and delete vendor/ once jspsych-multiplayer PR #35 publishes.
See vendor/README.md. -->
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/adapter-multiplayer-local.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/plugin-multiplayer-sync.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/plugin-multiplayer-role.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/multiplayer-test-experiments@5046bf0c1672823456d78e971603260f76a3a225/vendor/plugin-multiplayer-reference-game.js"></script>
<script src="tangrams.js"></script>
<link
rel="stylesheet"
Expand Down
47 changes: 47 additions & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# vendor/ — temporary pinned builds

These are **prebuilt browser bundles** of the `@jspsych-multiplayer/*` packages,
committed here so the experiment files in this repo are runnable from a plain URL
(via jsDelivr) without a local build step.

## Why these exist

At the time of writing, these packages cannot be loaded from npm:

| package | npm status |
| --- | --- |
| `plugin-multiplayer-reference-game` | **not published** (404) |
| `adapter-multiplayer-local` | published `0.1.0`, but **pre-namespace-migration** |
| `plugin-multiplayer-sync` | published `0.1.0`, but **pre-namespace-migration** |
| `plugin-multiplayer-role` | published `0.1.0`, but **pre-namespace-migration** |

The experiment files pin jsPsych core to a preview build of
[jspsych/jsPsych#3694](https://github.com/jspsych/jsPsych/pull/3694), which moved
the multiplayer API to the `jsPsych.multiplayer` namespace. The published `0.1.0`
bundles predate that migration and still call the old core API, so mixing them
with the pinned core does not work.

Vendoring all four keeps the plugin bundles and the pinned core consistent.

## Provenance

Built with `npm run build` from `jspsych/jspsych-multiplayer` at commit
[`69c0d7b`](https://github.com/jspsych/jspsych-multiplayer/commit/69c0d7b).
Each file is that package's `dist/index.browser.min.js`, renamed.

The experiment files load these over jsDelivr, SHA-pinned to the commit that added
them (`5046bf0`). If you rebuild and recommit the bundles, you must also bump that
SHA in both HTML files — jsDelivr caches `/gh/` paths by commit, so an unchanged
pin will keep serving the old build.

## Removing this directory

Once [PR #35 ("Version Packages")](https://github.com/jspsych/jspsych-multiplayer/pull/35)
merges and republishes the packages, this directory should go away:

1. Repoint the four `<script>` tags in `reference-game-hawkins.html` and
`reference-game-cwg.html` back to
`https://cdn.jsdelivr.net/npm/@jspsych-multiplayer/<pkg>@<version>/dist/index.browser.min.js`.
2. Delete `vendor/`.

Do not edit these files by hand — rebuild from source instead.
2 changes: 2 additions & 0 deletions vendor/adapter-multiplayer-local.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading