Comments (7)
Thanks to @bjoluc , I can finally publish the psychophysics plugin on NPM. Sorry for the wait.
You can install it runningnpm install @kurokida/jspsych-psychophysics
You can also see the website:
https://www.npmjs.com/package/@kurokida/jspsych-psychophysics
Best,
Daiichiro
from jspsych-psychophysics.
Thank you both!
I have opened an issue in the jspsych-builder repository (bjoluc/jspsych-builder#40). Let's see if the jspsych-builder developers have a simple solution.
from jspsych-psychophysics.
Bueno! I liked it in the hope that I then get notifications when we get any replies :)
from jspsych-psychophysics.
@bjoluc Thank you for the careful explanation. Since I'm not familiar with the ES module and NPM, I can't fully imagine what would be happned if I accept your suggestions. I'm little concerned about changing how to download my plugin. Since my plugin includes the jsPsych itself, the users can run my sample programs just by downloading the plugin from GitHub repository. Introducing the NPM stile might be confuse my plugin users.
But on the other hand, I interested in making my plugin compatible with NPM. So, if you can please make the PR and let me confirm how use of my plugin would be changed.
Best,
Daiichiro
from jspsych-psychophysics.
Thanks for this post!
Unfortunately, I'm not familliar with the npm at all. But my friend @tpronk might be able to help us.
I hope you don't get your hopes up and wait too long.
from jspsych-psychophysics.
Hi @franfrutos and @kurokida!
I took a quick peek at jsPsych Builder. I see that besides NPM, it also supports "module-style imports of non-module plugins from @jspsych-contrib". However, the NPM and the contrib approach seem to require that the jspsych-psychophysics plugin is written in ES6, which it currently isn't. Converting the psychophysics plugin to ES6 could be quite project.
However, I'm not very sure of the above, since I'm not very experienced with jsPsych and only found out about that builder half an hour ago. Maybe reach out the builder devs to see what they think?
from jspsych-psychophysics.
Hi all,
I just skimmed over the code and found that it's quite easy to turn into an ES module and publish to NPM. It doesn't require modernizing any of the internals, just changing some top-level code. However, it would add an extra "transpile" step that automatically creates the conventional jspsych-psychophysics.js
file from the ES version of it so you don't have to maintain both. @kurokida You might continue committing a generated jspsych-psychophysics.js
to Git or just let people download the package from NPM / unpkg.com instead of GitHub. And you would need to update the package version and run npm publish
for every new release. Happy to send a PR and explain the setup if you're interested. Cheers!
from jspsych-psychophysics.
Related Issues (20)
- event handlers compatible with gabor parameters HOT 3
- Simulation mode for psychophysics HOT 2
- Wrong X,Y coordinates for gabor stimuli HOT 2
- Change image interactively HOT 12
- Coordinate problem about simultaneously using "key" and "button" response type HOT 5
- Define sequence of stimulus and indicate duration in both ms and frames HOT 5
- Prolem with object 'sound' HOT 2
- slider response HOT 1
- compatibility with pavlovia
- Precise timing and different screen refresh rates HOT 1
- canvas height and jspsych-content mismatch HOT 2
- Concurrent presentation of images and sounds HOT 4
- Pre-load stimuli HOT 3
- Recolour SVG image HOT 5
- trouble importing npm plugin HOT 3
- Making text stimuli bold and coloured HOT 2
- Laptop and mobile phone compatibility HOT 4
- End the visual stimuli by key response, but make the auditory stimuli keep playing HOT 10
- Dragging one image using mouse_drawing while keeping another image HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jspsych-psychophysics.