Replies: 1 comment
-
I figured it out, it is generated in the rollup.config.mjs file in the package directory! It's not generated, you specify the name in a string and it becomes a global variable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm developing a plugin called Shrink. I have an index.ts file for the plugin, modified from the typescript plugin template. However, I can't seem to make a trial using it in my experiment html file - I can't figure out what to put for the "type: " parameter. I've tried jsPsychShrink, Shrink, ShrinkPlugin, but it's not clear in the documentation where and how this type name is created. Is this something to do with the "npm run build command" in the documentation, or is that not necessary? I haven't gotten that to work, but I'm not sure if I need the whole build to just run a simple plugin.
In the experiment.html:
var shrink_trial = { type: jsPsychShrink, stimulus: [ "images\\camel.gif", "images\\thimble.gif", "images\\cake.gif", "images\\pumpkin.gif",] };
In the plugin index.ts:
const info = <const>{ name: "shrink", parameters: { type: ParameterType.ARRAY, pretty_name: "Stimulus", default: undefined, }, }, };
Beta Was this translation helpful? Give feedback.
All reactions