Skip to content

Commit 72938c9

Browse files
committed
minor fixes
1 parent ca47815 commit 72938c9

File tree

4 files changed

+65
-38
lines changed

4 files changed

+65
-38
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Turborepo starter
1+
# plugins
2+
3+
## Scaffold a new plugin package
4+
5+
```sh
6+
pnpm plop plugin
7+
```
28

39
This is an official pnpm starter turborepo.
410

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"engines": {
2424
"node": ">=14.0.0"
2525
},
26-
"packageManager": "[email protected].0"
26+
"packageManager": "[email protected].1"
2727
}

plop-templates/plugin/src/index.ts.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { {{pascalCase name}} } from "./plugin";
44
import * as React from "react";
55

66
const info = {
7-
name: "{{kebabCase name}}-plugin",
7+
name: "pcllab-{{kebabCase name}}",
88
parameters: {
99
},
1010
};
@@ -22,7 +22,6 @@ class {{pascalCase name}}Plugin implements JsPsychPlugin<Info> {
2222
trial(display_element: HTMLElement, trial: TrialType<Info>) {
2323
const root = ReactDOM.createRoot(display_element);
2424

25-
/** Trial data is saved for every recalled word, instead of after one trial */
2625
const finishTrial = () => {
2726
root.unmount();
2827
this.jsPsych.finishTrial();

pnpm-lock.yaml

Lines changed: 56 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)