Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

react electron desktop app

"start": "export BROWSER=none && react-scripts start",
"start-win": "set BROWSER=none && react-scripts start",
"start-electron": "export ELECTRON_START_URL=http://localhost:3000 && electron .",
"start-electron-win": "set ELECTRON_START_URL=http://localhost:3000 && electron .",
"build": "react-scripts build",
"build-electron": "mkdir build/src && cp -r electron/. build/electron",
"build-electron-win": "mkdir buildsrc && Xcopy /E /I /Y electron buildelectron",
"package": "npm run build && npm run build-electron && electron-builder build -c.extraMetadata.main=build/electron/main.js --publish never",
"package-win": "npm run build && npm run build-electron-win && electron-builder build -c.extraMetadata.main=build/electron/main.js --publish never",
Comment

make your react an electron desktop app

npm install electron electron-builder wait-on concurrently --only=dev
npm install electron-is-dev
Comment

PREVIOUS NEXT
Code Example
Shell :: git init create new version-controlled projects 
Shell :: apt-get update qq 
Shell :: fedora netflix 
Shell :: yarn gem 
Shell :: search for css class in files in vs code 
Shell :: vs code search panel regex match all css media queries 
Shell :: linux verify package install on remote system script 
Shell :: digital ocean how to install joomla 16.04 
Shell :: edgerouter x hosts file location 
Shell :: error: refname refs/heads/origin not found 
Shell :: linux mount all fstab 
Shell :: install smui top-app-bar 
Shell :: case in fish 
Shell :: Update or Remove Single Entry from Known Hosts 
Shell :: get folder size in lnux 
Shell :: find directory inodes usage 
Shell :: rsync limit download 
Shell :: Remove any previous Go installation 
Shell :: how to make folder readable and writable in ssh 
Shell :: ssh: Could not resolve hostname [10.129.84.85]: Name or service not known 
Shell :: short cut: select all matches 
Shell :: build.sh 
Shell :: hide folder staarted with dot on mac 
Shell :: gigabyte b550M enable TPM 
Shell :: how to check the version of glibc in parrot os 
Shell :: install htttpd ubuntu 
Shell :: change nohup name 
Shell :: kill SIGUSR2 
Shell :: remove home partition centos 6 
Shell :: curl tcp handshake ssl handshake time 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =