Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
287 commits
Select commit Hold shift + click to select a range
d12f5d1
fix: USE_PROLIFIC checks against null instead of undefined
RobertGemmaJr May 13, 2024
d74c74a
BREAKING_CHANGE: Update scripts
RobertGemmaJr May 13, 2024
2185667
ref: Clean up workflows with the new commands
RobertGemmaJr May 13, 2024
e4ba93b
BREAKING CHANGE: Remove the github pages deployment workflow
RobertGemmaJr May 13, 2024
be72c15
chore: Update firebase scripts
RobertGemmaJr May 13, 2024
7680b9e
chore: Update firebase.json
RobertGemmaJr May 13, 2024
c4364e1
ci: Test Firebase preview link without pre-configured script
RobertGemmaJr May 13, 2024
06a35c4
chore: Ci
RobertGemmaJr May 13, 2024
d310a3e
ci: Remove Firebase
RobertGemmaJr May 13, 2024
4369ff4
ci: Add back Firebase actions
RobertGemmaJr May 13, 2024
75418f5
ci: Add build step back to firebase acitons
RobertGemmaJr May 13, 2024
b9ee57a
ci: Test firebase predwploy script with firebase.json
RobertGemmaJr May 13, 2024
d8d57dc
chore: Update predeploy script
RobertGemmaJr May 13, 2024
684fb90
Merge pull request #470 from brown-ccv/feat-vite
RobertGemmaJr May 13, 2024
6f84705
chore: lock
RobertGemmaJr May 13, 2024
15fcc12
wip: Set type as module
RobertGemmaJr May 14, 2024
14a579c
ref: Rename vite configs with js extension
RobertGemmaJr May 14, 2024
cde924e
ref: Rename extension for version
RobertGemmaJr May 14, 2024
4f106f2
ref: Use forge config as a type module
RobertGemmaJr May 14, 2024
81ea139
wip: Build .vite dev server as cjs
RobertGemmaJr May 14, 2024
d6de43e
ref: Use Electron code as CJS
RobertGemmaJr May 14, 2024
4cd465d
chore: cleanup
RobertGemmaJr May 14, 2024
de17e26
chore: Remove console log
RobertGemmaJr May 14, 2024
1a984b6
chore: comments
RobertGemmaJr May 14, 2024
f735da8
ref: Separate window logic between dev and prod
RobertGemmaJr May 14, 2024
431e9aa
ref: Use app.isPackaged for the window size
RobertGemmaJr May 14, 2024
52ba7fe
chore: comments
RobertGemmaJr May 14, 2024
d236e45
chore: Remove installer
RobertGemmaJr May 14, 2024
8e20317
build: Uninstall uneeded dependencies
RobertGemmaJr May 14, 2024
119e0bc
ci: Update actions
RobertGemmaJr May 14, 2024
1bf10c1
chore: update make scripts
RobertGemmaJr May 14, 2024
d933dae
wip: Move the serialport code into its own file
RobertGemmaJr May 14, 2024
f92177c
chore: UPdate forge config
RobertGemmaJr May 14, 2024
c1262cc
ref: Remove react strict mode
RobertGemmaJr May 15, 2024
e98d14b
chore: COnfig cleanup
RobertGemmaJr May 15, 2024
eb4c396
chore: comments
RobertGemmaJr May 15, 2024
efb6a63
ref: Update file saving paths in Honeycomb desktop
RobertGemmaJr May 15, 2024
4712a4a
ref: Update data paths
RobertGemmaJr May 15, 2024
6153a98
chore: TODO
RobertGemmaJr May 15, 2024
6163b67
wip: Add utility functions for getting the data and output paths
RobertGemmaJr May 15, 2024
ce07550
wip: Fix path functions
RobertGemmaJr May 15, 2024
4dd06f9
chore: Reorder constants
RobertGemmaJr May 15, 2024
47dd09e
chore: TODOs
RobertGemmaJr May 15, 2024
2ac1ce3
chore: Comments
RobertGemmaJr May 15, 2024
f70713d
Merge pull request #474 from brown-ccv/feat-developer-tools
RobertGemmaJr May 16, 2024
5acf003
Merge branch 'type-module' into fix-window
RobertGemmaJr May 16, 2024
4aeb7bd
Merge pull request #473 from brown-ccv/fix-window
RobertGemmaJr May 16, 2024
35360c9
Merge branch 'type-module' into fix-serialport
RobertGemmaJr May 16, 2024
5befd11
Merge branch 'type-module' into ref-paths
RobertGemmaJr May 16, 2024
420a8fc
Merge pull request #475 from brown-ccv/fix-serialport
RobertGemmaJr May 16, 2024
9c44676
Merge branch 'main' into feat-v4
RobertGemmaJr May 16, 2024
09d8e07
Merge branch 'feat-v4' into feat-forge-vite
RobertGemmaJr May 16, 2024
481687f
Merge branch 'feat-forge-vite' into type-module
RobertGemmaJr May 16, 2024
d2e26ff
Merge branch 'type-module' of https://github.com/brown-ccv/honeycomb …
RobertGemmaJr May 16, 2024
a382c55
Merge branch 'type-module' into ref-paths
RobertGemmaJr May 16, 2024
227c48d
chore: lock
RobertGemmaJr May 16, 2024
bf2c5e1
Update src/Electron/main.js
RobertGemmaJr May 16, 2024
ecaaa68
Update src/Electron/main.js
RobertGemmaJr May 16, 2024
5caa0b7
Update src/Electron/main.js
RobertGemmaJr May 16, 2024
48a7c04
Merge pull request #476 from brown-ccv/ref-paths
RobertGemmaJr May 16, 2024
0ec443c
Merge pull request #471 from brown-ccv/type-module
RobertGemmaJr May 16, 2024
e9a2f6e
wip: Delete version script
RobertGemmaJr May 16, 2024
288ed78
ref: Revert version commit
RobertGemmaJr May 16, 2024
9bf539f
ci: Update version scripts
RobertGemmaJr May 16, 2024
c03d760
wip: Clean up main config
RobertGemmaJr May 16, 2024
b5dd044
wip: Define globals for APP_NAME and APP_VERSION
RobertGemmaJr May 16, 2024
678aa7e
ref: Add app name and version to the jsPsych info
RobertGemmaJr May 16, 2024
854631f
feat: Add package name and version to vite config, import.meta.env
RobertGemmaJr May 16, 2024
f1e8910
ref: Clean up configs
RobertGemmaJr May 16, 2024
25e63a0
chore: TODO
RobertGemmaJr May 16, 2024
b2572a2
chore: comments
RobertGemmaJr May 16, 2024
6fa03dd
chore: Remove console log
RobertGemmaJr May 16, 2024
0c7a619
ref: Refactor how the jsPsych data is collected
RobertGemmaJr May 16, 2024
32a8b1e
chore: TODO
RobertGemmaJr May 16, 2024
35de2f9
fix: Fix json starting data
RobertGemmaJr May 16, 2024
65fba7c
ref: Cleanup forge config
RobertGemmaJr May 17, 2024
fddad30
BREAKING CHANGE: Remove VOLUME equipment
RobertGemmaJr May 17, 2024
ef3736f
Merge pull request #469 from brown-ccv/feat-forge-vite
RobertGemmaJr May 17, 2024
9c9d4bd
fix: Fix maker for Mac
RobertGemmaJr May 20, 2024
1c0b3e7
chore: lock
RobertGemmaJr May 20, 2024
eeb407d
chore: lock
RobertGemmaJr May 21, 2024
997ce93
fix: Fix path in forge config
RobertGemmaJr May 21, 2024
520a096
chore: lock
RobertGemmaJr Jun 12, 2024
c725d9b
wip: remove the type field from the login inputs
RobertGemmaJr Jun 12, 2024
30a36f0
wip: Hook up a loading state for the login button
RobertGemmaJr Jun 12, 2024
fceda31
ref: Remove disabled flag, use "required" so it works on the underlyi…
RobertGemmaJr Jun 12, 2024
e27dac4
ref: Change the error message since it doesnt always show up on inval…
RobertGemmaJr Jun 12, 2024
4a38f4d
chore: Add link to docs in the docstring
RobertGemmaJr Jun 12, 2024
788c6ea
refactor: change introduction trial's stimulus from h1 tags to p tags
YUUU23 Jun 13, 2024
0853288
Merge pull request #491 from brown-ccv/ref-login-cleanup
RobertGemmaJr Jun 13, 2024
ddaa8fa
refactor: add p tag to prompt and change back h1 tag for stimulus
YUUU23 Jun 13, 2024
a4fb953
Merge branch 'main' into feat-v4
RobertGemmaJr Jun 17, 2024
1df2752
chore: deps
RobertGemmaJr Jun 18, 2024
0bb2bdb
Merge branch 'main' into feat-v3.4.1
YUUU23 Jun 18, 2024
953a75c
Merge branch 'feat-v3.4.1' into ref-intro-p-tag
YUUU23 Jun 18, 2024
b47d5cb
Merge pull request #493 from brown-ccv/ref-intro-p-tag
YUUU23 Jun 18, 2024
9fd3dfb
build: upgrade deps
RobertGemmaJr Jun 24, 2024
01be0a0
build: Upgrade jsPsych survey dependency to latest version
RobertGemmaJr Jun 24, 2024
88c3fd6
Merge branch 'build-upgrade' into feat-v3.4.1
RobertGemmaJr Jun 24, 2024
474361f
build: upgrade Electron
RobertGemmaJr Jun 24, 2024
cbd7745
chore: lock
RobertGemmaJr Jun 24, 2024
30bfd81
Merge branch 'feat-v3.4.1' into feat-v4
RobertGemmaJr Jun 24, 2024
0432a2e
chore: lock
RobertGemmaJr Jun 24, 2024
59d588e
Merge branch 'feat-v4' into remove-volume
RobertGemmaJr Jun 24, 2024
c1183ee
Merge branch 'feat-v4' into ref-info
RobertGemmaJr Jun 24, 2024
25cd537
Merge pull request #480 from brown-ccv/remove-volume
RobertGemmaJr Jun 24, 2024
1bb250a
Merge branch 'feat-v4' into ref-info
RobertGemmaJr Jun 24, 2024
5ce8394
refactor: upgrade SDK from namespace to modular for firebase
YUUU23 Jul 4, 2024
c323262
add: add back issues in comments
YUUU23 Jul 4, 2024
d05e119
change name to capitalize
YUUU23 Jul 8, 2024
d378568
Merge pull request #503 from brown-ccv/upgrade-sdk-mod
YUUU23 Jul 8, 2024
840ec58
Merge branch 'feat-v4' into ref-info
YUUU23 Jul 12, 2024
ec9fa15
fix syntax error in firebase
YUUU23 Jul 12, 2024
84f3258
remove: unused setDoc"
YUUU23 Jul 12, 2024
ab777a6
remove bootstrap from login and add relevant styles to form and btn i…
YUUU23 Jul 18, 2024
6d978d1
resize btn text and input box on login form css
YUUU23 Jul 18, 2024
3b6a78c
alert-danger in index.css
YUUU23 Jul 18, 2024
e8a28bb
remove bootstrap from camera.js
YUUU23 Jul 18, 2024
a40d489
end camera trial remove bootstrap
YUUU23 Jul 18, 2024
7273c4a
add vertical spacing to form element after removing bootstrap (vanill…
YUUU23 Jul 18, 2024
59c317f
Merge pull request #513 from brown-ccv/add-spacing-after-rem-bs
YUUU23 Jul 24, 2024
aae94ed
rm: uninstall bootstrap dependencies
YUUU23 Jul 24, 2024
9082577
Merge branch 'rm-bootstrap' of https://github.com/brown-ccv/honeycomb…
YUUU23 Jul 24, 2024
79d656a
Merge pull request #512 from brown-ccv/rm-bootstrap
YUUU23 Jul 26, 2024
9547c39
add: commander to optionally provide delete or download along with st…
YUUU23 Jul 27, 2024
08e8f72
Revert "add: commander to optionally provide delete or download along…
YUUU23 Jul 27, 2024
37fcb29
add: commander to optionally provide delete or download along with st…
YUUU23 Jul 27, 2024
bbc569d
add: register new participant under study in registered_studies for f…
YUUU23 Jul 27, 2024
aaf6969
ref: pulled out validateStudy and validateParticipant from prompting …
YUUU23 Jul 27, 2024
aa1d143
merge commander fix
YUUU23 Jul 27, 2024
ccaaf88
bypass validateStudy and validateParticipant when action is register
YUUU23 Jul 27, 2024
4a7b1cc
add: env.js and index.js in config folder, move code from main.js over
YUUU23 Jul 29, 2024
0b89f67
ref: change import from main to index.js
YUUU23 Jul 30, 2024
054b001
rm: main.js
YUUU23 Jul 30, 2024
187c535
ref: move event codes into separate json file
YUUU23 Jul 30, 2024
3d12e53
fix: change config to all cap variable and import correctly to index
YUUU23 Jul 30, 2024
2441e44
Merge branch 'ref-config-env-idx' into ref-event-codes-json
YUUU23 Jul 30, 2024
8e71473
ref: import event_code json into trigger.js
YUUU23 Jul 30, 2024
12a5561
ref: rename CONFIG as ENV
YUUU23 Jul 30, 2024
9cc4fb6
Merge branch 'ref-config-as-ENV' into ref-event-codes-json
YUUU23 Jul 30, 2024
66eb58b
ref: change EEG to EVENT_CODES
YUUU23 Jul 30, 2024
135914b
Merge branch 'feat-v4' into ref-info
RobertGemmaJr Jul 31, 2024
bb99c49
fix: Handle merge conflict with modular firebase
RobertGemmaJr Jul 31, 2024
a6802ba
chore: upgrade
RobertGemmaJr Jul 31, 2024
fdc5b20
Merge pull request #479 from brown-ccv/ref-info
RobertGemmaJr Jul 31, 2024
2c75478
build: remove uneeded deps
RobertGemmaJr Jul 31, 2024
1eace3a
build: Upgrade inquirer prompts
RobertGemmaJr Jul 31, 2024
dfb4239
ref: Cleaner exit from CLI script when Firebase connection fails
RobertGemmaJr Jul 31, 2024
a158697
ref: Cleaner exit from CLI script when Firebase connection fails
RobertGemmaJr Jul 31, 2024
4db13f2
Merge branch 'build-deps' of https://github.com/brown-ccv/honeycomb i…
RobertGemmaJr Jul 31, 2024
c1e6db7
build: install eslint dev dependency to fix linting issue
RobertGemmaJr Jul 31, 2024
bdbf3a2
build: Remove the zip maker
RobertGemmaJr Jul 31, 2024
eac2e46
chore: comment
RobertGemmaJr Jul 31, 2024
9ccb89d
chore: comments and remove logging
RobertGemmaJr Jul 31, 2024
e73ce4f
feat: Add base vite config for browser usage
RobertGemmaJr Jul 31, 2024
d6aec7a
chore: comments
RobertGemmaJr Jul 31, 2024
5bbcc7f
fix: Delete fuse that was causing an error
RobertGemmaJr Jul 31, 2024
385d028
ref: Revert to CJS repository
RobertGemmaJr Jul 31, 2024
5c4bf03
g commit -a -m "chore: more fixups"
RobertGemmaJr Jul 31, 2024
d00b857
chore: add a forge env.d.ts file
RobertGemmaJr Jul 31, 2024
c547470
chore: comments
RobertGemmaJr Jul 31, 2024
983a07d
chore: comments
RobertGemmaJr Jul 31, 2024
7715cc4
chore: TODOs
RobertGemmaJr Aug 1, 2024
c2ec9eb
ref: function header, validate return values
YUUU23 Aug 1, 2024
c8bfe5f
ref: function header, validate return values
YUUU23 Aug 1, 2024
c48f5d6
Merge branch 'add-commander' of https://github.com/brown-ccv/honeycom…
YUUU23 Aug 1, 2024
6c83919
Revert "Merge branch 'add-commander' of https://github.com/brown-ccv/…
YUUU23 Aug 1, 2024
ac0491b
add back register
YUUU23 Aug 1, 2024
715766f
ref: description, strictly equal
YUUU23 Aug 1, 2024
bb755f3
change .env.clinic to event_codes
YUUU23 Aug 1, 2024
6ec03eb
ref: rem taskName / taskversion, /index from import statement
YUUU23 Aug 1, 2024
6204eb6
add back comments and TODOs from main.js
YUUU23 Aug 1, 2024
da92669
Merge branch 'feat-v4' into ref-config-env-idx
YUUU23 Aug 1, 2024
286584e
fix jsPsychExperiment merge issue
YUUU23 Aug 1, 2024
b37c5f0
git merge ref-config-env-idx
YUUU23 Aug 1, 2024
7c97406
rem: remove index from import path
YUUU23 Aug 1, 2024
9764ffa
Merge pull request #518 from brown-ccv/ref-config-env-idx
YUUU23 Aug 2, 2024
61b0ca7
simplify config import
YUUU23 Aug 2, 2024
09f7e26
add: numBlinks to json, change nested structure
YUUU23 Aug 2, 2024
6f68551
chore: Fix version file as module
RobertGemmaJr Aug 2, 2024
d9e6d0a
chore: remove uneeded ts file
RobertGemmaJr Aug 2, 2024
e4a96dd
ref: Handle a default vite config shared between electron-forge and t…
RobertGemmaJr Aug 2, 2024
74c911b
chore: import order
RobertGemmaJr Aug 2, 2024
207b0b3
ref: Cleanup configs
RobertGemmaJr Aug 2, 2024
507abca
ref: Have a custom name for the vite config files
RobertGemmaJr Aug 2, 2024
29d6e46
Update src/App/App.jsx
RobertGemmaJr Aug 2, 2024
87a196b
add: numblinks and code fields, change access in used files, import s…
YUUU23 Aug 4, 2024
62dbe64
ensure everything is strictly equal in cli script
YUUU23 Aug 4, 2024
5d40bf2
rem: lodash since accessing event name is different
YUUU23 Aug 4, 2024
02a5521
Merge pull request #522 from brown-ccv/build-deps
RobertGemmaJr Aug 5, 2024
28cdd8b
Merge branch 'feat-v4' into fix-make-cjs
RobertGemmaJr Aug 5, 2024
7b316c7
fix: Remove osX code signing
RobertGemmaJr Aug 5, 2024
3471912
chore: comments
RobertGemmaJr Aug 5, 2024
b1a453d
ci: Test ci with pure intel
RobertGemmaJr Aug 5, 2024
dd190a9
Update env/.env.clinic
YUUU23 Aug 6, 2024
abcf8a3
Merge pull request #519 from brown-ccv/ref-event-codes-json
YUUU23 Aug 6, 2024
4bf7642
Merge pull request #521 from brown-ccv/ref-sep-EEG
YUUU23 Aug 6, 2024
c1a438c
Merge pull request #520 from brown-ccv/ref-config-as-ENV
YUUU23 Aug 6, 2024
998e917
Update cli.mjs
YUUU23 Aug 6, 2024
e25cb92
Update cli.mjs
YUUU23 Aug 6, 2024
f32f1bb
Update cli.mjs
YUUU23 Aug 6, 2024
4b3cfde
Update cli.mjs
YUUU23 Aug 6, 2024
f0233ed
Update cli.mjs
YUUU23 Aug 6, 2024
7089d92
ref: change return value name and reorganize validation functions to …
YUUU23 Aug 6, 2024
3115f1e
Merge branch 'feat-v4' into add-commander
YUUU23 Aug 6, 2024
c88c78e
update package
YUUU23 Aug 6, 2024
c75d3b9
ci: Test x64
RobertGemmaJr Aug 7, 2024
aae48ff
chore: comment out osx
RobertGemmaJr Aug 7, 2024
1a95de0
ci: Test intel build on mac runner
RobertGemmaJr Aug 7, 2024
92e840b
ci: Test universal build on arm
RobertGemmaJr Aug 7, 2024
cd1df62
ref: window.jspsych initial
YUUU23 Aug 8, 2024
68ca81b
add: comment
YUUU23 Aug 8, 2024
f1b4f34
Merge branch 'add-commander' into add-CLI-register
YUUU23 Aug 8, 2024
a7acbf7
ref: change error return to exit on error
YUUU23 Aug 8, 2024
9ec503e
Merge branch 'add-commander' into add-CLI-register
YUUU23 Aug 8, 2024
09b0157
ref: take out rest of jspysch arguments and use window. instead
YUUU23 Aug 9, 2024
03bb278
clean up comments
YUUU23 Aug 9, 2024
51eb4ee
ref: change all func taking in jspsych to const syntax / trials to co…
YUUU23 Aug 9, 2024
e3f4977
add: util function to get global jsPsych instance
YUUU23 Aug 9, 2024
aec9af7
fix typo: Update src/config/eventCodes.json
YUUU23 Aug 13, 2024
d080046
fix typo: Update src/config/eventCodes.json
YUUU23 Aug 13, 2024
b1fca91
fix typo: Update src/config/eventCodes.json
YUUU23 Aug 13, 2024
fae7f47
ref: uncomment getCommit
YUUU23 Aug 13, 2024
27b80c3
docstring update: Update src/experiment/trials/camera.js
YUUU23 Aug 13, 2024
b7fd834
doc: update docstring to be on-top of right function
YUUU23 Aug 13, 2024
4b6c16f
doc: change returns to type for const object
YUUU23 Aug 13, 2024
9239d7a
simplify comparison logic. Update cli.mjs
YUUU23 Aug 14, 2024
1cc9e92
simplify comparison logic. Update cli.mjs
YUUU23 Aug 14, 2024
a7df3ac
Merge pull request #516 from brown-ccv/add-commander
YUUU23 Aug 14, 2024
617f371
Revert "add: commander to optionally provide delete or download along…
YUUU23 Aug 14, 2024
8bfce24
ref: async functions, remove duplicate helpers
YUUU23 Aug 14, 2024
41a19c6
fix: uniform numBlinks with eventCodes
YUUU23 Aug 14, 2024
25b93e9
ref: change window.jsPsych to use util functions
YUUU23 Aug 14, 2024
f310479
resolve conflict: merge branch
YUUU23 Aug 14, 2024
1fb344c
Merge pull request #530 from brown-ccv/revert-516-add-commander
YUUU23 Aug 14, 2024
a26eedb
fix: logical expression to change back to casting to bool for prompt …
YUUU23 Aug 14, 2024
99556aa
Merge pull request #529 from brown-ccv/ref-trial-cons-var
YUUU23 Aug 14, 2024
3cbb4da
merge in new changes
YUUU23 Aug 14, 2024
076038d
add: add back commander and util functions
YUUU23 Aug 14, 2024
9b947b1
add: add back validation functions and dependencies
YUUU23 Aug 14, 2024
a358f21
add: add back prompt checking
YUUU23 Aug 15, 2024
58fceba
Merge pull request #531 from brown-ccv/add-commander
YUUU23 Aug 15, 2024
b969b3d
Merge pull request #528 from brown-ccv/jsPsych-global
YUUU23 Aug 15, 2024
524fa8a
Merge pull request #517 from brown-ccv/add-CLI-register
YUUU23 Aug 15, 2024
336c458
Merge branch 'feat-v4' into add-numBlinks
YUUU23 Aug 21, 2024
46bd876
Merge branch 'add-numBlinks' of https://github.com/brown-ccv/honeycom…
YUUU23 Aug 21, 2024
c320737
ref: del event_codes file and move event codes into settings.json und…
YUUU23 Aug 21, 2024
e1f6361
Remove console.log, Update src/experiment/procedures/honeycombProcedu…
YUUU23 Aug 22, 2024
635d342
Merge pull request #526 from brown-ccv/add-numBlinks
YUUU23 Aug 22, 2024
e7adc54
Merge pull request #525 from brown-ccv/fix-make-cjs
RobertGemmaJr Jul 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# Autogenerated files
/public/lib/*
**/participant_responses
psiturkit/*_turk
*.log
*.log*

Expand Down
11 changes: 3 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:import/electron",
"prettier",
],
parserOptions: {
Expand All @@ -22,14 +23,8 @@ module.exports = {
"import/order": "warn",
},
settings: {
react: {
version: "detect",
},
"import/resolver": {
node: {
extensions: [".js", ".jsx"],
},
},
react: { version: "detect" },
"import/resolver": { node: { extensions: [".js", ".jsx"] } },
},
overrides: [{ files: ["*.jsx", "*.js"] }],
};
7 changes: 3 additions & 4 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
"on":
on:
push:
branches:
- main
Expand All @@ -11,10 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build:firebase
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CCV_HONEYCOMB }}"
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CCV_HONEYCOMB }}
channelId: live
projectId: ccv-honeycomb
9 changes: 4 additions & 5 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
"on": pull_request
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build:firebase
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CCV_HONEYCOMB }}"
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CCV_HONEYCOMB }}
projectId: ccv-honeycomb
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand Down
103 changes: 9 additions & 94 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -52,16 +52,16 @@ jobs:
path: ./env
mode: ${{matrix.setting}}

# Package the app installers
- name: 📦 Package app installer - Windows
# Package the app and make the installers
- name: 📦 Make app installer - Windows
if: startsWith(matrix.os, 'windows')
run: npm run package:windows
- name: 📦 Package app installer - Mac
run: npm run make:windows
- name: 📦 Make app installer - Mac
if: startsWith(matrix.os, 'mac')
run: npm run package:mac
- name: 📦 Package app installer - Linux
run: npm run make:mac
- name: 📦 Make app installer - Linux
if: startsWith(matrix.os, 'ubuntu')
run: npm run package:linux
run: npm run make:linux

# Get package info
- name: Get package name and version
Expand All @@ -72,6 +72,7 @@ jobs:
shell: bash

# Upload installers to GitHub release
# TODO @brown-ccv #247: Use the Publish command: https://www.electronforge.io/cli#publish
- name: ⬆ Upload installer to release - Windows
if: startsWith(matrix.os, 'windows')
uses: svenstaro/upload-release-action@v2
Expand All @@ -96,89 +97,3 @@ jobs:
asset_name: ${{ steps.package_info.outputs.name }}-${{ steps.package_info.outputs.version }}-${{ matrix.setting }}-amd64.deb
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}

deploy-gh-pages:
name: Deploy to GH Pages
runs-on: ubuntu-latest
steps:
# Set up runner
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: 🐍 Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

# Install dependencies
- name: 📥 Install Dependencies
run: npm ci

# Build the app
- name: ⚒ Build
run: npm run build

# Deploy the app to GitHub Pages
- name: 🚀 Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

package-psiturk:
name: Package for PsiTurk
runs-on: ubuntu-latest
steps:
# Set up runner
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: 🐍 Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

# Install dependencies
- name: 📥 Install Dependencies
run: npm ci
- name: 📥 Install PsiTurk
run: pip install psiturk

# Build the app
- name: ⚒ Build
run: npm run build

# Get package info
- name: Get package name and version
id: package_info
run: |
echo "name=$(cat package.json | jq -r '.name')" >> $GITHUB_OUTPUT
echo "version=$(cat package.json | jq -r '.version')" >> $GITHUB_OUTPUT
shell: bash

# Package with PsiTurk
- name: 📦 Create Psiturk Build
run: |
cd psiturkit
./psiturk-it -p ${{ steps.package_info.outputs.name }}-${{ steps.package_info.outputs.version }}-psiturk

# Zip and upload the package
- name: Zip psiturk folder
run: |
cd psiturkit
zip -r ${{ steps.package_info.outputs.name }}-${{ steps.package_info.outputs.version }}-psiturk.zip ${{ steps.package_info.outputs.name }}-${{ steps.package_info.outputs.version }}-psiturk
- name: ⬆ Upload PsiTurk Build
uses: svenstaro/upload-release-action@v2
with:
file: psiturkit/${{ steps.package_info.outputs.name }}-${{ steps.package_info.outputs.version }}-psiturk.zip
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 11 additions & 8 deletions .github/workflows/workflow-package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: 📦 Package Workflow

# Workflow dispatch for packaging an electron executable
# TODO: Update actions running on Node 16 (all workflows)
# TODO: Rename as workflow-make
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -66,16 +68,16 @@ jobs:
path: ./env
mode: ${{github.event.inputs.setting}}

# Package the app installers
- name: 📦 Package app installer - Windows
# Package the app and make the installers
- name: 📦 Make app installer - Windows
if: startsWith(matrix.os, 'windows')
run: npm run package:windows
- name: 📦 Package app installer - Mac
run: npm run make:windows
- name: 📦 Make app installer - Mac
if: startsWith(matrix.os, 'mac')
run: npm run package:mac
- name: 📦 Package app installer - Linux
run: npm run make:mac
- name: 📦 Make app installer - Linux
if: startsWith(matrix.os, 'ubuntu')
run: npm run package:linux
run: npm run make:linux

# Get package info
- name: Get package name and version
Expand All @@ -86,6 +88,7 @@ jobs:
shell: bash

# Upload installers to github action
# TODO @brown-ccv #247: Can we use the publish command here?
- name: ⬆ Upload installer - Windows
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'windows')
Expand Down
14 changes: 9 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@

# Dependencies
/node_modules
Brewfile.lock.json
/.pnp
.pnp.js
.vite

# Cache
.npm
.eslintcache

# Testing
/coverage

# Production
.vite
/build
/dist
/out
Expand All @@ -19,6 +23,7 @@ Brewfile.lock.json
/.vscode

# Logs
logs
*.log
*.log*

Expand All @@ -27,13 +32,12 @@ public/config/version.json
public/version.json
Brewfile.lock.json

# Firebase private key
# Secrets
**/firebase-service-account.json

# Live data
# Data
**/participant_responses

# Misc
.env
.DS_Store
psiturkit/*_turk
.DS_Store
Loading