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

False memory import #9

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
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
204 changes: 141 additions & 63 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"@jspsych/config": "^1.3.3",
"husky": "^7.0.1",
"import-sort-style-module": "^6.0.0",
"jest": "*",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"prettier-plugin-import-sort": "^0.0.7",
"jest": "*",
"ts-jest": "*"
},
"prettier": {
Expand All @@ -44,5 +44,8 @@
"projects": [
"<rootDir>/packages/*/jest.config.cjs"
]
},
"dependencies": {
"node": "^18.16.0"
}
}
49 changes: 49 additions & 0 deletions packages/false-memory-task/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# false-memory-task

## Overview

A timeline for the generic DRM false memory task

## Loading

### In browser

```html
<script src="https://unpkg.com/@jspsych-timelines/false-memory-task">
```

### Via NPM

```
npm install @jspsych-timelines/false-memory-task
```

```js
import { createTimeline, timelineUnits, utils } from "@jspsych-timelines/false-memory-task"
```

## Compatibility

`@jspsych-timelines/false-memory-task` requires jsPsych v7.0.0 or later.

## Documentation

### createTimeline

#### jsPsychTimelineFalseMemoryTask.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 Chang
18 changes: 18 additions & 0 deletions packages/false-memory-task/example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/jspsych"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response"></script>
<script src="https://unpkg.com/@jspsych/plugin-survey-text"></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 falseMemoryTask = jsPsychTimelineFalseMemoryTask.createTimeline(jsPsych);
jsPsych.run([falseMemoryTask]);
</script>
</html>
1 change: 1 addition & 0 deletions packages/false-memory-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);
Loading