After cloning HyPhy-Vision, run npm install
to fetch its dependencies.
While developing, use the command webpack -w
to update hyphy-vision.js
and
hyphy-vision.css
with your code changes.
When generating a new release, we follow Semantic Versioning and submit the latest releases to npm.
There are two separate style-sheets in HyPhy-Vision.
The first is bootstrap theming and the second is css to be packaged.
The CSS to be packaged should include css that is necessary to view components in a functional way. All CSS declarations made in hyphyvision.css will be part of the distribution. The Bootstrap theming is specific to the hyphy-vision site that is hosted at vision.hyphy.org. The reason for this separation is because upstream applications (e.g. datamonkey.org) should be able to have its own options for bootstrap theming. Datamonkey will host other pages outside of HyPhy-Vision's pages, and therefore should have its freedom to theme as it pleases.
- Method that return elements should have a name with Element suffix
For release, the library configuration of webpack must be used.
webpack --config webpack.config.library.js
Please ensure that any entry level functions are exposed in src/library-entry.js as well as src/entry.js
- Obtain a copy of the Electron binaries (e.g.
electron-vx.x.x-darwin-x64.zip
) and decompress - Rename the Electron binary folder and Electron binary to HyPhy Vision and HyPhy Vision.app, respectively
cd HyPhy\ Vision/HyPhy\ Vision.app/Contents/Resources/
mkdir app && cd app
git clone https://github.com/veg/hyphy-vision .
- Edit the
main
entry ofpackage.json
to beelectron.js
yarn
node_modules/.bin/webpack
rm -rf node_modules
- Open
images/app-icon.icns
and copy to clipboard, select HyPhy Vision.app and press ⌘I to get information, click the icon and paste from clipboard - The app should now function. Tar/zip base directory and release
- Obtain a copy of the Electron binaries (e.g.
electron-vx.x.x-win32-x64.zip
) and decompress - Rename the Electron binary folder and Electron binary to HyPhy Vision and HyPhy Vision.exe, respectively
cd HyPhy\ Vision/resources
mkdir app && cd app
git clone https://github.com/veg/hyphy-vision .
- Edit the
main
entry ofpackage.json
to beelectron.js
- Edit
config.json
to be,"env": "windows electron"
yarn
node_modules/.bin/webpack
rm -rf node_modules
- Use Resource Hacker to change the app icon to
images/app-icon.ico
Here's a helpful link for using Resource Hacker - Hide all files exept for
HyPhy Vision.exe
,LICENSE
,LICENSES.chromium.html
andversion
- Obtain a copy of the Electron binaries (e.g.
electron-vx.x.x-linux-x64.zip
) and decompress - Rename the Electron binary folder and Electron binary to HyPhy Vision and HyPhy Vision.exe, respectively
cd HyPhy\ Vision/resources
mkdir app && cd app
git clone https://github.com/veg/hyphy-vision .
- Edit the
main
entry ofpackage.json
to beelectron.js
yarn
node_modules/.bin/webpack
rm -rf node_modules
- Right click the HyPhy Vision application, select properties. Click the icon and navigate to
images/app-icon.png
- The app should now function. Tar/zip base directory and release