You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Peter Jensen ed71cd298b reintegrate connect, add bridge as resource 1 year ago
android fix deps, build native for android, rename project 1 year ago
bridge/darwin reintegrate connect, add bridge as resource 1 year ago
ios moved native related files 1 year ago
src reintegrate connect, add bridge as resource 1 year ago
.babelrc.js fix babel loading in native 1 year ago
.buckconfig add a lot of mess w/ android basic setup 1 year ago
.eslintignore Refactored structure, added plugins, eslint ... 1 year ago
.eslintrc Select width 1 year ago
.flowconfig add a lot of mess w/ android basic setup 1 year ago
.gitattributes add a lot of mess w/ android basic setup 1 year ago
.gitignore add a lot of mess w/ android basic setup 1 year ago
.prettierrc init electron + web build 1 year ago
.stylelintrc Refactored structure, added plugins, eslint ... 1 year ago
.watchmanconfig add a lot of mess w/ android basic setup 1 year ago
LICENSE.md init 1 year ago
README.md init electron + web build 1 year ago
app.json add a lot of mess w/ android basic setup 1 year ago
index.html Added testing trezor wallet app 1 year ago
index.js reintegrate connect, add bridge as resource 1 year ago
index_web.js fix deps, build native for android, rename project 1 year ago
main.js reintegrate connect, add bridge as resource 1 year ago
package.json reintegrate connect, add bridge as resource 1 year ago
preload.js init electron + web build 1 year ago
webpack.config.js fix deps, build native for android, rename project 1 year ago

README.md

Trezor Suite

Getting Started

yarn everything first!

then you have these commands:

yarn web:dev - development version of the webapp, at http://localhost:8080 if run before/without electron command yarn electron:dev - development version of the electron app

these two can be run side by side, or you can just run

yarn all:dev - runs both of the above commands in parallel, with web at http://localhost:8081

What next?

If you are looking for a starter kit, there are many excellent electron boilerplates that could be customized for this purpose. With electron, you want to have your development and release toolchain down pat. Don’t sacrafice having that just because your boilerplate doesn’t have this one specific feature (building to a web target).

Next episode I will recreate this using webpack-electron, and show some patterns you can use for conditionally loading electron-renderer specific dependencies.