-
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.
update false memory task package.json
- Loading branch information
1 parent
faa7bfc
commit 6717f9e
Showing
10 changed files
with
2,241 additions
and
24 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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 @@ | ||
# test | ||
|
||
## Overview | ||
|
||
test | ||
|
||
## Loading | ||
|
||
### In browser | ||
|
||
```html | ||
<script src="https://unpkg.com/@jspsych-timelines/test"> | ||
``` | ||
### Via NPM | ||
``` | ||
npm install @jspsych-timelines/test | ||
``` | ||
```js | ||
import { createTimeline, timelineUnits, utils } from "@jspsych-timelines/test" | ||
``` | ||
## Compatibility | ||
`@jspsych-timelines/test` requires jsPsych v7.0.0 or later. | ||
## Documentation | ||
### createTimeline | ||
#### jsPsychTimelineTest.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 | ||
me | ||
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 @@ | ||
# test | ||
|
||
test | ||
|
||
## Parameters | ||
|
||
### Initialization Parameters | ||
|
||
Initialization parameters can be set when calling `initJsPsych()` | ||
|
||
```js | ||
initJsPsych({ | ||
timelines: [ | ||
{type: jsPsychTimelineTest, params: {...}} | ||
] | ||
}) | ||
``` | ||
|
||
Parameter | Type | Default Value | Description | ||
----------|------|---------------|------------ | ||
| | | | ||
|
||
### Trial Parameters | ||
|
||
Trial parameters can be set when adding the timeline to a trial object. | ||
|
||
```js | ||
var trial = { | ||
type: jsPsych..., | ||
timelines: [ | ||
{type: jsPsychTimelineTest, params: {...}} | ||
] | ||
} | ||
``` | ||
|
||
Parameter | Type | Default Value | Description | ||
----------|------|---------------|------------ | ||
| | | | ||
|
||
## Data Generated | ||
|
||
Name | Type | Value | ||
-----|------|------ | ||
| | | ||
|
||
## Functions | ||
|
||
If the timeline adds any static functions, list them here. | ||
|
||
### function() | ||
|
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<script src="https://unpkg.com/jspsych"></script> | ||
<script src="../dist/index.global.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/jspsych/css/jspsych.css"> | ||
</head> | ||
|
||
<body></body> | ||
<script> | ||
const jsPsych = initJsPsych(); | ||
|
||
const task = jsPsychTimelineTest.createTimeline(jsPsych, { }); | ||
|
||
jsPsych.run([task]) | ||
</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/test", | ||
"version": "0.0.1", | ||
"description": "test", | ||
"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 jsPsychTimelineTest" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/jspsych/jspsych-timelines.git" | ||
}, | ||
"keywords": [ | ||
"jsPsych" | ||
], | ||
"author": "me", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/jspsych/jspsych-timelines/issues" | ||
}, | ||
"homepage": "https://github.com/jspsych/jspsych-timelines/packages/test#readme", | ||
"peerDependencies": { | ||
"jspsych": "^8.0.1" | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.0.2" | ||
} | ||
} |
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,9 @@ | ||
import { JsPsych } from "jspsych" | ||
|
||
export function createTimeline(jsPsych:JsPsych, {}){ | ||
|
||
} | ||
|
||
export const timelineUnits = {} | ||
|
||
export const utils = {} |
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,10 @@ | ||
{ | ||
"extends": "@jspsych/config/tsconfig.contrib.json", | ||
"compilerOptions": { | ||
"baseUrl": "." | ||
}, | ||
"include": [ | ||
"src", | ||
"../cli/src/build.js" | ||
] | ||
} |