EasyEys 阈值
用于测量各种心理测量阈值的基于PsychoJS的实验生成器,如挤压. 请访问 https://easyeyes.app/实验 给更多的指示.
发展
要复制此 repo, 请使用
git clone --recurse-submodules https://github.com/EasyEyes/threshold.git
然后,运行以下 为初始设置
npm install
npm run build
根据具体的实验表开发,使用
npm run examples [tableName].[xlsx] # you may also run `npm run examples` to prepare for all tables in your examples/tables folder
npm start # interactive selection of built examples
npm start -- --name=[tableName] # start hot-reload development for specific example
你需要重新运行 npm run examples [your table name] 每次编辑 HTML 或表格文件.
PhychoJS 版本
我们用心理JS建立EasyEyes门槛 2022.1.3。 。 。 .
维特构建系统(实验)
我们添加了Vite作为Webpack的实验替代品,用于更快的建设. 现有的Webpack设置仍然充分运作.
新建脚本
npm run vite-start- 启动 Vite 开发服务器npm run vite-build- 与Vite一起建设npm run vite-preview- 预览Vite生产大楼npm run compare-builds- 比较Webpack vs Vite 构建性能(需要 Rust)
业绩比较
比较Webpack和Vite之间的构建性能:
npm run compare-builds
这个基于 Rust 的工具运行每个构建三次,并提供详细的统计数据包括:
- 平均建设时间
- 标准偏差
- 统计意义
- 百分比提高
页:1
- Vite 配置为
vite.config.js - 将系统输出建为同一系统
js/目录 - Rust 比较工具需要安装 Rust
- 现有的 Webpack 脚本(
npm start, (中文(简体) ),npm run build)保持不变