Skip to content

Commit

Permalink
merge with remote branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Sep 3, 2024
1 parent 3297231 commit ab66fa0
Show file tree
Hide file tree
Showing 8 changed files with 8,331 additions and 6,336 deletions.
14,489 changes: 8,153 additions & 6,336 deletions package-lock.json

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions packages/test/README.md
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
51 changes: 51 additions & 0 deletions packages/test/docs/test.md
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()

19 changes: 19 additions & 0 deletions packages/test/examples/index.html
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>
1 change: 1 addition & 0 deletions packages/test/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@jspsych/config/jest").makePackageConfig(__dirname);
37 changes: 37 additions & 0 deletions packages/test/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@jspsych-timelines/test",
"version": "0.0.1",
"description": "test",
"type": "module",
"main": "dist/index.mjs",
"types": "dist/index.d.ts",
"unpkg": "dist/index.browser.min.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": {
"name": "me",
"url": ""
},
"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"
}
}
9 changes: 9 additions & 0 deletions packages/test/src/index.ts
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 = {}
10 changes: 10 additions & 0 deletions packages/test/tsconfig.json
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"
]
}

0 comments on commit ab66fa0

Please sign in to comment.