Skip to content

Commit

Permalink
add spatial cueing package
Browse files Browse the repository at this point in the history
  • Loading branch information
cchang-vassar committed Jun 20, 2023
1 parent 5b2192b commit abfa815
Show file tree
Hide file tree
Showing 10 changed files with 537 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/strange-penguins-stare.md
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
5 changes: 5 additions & 0 deletions .changeset/tender-deers-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@jspsych-timelines/cli": minor
---

Added the false memory task
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# Logs
logs
*.log
Expand Down
51 changes: 51 additions & 0 deletions packages/spatial-cueing-task/README.md
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
17 changes: 17 additions & 0 deletions packages/spatial-cueing-task/examples/index.html
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>
1 change: 1 addition & 0 deletions packages/spatial-cueing-task/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@jspsych/config/jest").makePackageConfig(__dirname);
34 changes: 34 additions & 0 deletions packages/spatial-cueing-task/package.json
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"
}
}

0 comments on commit abfa815

Please sign in to comment.