-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jspsych/spatial_cueing_import
add spatial cueing package
- Loading branch information
Showing
8 changed files
with
530 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@jspsych-timelines/spatial-cueing-task": minor | ||
--- | ||
|
||
add spatial cueing task package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# spatial-cueing-task | ||
|
||
## Overview | ||
|
||
A shareable timeline of the Posner spatial cueing task. | ||
|
||
## Loading | ||
|
||
### In browser | ||
|
||
```html | ||
<script src="https://unpkg.com/@jspsych-timelines/spatial-cueing-task"> | ||
``` | ||
### Via NPM | ||
``` | ||
npm install @jspsych-timelines/spatial-cueing-task | ||
``` | ||
```js | ||
import { createTimeline, timelineUnits, utils } from "@jspsych-timelines/spatial-cueing-task" | ||
``` | ||
## Compatibility | ||
`@jspsych-timelines/spatial-cueing-task` requires jsPsych v7.0.0 or later. | ||
## Documentation | ||
### createTimeline | ||
#### jsPsychTimelineSpatialCueingTask.createTimeline(jsPsych, { *options* }) ⇒ <code>timeline</code> | ||
Description of the timeline that this plugin generates | ||
The following parameters can be specified in the **options** parameter. | ||
| Parameter | Type | Default | Description | | ||
|-----------|------|---------|-------------| | ||
| parameter | type | default | description | | ||
### timelineUnits | ||
### utils | ||
## Author / Citation | ||
Cherrie | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="https://unpkg.com/jspsych"></script> | ||
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response"></script> | ||
<script src="../dist/index.global.js"></script> | ||
<link rel="stylesheet" type="text/css" href="https://unpkg.com/jspsych/css/jspsych.css" /> | ||
<link rel="stylesheet" type="text/css" href="../src/styles.css" /> | ||
</head> | ||
|
||
<body></body> | ||
<script> | ||
const jsPsych = initJsPsych(); | ||
const spatialCueingTask = jsPsychTimelineSpatialCueingTask.createTimeline(jsPsych); | ||
jsPsych.run([spatialCueingTask]); | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("@jspsych/config/jest").makePackageConfig(__dirname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "@jspsych-timelines/spatial-cueing-task", | ||
"version": "0.0.1", | ||
"description": "A shareable timeline of the Posner spatial cueing task.", | ||
"type": "module", | ||
"main": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"unpkg": "dist/index.global.js", | ||
"scripts": { | ||
"build": "tsup src/index.ts --format esm,iife --sourcemap --dts --treeshake --clean --global-name jsPsychTimelineSpatialCueingTask" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/jspsych/jspsych-timelines.git" | ||
}, | ||
"keywords": [ | ||
"jsPsych" | ||
], | ||
"author": "Cherrie", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/jspsych/jspsych-timelines/issues" | ||
}, | ||
"homepage": "https://github.com/jspsych/jspsych-timelines/packages/spatial-cueing-task#readme", | ||
"peerDependencies": { | ||
"jspsych": "^7.3.3" | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.0.2" | ||
} | ||
} |
Oops, something went wrong.