1.1.2 • Published 2 years ago

@tobulevicius/create-reactron-app v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@tobulevicius/create-reactron-app

Usage: npx @tobulevicius/create-reactron-app -t ?

What does it do?

create-reactron-app builds a React/Electron project for you utilising create-react-app and create-electron-app. It structures the project into an easy to consume layout and populates your package.json file with a new script that handles the React Development Server and Electron application starting.

Arguments

CommandDescription
-t or --typescriptIf provided, will enable TypeScript within the React project.
-tw or --tailwindIf provided, will enable TailwindCSS within the React project.
? or -h or --helpIf provided, will print out a help statement.

Project Layout

The following is the structure created by this script:

  • package.json
  • tailwind.config.js
  • postcss.config.js
  • node_modules/
  • src/
    • index.js
    • main/
      • electron.js
    • renderer/
      • components/
      • containers/
      • css/
        • index.css

The entry point for the React application is within /src/index.js

From here it is recommended that the developer created an application container within /src/renderer/containers/ which will be the head component of the application. All other development on the React side can resume within the renderer folder from that point on.

The reason the electron application is within the React project is so that we can use node integration easily. There are other preferred structures out there, but for me personally, this is the easiest to work with. I hope it can provide an easier path for you as well.

Thank you

For using and supporting this project!

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago