Skip to content

A Simple Calculator Application With ReactJS

License

Notifications You must be signed in to change notification settings

StefanosPs/Calculator

Repository files navigation

Calculator

This project is a simple calculator just for fun.

This is work in progress

Development

# Runs the app in the development mode with electron.
$ yarn start

# Launches the test runner in the interactive watch mode.
$ yarn test

#Builds the app for production to the `build` folder.
$ yarn build

#Start electron Dev
$ yarn react:start
$ yarn electron:start
#OR
$ yarn react:start | yarn electron:start

#Start electron Production
yarn electron

# Build electron
yarn package

## Build electron linux only
yarn package-linux

## Build electron windows only
yarn package-win

Electron Build

$ docker run --rm -ti \
 --env ELECTRON_CACHE="/root/.cache/electron" \
 --env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
 -v ${PWD}:/project \
 -v ${PWD##*/}-node-modules:/project/node_modules \
 -v ~/.cache/electron:/root/.cache/electron \
 -v ~/.cache/electron-builder:/root/.cache/electron-builder \
 electronuserland/builder:wine

$ yarn package-linux
$ yarn package-win