Skip to content

GilRtr/cra-template-electron-react-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is my Electron - TypeScript - Sass template for Create React App.

to use it paste this in your terminal

npx create-react-app my-app --template electron-react-typescript

# or

yarn create react-app my-app --template electron-react-typescript

For more information, please refer to:


npm (/yarn) Scripts

In the project directory, you can run:


npm start

Renders you app with electron.

npm run build

Builds your app. you'll be able to find an installer and a localy installed version in the dist directory.

npm run release

Releases your app.

npm run electron-start

Starts the electron part of your app. With hot reloading.

npm run electron-build

Builds the electron part of your app.
This is done using electron-builder.

npm run electron-release

Releases the electron part of your app.
This is also done using electron-builder.

npm run react-start

Starts your react on localhost (port 3000)
and opens it in your default browser.
The page will reload if you make edits.
You will also see any lint errors in the console.

npm run react-build

Builds the react part of your app. The build is minified and the filenames include the hashes.
If necessary, classnames and function names can be enabled for profiling purposes.
See this for more information.

npm run react-serve

Starts your react on localhost (port 3000)
without opening it in your default browser.
The page will reload if you make edits.
You will also see any lint errors in the console.

npm run test

Runs the tests that you've built into react.
See this for more information.

npm run eject

Ejects your CRA.
Read this before performing!


This is my first CRA template, hope you like it.

About

An Electron - TypeScript - Sass template for Create React App.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published