-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
224c9df
commit ddadbd3
Showing
7 changed files
with
627 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,9 @@ | ||
# Video Config | ||
|
||
This package contains a jsPsych plugin for presenting a video configuration trial. | ||
|
||
## Example | ||
|
||
```javascript | ||
const videoConfig = { type: chsVideoConfig }; | ||
``` |
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("../../jest.cjs").makePackageConfig(); |
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,38 @@ | ||
{ | ||
"name": "@lookit/video-config", | ||
"version": "0.0.1", | ||
"description": "jsPsych plugin for helping the participant set up and test their webcam and microphone in CHS studies.", | ||
"homepage": "https://github.com/lookit/lookit-jspsych#readme", | ||
"bugs": { | ||
"url": "https://github.com/lookit/lookit-jspsych/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/lookit/lookit-jspsych.git" | ||
}, | ||
"license": "ISC", | ||
"author": "Becky Gilbert <beckyannegilbert@gmail.com> (https://github.com/becky-gilbert)", | ||
"main": "dist/index.js", | ||
"unpkg": "dist/index.browser.min.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "rollup --config", | ||
"dev": "rollup --config rollup.config.dev.mjs --watch", | ||
"test": "jest --coverage" | ||
}, | ||
"dependencies": { | ||
"@lookit/data": "^0.0.1", | ||
"@lookit/record": "^0.0.1" | ||
}, | ||
"devDependencies": { | ||
"@jspsych/config": "^2.0.2", | ||
"rollup-plugin-dotenv": "^0.5.1" | ||
}, | ||
"peerDependencies": { | ||
"jspsych": "^8.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,4 @@ | ||
import { makeDevConfig } from "../../rollup-dev.mjs"; | ||
import rollupConfig from "./rollup.config.mjs"; | ||
const port = 10005; // this needs to change for each package | ||
export default makeDevConfig(rollupConfig, port); |
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,13 @@ | ||
import { nodeResolve } from "@rollup/plugin-node-resolve"; | ||
import { makeRollupConfig } from "../../rollup.mjs"; | ||
|
||
export default makeRollupConfig("chsVideoConfig").map((config) => { | ||
return { | ||
...config, | ||
plugins: [ | ||
// Resolve node dependencies to be used in a browser. | ||
nodeResolve({ browser: true, preferBuiltins: false }), | ||
...config.plugins, | ||
], | ||
}; | ||
}); |
Oops, something went wrong.