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 9 months ago
android fix deps, build native for android, rename project 10 months ago
bridge/darwin reintegrate connect, add bridge as resource 9 months ago
ios moved native related files 10 months ago
src reintegrate connect, add bridge as resource 9 months ago
.babelrc.js fix babel loading in native 10 months ago
.buckconfig add a lot of mess w/ android basic setup 10 months ago
.eslintignore Refactored structure, added plugins, eslint ... 11 months ago
.eslintrc Select width 11 months ago
.flowconfig add a lot of mess w/ android basic setup 10 months ago
.gitattributes add a lot of mess w/ android basic setup 10 months ago
.gitignore add a lot of mess w/ android basic setup 10 months ago
.prettierrc init electron + web build 1 year ago
.stylelintrc Refactored structure, added plugins, eslint ... 11 months ago
.watchmanconfig add a lot of mess w/ android basic setup 10 months 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 10 months ago
index.html Added testing trezor wallet app 11 months ago
index.js reintegrate connect, add bridge as resource 9 months ago
index_web.js fix deps, build native for android, rename project 10 months ago
main.js reintegrate connect, add bridge as resource 9 months ago
package.json reintegrate connect, add bridge as resource 9 months ago
preload.js init electron + web build 1 year ago
webpack.config.js fix deps, build native for android, rename project 10 months 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.