An unofficial third party TypeScript template for Create React App and Crestron CH5.
Setup to work with Crestron CH5 out of the box so you can get up and running quickly. It provides packages for page routing, styling using CSS-in-JS and/or TailwindCSS (you can still use regular CSS, SCSS or even CSS Modules π), a wide variety of icons, mobile browser console, linting and more... π π π
- Features β
- Inside the Box π¦
- Getting Started π
- Enable Husky Git Hooks πΆ
- Project Configuration β‘
- Team β½
- Contributors β¨
- Learn More π
- LICENSE βοΈ
- β
Works with Crestron CH5 CrComLib out of the box.
- No need to manually edit the CrComLib
package.json
π
- No need to manually edit the CrComLib
- β React v18 Ready
- β Eruda Setup
- β Basic Redux Setup
- β Basic GitHub Actions CI
- β
Multiple Build Options
- β React App
- β
Crestron CH5 Archive (
.ch5z
) - β Docker Image
- β Electron App
- Crestron CH5 CrComLib
- Crestron HTML5 (CH5) Components Library
- Crestron CH5 WebXPanel
- Browser control of ch5 components library
- Crestron CH5 CLI
- Crestron CH5 utilities
- Crestron CH5 Helper
- A helper collection of Crestron CH5 constants π
- Typescript
- A superset of JavaScript that compiles to clean JavaScript output
- React Router
- Declarative routing for React
- Redux
- Predictable state container for JavaScript apps
- React Redux
- Official React bindings for Redux
- Redux Toolkit
- The official, opinionated, batteries-included toolset for efficient Redux development
- Styled Components
- Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps π
- TailwindCSS
- A utility-first CSS framework for rapid UI development
- clsx
- A tiny (228B) utility for constructing className strings conditionally
- React Icons
- svg react icons of popular icon packs
- React Crestron CH5 Hooks
- A collection of Crestron CH5 hooks β for React π
- Rooks
- Essential React custom hooks β to super charge your components!
- Eruda
- Console for mobile browsers
- Axios
- Promise based HTTP client for the browser and node.js
- ESLint
- Find and fix problems in your JavaScript code
- Prettier
- An opinionated code formatter
- Husky
- Git hooks made easy πΆ woof!
- NOTE This feature needs to be manually enabled. See here for more details.
- Lint-Staged
- π«π© β Run linters on git staged files
- Requires Husky to be enabled.
- Commitizen
- Create committing rules for projects π auto bump versions β¬οΈ and auto changelog generation π
- commitlint
- π Lint commit messages
- Requires Husky to be enabled.
- GitHub Actions CI
- Automate your workflow from idea to production
- VSCode Workspace Settings
- EditorConfig
- Docker Support
- Build safer, share wider, run faster
- Requires Docker and Docker-Compose to be installed on your local machine. Portainer is also recommended as a front end for managing Docker containers. It is free and open-source.
- Electron Support
- Build cross-platform desktop apps with JavaScript, HTML, and CSS
To use this template, add --template @norgate-av/crestron-ch5-typescript
when creating a new app.
For example:
npx create-react-app my-app --template @norgate-av/crestron-ch5-typescript
# or
yarn create react-app my-app --template @norgate-av/crestron-ch5-typescript
Currently, to use the Husky Git Hooks feature provided by this template you must manually run the following command within the project directory after the bootstrap completes. This will update the local git configuration to use the hooks in the .husky
directory.
npm run husky:install
# or
yarn husky:install
To upload to a Crestron touchscreen or control system using the scripts provided by this template, add the IP address or hostname to the project properties in package.json
.
{
"crestron": {
"project": {
"touchscreen": {
"url": "Enter IP/Hostname of Crestron Touchpanel here...",
"type": "touchscreen"
},
"web": {
"url": "Enter IP/Hostname of Crestron Processor here...",
"type": "web",
"config": {
"host": "localhost",
"ipId": "0x03",
"roomId": ""
}
}
}
}
}
This project is maintained by the following person(s) and a bunch of awesome contributors.
Damien Butt |
Thanks go to these awesome people (emoji key):
Dependabot π§ |
This project follows the all-contributors specification. Contributions of any kind are welcome!
Check out the contributing guide for more information.
To learn more, check out the following resources:
- Getting Started β How to create a new app.
- User Guide β How to develop apps bootstrapped with Create React App.
- Crestron CH5 - Documentation and resources for developing with Crestron CH5.