Prepare @jspsych/config for external use

This commit is contained in:
bjoluc 2021-08-25 20:51:09 +02:00
parent b0d77e79aa
commit 6006fec96a
114 changed files with 819 additions and 2535 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
engine-strict=true

View File

@ -1,49 +1 @@
import gulp from "gulp";
import rename from "gulp-rename";
import replace from "gulp-replace";
import zip from "gulp-zip";
import merge from "merge-stream";
const { dest, src } = gulp;
export const createDistArchive = () =>
merge(
// index.browser.js files
src("packages/*/dist/index.browser.js", { root: "packages/" })
// Rename dist files
.pipe(
rename((path) => {
const packageName = path.dirname.split("/")[0];
path.dirname = "/dist";
path.basename = packageName;
})
)
// Remove sourceMappingURL comments
.pipe(replace(/\/\/# sourceMappingURL=.*\n/g, "")),
// jspsych.css
src("packages/jspsych/css/jspsych.css").pipe(rename("/dist/jspsych.css")),
// Examples
src("examples/**/*", { base: "." })
// Rewrite script source paths
.pipe(
replace(
/<script src="(.*)\/packages\/(.*)\/dist\/index\.browser\.js"><\/script>/g,
'<script src="$1/dist/$2.js"></script>'
)
)
// Rewrite jspsych css source paths
.pipe(
replace(
/<link rel="stylesheet" href="(.*)\/packages\/jspsych\/css\/(.*)" \/>/g,
'<link rel="stylesheet" href="$1/dist/$2" />'
)
),
// Other files
src(["*.md", "license.txt"])
)
.pipe(zip("dist.zip"))
.pipe(dest("."));
export { createCoreDistArchive } from "@jspsych/config/gulp";

2785
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,39 +8,20 @@
"test": "jest",
"test:watch": "npm test -- --watch",
"build": "npm run build -ws",
"build:archive": "gulp createDistArchive",
"build:archive": "gulp createCoreDistArchive",
"prepare": "husky install && npm run build",
"tsc": "npm run tsc -ws"
},
"engines": {
"node": ">=14.0.0",
"npm": ">=7.0.0"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/gulp": "^4.0.9",
"@types/jest": "^26.0.23",
"canvas": "^2.8.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.1.3",
"gulp-zip": "^5.1.0",
"husky": "^7.0.1",
"import-sort-style-module": "^6.0.0",
"jest": "^27.0.6",
"jest-environment-jsdom": "^27.0.6",
"lint-staged": "^11.1.2",
"merge-stream": "^2.0.0",
"prettier": "^2.3.2",
"prettier-plugin-import-sort": "^0.0.7",
"rollup": "^2.52.7",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^27.0.3",
"tslib": "^2.3.0",
"typescript": "^4.3.5"
"prettier-plugin-import-sort": "^0.0.7"
},
"prettier": {
"printWidth": 100

49
packages/config/gulp.js Normal file
View File

@ -0,0 +1,49 @@
import gulp from "gulp";
import rename from "gulp-rename";
import replace from "gulp-replace";
import zip from "gulp-zip";
import merge from "merge-stream";
const { dest, src } = gulp;
export const createCoreDistArchive = () =>
merge(
// index.browser.js files
src("packages/*/dist/index.browser.js", { root: "packages/" })
// Rename dist files
.pipe(
rename((path) => {
const packageName = path.dirname.split("/")[0];
path.dirname = "/dist";
path.basename = packageName;
})
)
// Remove sourceMappingURL comments
.pipe(replace(/\/\/# sourceMappingURL=.*\n/g, "")),
// jspsych.css
src("packages/jspsych/css/jspsych.css").pipe(rename("/dist/jspsych.css")),
// Examples
src("examples/**/*", { base: "." })
// Rewrite script source paths
.pipe(
replace(
/<script src="(.*)\/packages\/(.*)\/dist\/index\.browser\.js"><\/script>/g,
'<script src="$1/dist/$2.js"></script>'
)
)
// Rewrite jspsych css source paths
.pipe(
replace(
/<link rel="stylesheet" href="(.*)\/packages\/jspsych\/css\/(.*)" \/>/g,
'<link rel="stylesheet" href="$1/dist/$2" />'
)
),
// Other files
src(["*.md", "license.txt"])
)
.pipe(zip("dist.zip"))
.pipe(dest("."));

View File

@ -1,8 +1,58 @@
{
"private": true,
"name": "@jspsych/config",
"version": "0.1.0",
"type": "module",
"exports": {
"./babel": {
"import": null,
"require": "./babel.cjs"
},
"./gulp": {
"import": "./gulp.js",
"require": null
},
"./jest": {
"import": null,
"require": "./jest.cjs"
},
"./rollup": {
"import": "./rollup.js",
"require": null
},
"./tsconfig.json": "./tsconfig.json",
"./tsconfig.core.json": "./tsconfig.core.json",
"./tsconfig.contrib.json": "./tsconfig.contrib.json"
},
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"build": "",
"tsc": ""
},
"dependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/gulp": "^4.0.9",
"@types/jest": "^26.0.23",
"canvas": "^2.8.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.1.3",
"gulp-zip": "^5.1.0",
"jest": "^27.0.6",
"jest-environment-jsdom": "^27.0.6",
"merge-stream": "^2.0.0",
"rollup": "^2.52.7",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^27.0.3",
"tslib": "^2.3.0",
"typescript": "^4.3.5"
}
}

View File

@ -7,13 +7,12 @@ import { terser } from "rollup-plugin-terser";
import typescript from "rollup-plugin-typescript2";
import ts from "typescript";
export const makeRollupConfig = (outputOptions, globalOptions = {}) => {
const makeConfig = (outputOptions, globalOptions = {}, iifeOutputOptions = {}) => {
const source = "src/index";
const destination = "dist/index";
outputOptions = {
sourcemap: true,
exports: "default", // for iife outputs
...outputOptions,
};
@ -30,7 +29,7 @@ export const makeRollupConfig = (outputOptions, globalOptions = {}) => {
compilerOptions: {
rootDir: "./src",
outDir: "./dist",
paths: {}, // Do not include files referenced via paths
paths: {}, // Do not include files referenced via `paths`
},
},
}),
@ -51,11 +50,18 @@ export const makeRollupConfig = (outputOptions, globalOptions = {}) => {
format: "esm",
...outputOptions,
},
{
// Build commonjs module (for tools that do not fully support ES6 modules)
file: `${destination}.cjs`,
format: "cjs",
...outputOptions,
},
{
// Build file to be used for tinkering in modern browsers
file: `${destination}.browser.js`,
format: "iife",
...outputOptions,
...iifeOutputOptions,
},
],
},
@ -65,7 +71,7 @@ export const makeRollupConfig = (outputOptions, globalOptions = {}) => {
plugins: commonConfig.plugins.concat(
babel({
babelHelpers: "bundled",
extends: "@jspsych/config/babel.config.js",
extends: "@jspsych/config/babel",
})
),
output: [
@ -75,17 +81,39 @@ export const makeRollupConfig = (outputOptions, globalOptions = {}) => {
format: "iife",
plugins: [terser()],
...outputOptions,
...iifeOutputOptions,
},
],
},
]);
};
export const makeRollupConfigForPlugin = (iifeName) =>
makeRollupConfig(
/**
* Returns a Rollup configuration object for a JsPsych plugin or extension that is written in
* TypeScript
*
* @param {string} iifeName The variable name that will identify the plugin or extension in the
* global scope in browser builds
*/
export const makeRollupConfig = (iifeName) =>
makeConfig(
{
name: iifeName,
exports: "default",
globals: { jspsych: "jsPsychModule" },
},
{ external: ["jspsych"] }
{ external: ["jspsych"] },
{ name: iifeName }
);
/**
* Returns the rollup configuration for the core `jspsych` package.
*/
export const makeCoreRollupConfig = () =>
makeConfig(
{
exports: "named",
name: "jsPsychModule",
},
{},
{ footer: "var initJsPsych = jsPsychModule.initJsPsych;" }
);

View File

@ -0,0 +1,10 @@
{
// ts-config for the jspsych-dist monorepo
"extends": "@jspsych/config/tsconfig.json",
"compilerOptions": {
// map jspsych-contrib package imports directly to their source files
"paths": {
"@jspsych-contrib/*": ["../*/src"]
}
}
}

View File

@ -0,0 +1,15 @@
{
// tsconfig for the jsPsych monorepo
"extends": "@jspsych/config/tsconfig.json",
"compilerOptions": {
// map package imports directly to their source files
"paths": {
"jspsych/tests": ["../jspsych/tests"],
"jspsych": ["../jspsych/src"],
"@jspsych/*": ["../*/src"]
},
// allow resolving json modules in tests (needed for transitive imports of jspsych in tests;
// the jspsych package itself uses https://stackoverflow.com/a/61426303 instead)
"resolveJsonModule": true
}
}

View File

@ -1,4 +1,5 @@
{
// shared base tsconfig for all jsPsych packages
// based on https://github.com/formium/tsdx/blob/462af2d002987f985695b98400e0344b8f2754b7/templates/basic/tsconfig.json<<<<
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
"compilerOptions": {
@ -28,12 +29,6 @@
"forceConsistentCasingInFileNames": true,
// do note emit build output when running `tsc`
"noEmit": true,
// map package imports directly to their source files
"paths": {
"jspsych/tests": ["../jspsych/tests"],
"jspsych": ["../jspsych/src"],
"@jspsych/*": ["../*/src"]
},
// allow resolving json modules in tests (needed for transitive imports of jspsych in tests;
// the jspsych package itself uses https://stackoverflow.com/a/61426303 instead)
"resolveJsonModule": true

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychExtensionWebgazer");
export default makeRollupConfig("jsPsychExtensionWebgazer");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,7 +1,3 @@
import { makeRollupConfig } from "@jspsych/config/rollup.mjs";
import { makeCoreRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfig({
exports: "named",
name: "jsPsychModule",
footer: "var initJsPsych = jsPsychModule.initJsPsych;",
});
export default makeCoreRollupConfig();

View File

@ -1,5 +1,5 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"compilerOptions": {
"resolveJsonModule": false // using https://stackoverflow.com/a/61426303 instead
},

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychAnimation");
export default makeRollupConfig("jsPsychAnimation");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychAudioButtonResponse");
export default makeRollupConfig("jsPsychAudioButtonResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychAudioKeyboardResponse");
export default makeRollupConfig("jsPsychAudioKeyboardResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychAudioSliderResponse");
export default makeRollupConfig("jsPsychAudioSliderResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCallFunction");
export default makeRollupConfig("jsPsychCallFunction");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCanvasButtonResponse");
export default makeRollupConfig("jsPsychCanvasButtonResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCanvasKeyboardResponse");
export default makeRollupConfig("jsPsychCanvasKeyboardResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCanvasSliderResponse");
export default makeRollupConfig("jsPsychCanvasSliderResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCategorizeAnimation");
export default makeRollupConfig("jsPsychCategorizeAnimation");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCategorizeHtml");
export default makeRollupConfig("jsPsychCategorizeHtml");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCategorizeImage");
export default makeRollupConfig("jsPsychCategorizeImage");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychCloze");
export default makeRollupConfig("jsPsychCloze");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychExternalHtml");
export default makeRollupConfig("jsPsychExternalHtml");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychFreeSort");
export default makeRollupConfig("jsPsychFreeSort");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychFullscreen");
export default makeRollupConfig("jsPsychFullscreen");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychHtmlButtonResponse");
export default makeRollupConfig("jsPsychHtmlButtonResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychHtmlKeyboardResponse");
export default makeRollupConfig("jsPsychHtmlKeyboardResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychHtmlSliderResponse");
export default makeRollupConfig("jsPsychHtmlSliderResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychIatHtml");
export default makeRollupConfig("jsPsychIatHtml");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychIatImage");
export default makeRollupConfig("jsPsychIatImage");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychImageButtonResponse");
export default makeRollupConfig("jsPsychImageButtonResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychImageKeyboardResponse");
export default makeRollupConfig("jsPsychImageKeyboardResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychImageSliderResponse");
export default makeRollupConfig("jsPsychImageSliderResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychInstructions");
export default makeRollupConfig("jsPsychInstructions");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychMaxdiff");
export default makeRollupConfig("jsPsychMaxdiff");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychPreload");
export default makeRollupConfig("jsPsychPreload");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychRdk");
export default makeRollupConfig("jsPsychRdk");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychReconstruction");
export default makeRollupConfig("jsPsychReconstruction");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychResize");
export default makeRollupConfig("jsPsychResize");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSameDifferentHtml");
export default makeRollupConfig("jsPsychSameDifferentHtml");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSameDifferentImage");
export default makeRollupConfig("jsPsychSameDifferentImage");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSerialReactionTimeMouse");
export default makeRollupConfig("jsPsychSerialReactionTimeMouse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSerialReactionTime");
export default makeRollupConfig("jsPsychSerialReactionTime");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSurveyHtmlForm");
export default makeRollupConfig("jsPsychSurveyHtmlForm");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSurveyLikert");
export default makeRollupConfig("jsPsychSurveyLikert");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSurveyMultiChoice");
export default makeRollupConfig("jsPsychSurveyMultiChoice");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSurveyMultiSelect");
export default makeRollupConfig("jsPsychSurveyMultiSelect");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychSurveyText");
export default makeRollupConfig("jsPsychSurveyText");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychTemplate");
export default makeRollupConfig("jsPsychTemplate");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychVideoButtonResponse");
export default makeRollupConfig("jsPsychVideoButtonResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychVideoKeyboardResponse");
export default makeRollupConfig("jsPsychVideoKeyboardResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

View File

@ -1,3 +1,3 @@
import { makeRollupConfigForPlugin } from "@jspsych/config/rollup.mjs";
import { makeRollupConfig } from "@jspsych/config/rollup";
export default makeRollupConfigForPlugin("jsPsychVideoSliderResponse");
export default makeRollupConfig("jsPsychVideoSliderResponse");

View File

@ -1,4 +1,4 @@
{
"extends": "@jspsych/config/tsconfig.json",
"extends": "@jspsych/config/tsconfig.core.json",
"include": ["src"]
}

Some files were not shown because too many files have changed in this diff Show More