sample node-webrender project
Switch branches/tags
Nothing to show
Clone or download
Latest commit 16b39f8 Dec 22, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src initial commit Dec 22, 2018
.gitignore initial commit Dec 22, 2018
README.md Update README.md Dec 22, 2018
hmr.js initial commit Dec 22, 2018
package-lock.json initial commit Dec 22, 2018
package.json initial commit Dec 22, 2018
tsconfig.json initial commit Dec 22, 2018

README.md

screenshot

brew-cleaner

Sample react application for node-webrender so that you can see what's supported and how to setup your environment if you want to play with this too.

Notes

  • it is currently calling execSync() so the pause you experience is actually ruby runtime so maybe your first excercise might to make it async and add loading state :-)
  • scrolling is choppy but it's actually not a performance issue, there's currently no threading so event-loop has to be polled for events (every 1/30 of a second)
  • the library is far from being useful but it's getting better every day

Development

To start an application with HMR enabled

git clone https://github.com/cztomsik/brew-cleaner
cd brew-cleaner
npm i
npm run dev

You can then do changes to the code and it should refresh instantly (or with just little pause). Some errors are tolerated but some might just crash so maybe you can use nodemon or something if that is an issue for you.

You can start react-devtools with react-devtools if you have them installed globally.

You can also start application without HMR but it's not that much fun.

npm start

TODO

Show how to ship native app.