https://github.com/eliasmurcray/react-template
React template with CLI tooling.
https://github.com/eliasmurcray/react-template
Last synced: 3 months ago
JSON representation
React template with CLI tooling.
- Host: GitHub
- URL: https://github.com/eliasmurcray/react-template
- Owner: eliasmurcray
- License: mit
- Created: 2023-11-09T07:23:10.000Z (over 1 year ago)
- Default Branch: mainline
- Last Pushed: 2023-12-21T03:29:41.000Z (over 1 year ago)
- Last Synced: 2025-01-16T04:25:16.999Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to the React Template
Here you can find out how to use this React Template.
## Development
You can develop using `npm run dev`. This will create a live reload that builds whenever it saves the file.
### Creating A Chunk
You can create a "chunk" by using the `npm run create-chunk [chunkName]` command. This will generate the basic React renderer TSX code, HTML code, and CSS code and link them together for Webpack.
### Deleting A Chunk
You can delete a "chunk" by using the `npm run delete-chunk [chunkName]` command. This will delete the old generated code.
### Creating A Component
You can create a new component by using the `npm run create-component [componentName]` command. This will generate the TSX class component and CSS code and link them together for Webpack.
### Deleting A Component
You can delete a component by using the `npm run delete-component [componentName]` command. This will delete the old generated code.
## Hot-reload Server
In case you do not have a live server extension (perhaps you are developing with Vim), you can host a dev server locally with `npm run serve`. This opens a port on 5001.
## Production
You can create a production output using `npm run build`. This will compress the files and make them ready for production!