lookit / lookit-jspsych

0 stars 0 forks source link

Suggested updates to package.json #14

Closed becky-gilbert closed 7 months ago

becky-gilbert commented 8 months ago

A few suggestions for changes to our default package.json for new plugin packages (as outlined in this repo's README).

See here for an example package.json file for a jsPsych plugin package: https://github.com/jspsych/jsPsych/blob/main/packages/plugin-audio-button-response/package.json

And here's an example of a new lookit-jspsych plugin showing my proposed changes:

{
  "name": "@lookit/lookit-survey-consent",
  "version": "0.0.1",
  "description": "Plugin for survey consent trials in CHS/Lookit jsPsych studies.",
  "main": "dist/index.js",
  "scripts": {
    "test": "jest --coverage",
    "build": "rollup --config"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lookit/lookit-jspsych.git",
    "directory": "packages/lookit-survey-consent"
  },
  "author": "Becky Gilbert https://github.com/becky-gilbert",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/lookit/lookit-jspsych/issues"
  },
  "unpkg": "dist/index.browser.min.js",
  "files": [
    "src",
    "dist"
  ],
 "homepage": "https://lookit.readthedocs.io/en/develop/",
  "devDependencies": {
    "@jspsych/config": "^2.0.0"
  },
  "peerDependencies": {
    "jspsych": "^7.3.4"
  }
}