Have ideas to improve npm?Join in the discussion! »

cra-template-electron-react-typescriptTypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Electron Typescript Sass template.

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.

Install

npm i cra-template-electron-react-typescript

DownloadsWeekly Downloads

57

Version

2.1.1

License

none

Unpacked Size

41.8 kB

Total Files

22

Last publish

Collaborators

  • avatar