Skip to content

Commit

Permalink
init video package
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Apr 18, 2024
1 parent cf81bd4 commit 784b263
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
15 changes: 15 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions packages/video/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require("@jspsych/config/jest").makePackageConfig(__dirname);
config.moduleNameMapper = {};
module.exports = config;
31 changes: 31 additions & 0 deletions packages/video/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@lookit/video",
"version": "0.0.1",
"description": "Video extensions for lookit 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": "Christopher J Green <[email protected]> (https://github.com/okaycj)",
"main": "dist/index.js",
"unpkg": "dist/index.browser.min.js",
"files": [
"src",
"dist"
],
"scripts": {
"build": "rollup --config",
"test": "jest --coverage"
},
"devDependencies": {
"@jspsych/config": "^2.0.0"
},
"peerDependencies": {
"jspsych": "^7.3.4"
}
}
4 changes: 4 additions & 0 deletions packages/video/rollup.config.dev.mjs
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 = 10004; // this needs to change for each package
export default makeDevConfig(rollupConfig, port);
3 changes: 3 additions & 0 deletions packages/video/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { makeRollupConfig } from "@jspsych/config/rollup";
// This package name needs to be unique
export default makeRollupConfig("chsVideo");
1 change: 1 addition & 0 deletions packages/video/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};
8 changes: 8 additions & 0 deletions packages/video/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"strict": true
},
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

0 comments on commit 784b263

Please sign in to comment.