- Generates a bundled
jsPsychandcreate-react-appdistributable file in./dist, as described here. - Bootstrapped using npx create-react-app.
- Source code forked from jspsych-react.
- The package is pointing to a forked, "modular" version of jspsych (v6.1 ??) that has some minor modifications implemented by the makebrainwaves developers. It may be possible to update this to a modular version of jsPsych currently in development.
- Install with
npm install - Add packages with
npm i -D webpack-cli uglifyjs-webpack-plugin - Add package with
npm install -D [email protected] - Build and bundle with
npm run build
- To avoid conflicts with
react-scripts,package.jsonshould NOT containwebpack-cli,uglifyjs-webpack-plugin, orbabel-loaderin thedevDependenciesuntil AFTER other packages have already been installed by step 1 above. If running into issues, delete allpackage-lock.json,yarn.lock,node_modulesand follow steps 1-4 exactly in that order. - Related
babel-loadertroubleshooting found here.
- If it's desired to make repo private, must provide private key in the
package.json(see here).