Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 1c60f70

Browse files
authored
chore: next release #23
2 parents 2212ba2 + e7d445b commit 1c60f70

File tree

39 files changed

+1412
-409
lines changed

39 files changed

+1412
-409
lines changed

.commitlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ["@commitlint/config-conventional"]
2+
"extends": ["@commitlint/config-conventional"]
33
}

.editorconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ root = true
55
charset = utf-8
66
end_of_line = lf
77
insert_final_newline = true
8-
indent_style = tab
8+
indent_style = space
99
indent_size = tab
1010
tab_width = 4
1111
trim_trailing_whitespace = true
1212

1313
[*.md]
1414

1515
trim_trailing_whitespace = false
16+
17+
[*.{yml,yaml}]
18+
19+
tab_width = 2

.github/workflows/publish.yml

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66

77
jobs:
88
quality:
@@ -14,47 +14,46 @@ jobs:
1414
os: [ubuntu-latest, macOS-latest, windows-latest]
1515

1616
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v2
19-
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v2
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
25-
- name: Install dependencies
26-
run: yarn
27-
28-
- name: Build
29-
run: yarn build
30-
31-
- name: Run tests
32-
run: yarn test
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Install dependencies
26+
run: yarn
27+
28+
- name: Build
29+
run: yarn build
30+
31+
- name: Run tests
32+
run: yarn test
3333

3434
publish:
3535
runs-on: ubuntu-latest
3636
if: ${{ github.ref == 'refs/heads/master' }}
3737

3838
needs: [quality]
3939

40-
steps:
41-
- name: Checkout
42-
uses: actions/checkout@v2
43-
44-
- name: Use Node.js ${{ matrix.node-version }}
45-
uses: actions/setup-node@v2
46-
with:
47-
node-version: ${{ matrix.node-version }}
48-
49-
- name: Install dependencies
50-
run: yarn
51-
52-
- name: Build
53-
run: yarn build
54-
55-
- name: Release
56-
run: yarn semantic-release
57-
env:
58-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v2
43+
44+
- name: Use Node.js ${{ matrix.node-version }}
45+
uses: actions/setup-node@v2
46+
with:
47+
node-version: ${{ matrix.node-version }}
48+
49+
- name: Install dependencies
50+
run: yarn
51+
52+
- name: Build
53+
run: yarn build
54+
55+
- name: Release
56+
run: yarn semantic-release
57+
env:
58+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
access=public

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build/*
2+
dist/*
3+
node_modules/*
4+
.history/*
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"printWidth": 80,
44
"semi": true,
55
"singleQuote": false,
6-
"tabWidth": 4,
7-
"useTabs": true
6+
"bracketSpacing": true,
7+
"bracketSameLine": false,
8+
"arrowParens": "always"
89
}

.releaserc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"branches": ["master"]
3+
}

.vscode/settings.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"typescript.validate.enable": true,
3-
"editor.defaultFormatter": "esbenp.prettier-vscode",
4-
"editor.formatOnSave": true,
5-
"editor.formatOnPaste": true,
6-
"files.trimTrailingWhitespace": true,
7-
"[markdown]": {
8-
"files.trimTrailingWhitespace": false
9-
},
10-
"files.exclude": {
11-
"**/.git": true,
12-
"**/.svn": true,
13-
"**/.hg": true,
14-
"**/.history": true,
15-
"**/CVS": true,
16-
"**/.DS_Store": true,
17-
"**/*.js.map": true,
18-
"node_modules": true
19-
}
2+
"typescript.validate.enable": true,
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.formatOnSave": true,
5+
"editor.formatOnPaste": true,
6+
"files.trimTrailingWhitespace": true,
7+
"[markdown]": {
8+
"files.trimTrailingWhitespace": false
9+
},
10+
"files.exclude": {
11+
"**/.git": true,
12+
"**/.svn": true,
13+
"**/.hg": true,
14+
"**/.history": true,
15+
"**/CVS": true,
16+
"**/.DS_Store": true,
17+
"**/*.js.map": true,
18+
"node_modules": true
19+
}
2020
}

README.md

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ This is an unofficial third party TypeScript template for [Create React App](htt
99

1010
The template is setup to work with Crestron CH5 out of the box so you can get up and running quickly. It also provides packages for page routing, styling using [CSS-in-JS](https://en.wikipedia.org/wiki/CSS-in-JS) (you can still use regular CSS or SCSS 😄), a wide variety of icons, mobile browser console, linting and more... 🚀 🚀 🚀
1111

12+
**NOTE**
13+
14+
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.
15+
16+
```sh
17+
npm run husky:install
18+
19+
# or
20+
21+
yarn husky:install
22+
```
23+
1224
To use this template, add `--template @norgate-av/crestron-ch5-typescript` when creating a new app.
1325

1426
For example:
@@ -26,16 +38,23 @@ yarn create react-app my-app --template @norgate-av/crestron-ch5-typescript
2638
- [Crestron CH5 CrComLib](https://www.npmjs.com/package/@crestron/ch5-crcomlib)
2739
- [Crestron CH5 WebXPanel](https://www.npmjs.com/package/@crestron/ch5-webxpanel)
2840
- [Crestron CH5 CLI](https://www.npmjs.com/package/@crestron/ch5-utilities-cli)
41+
- [Crestron CH5 Helper](https://www.npmjs.com/package/@norgate-av/crestron-ch5-helper)
2942
- [Typescript](https://www.typescriptlang.org/)
3043
- [React Router](https://reactrouterdotcom.fly.dev/)
44+
- [Redux](https://redux.js.org/)
45+
- [React Redux](https://react-redux.js.org/)
46+
- [Redux Toolkit](https://redux-toolkit.js.org/)
3147
- [Styled Components](https://styled-components.com/)
3248
- [React Icons](https://react-icons.github.io/react-icons/)
49+
- [Rooks](https://react-hooks.org/)
3350
- [Eruda](https://eruda.liriliri.io/)
51+
- [Axios](https://axios-http.com/)
3452
- [ESLint](https://eslint.org/)
3553
- [Prettier](https://prettier.io/)
3654
- [Husky](https://typicode.github.io/husky/#/)
3755
- [Lint-Staged](https://github.com/okonet/lint-staged)
3856
- [Commitizen](https://commitizen-tools.github.io/commitizen/)
57+
- [commitlint](https://commitlint.js.org/#/)
3958
- [VSCode Workspace Config](https://code.visualstudio.com/docs/getstarted/settings#_workspace-settings)
4059
- [EditorConfig](https://editorconfig.org/)
4160

@@ -45,18 +64,23 @@ To upload to a Crestron touchscreen or control system, you must add the IP addre
4564

4665
```json
4766
{
48-
"crestron": {
49-
"project": {
50-
"touchscreen": {
51-
"url": "Enter IP/Hostname of Crestron Touchpanel here...",
52-
"type": "touchscreen"
53-
},
54-
"web": {
55-
"url": "Enter IP/Hostname of Crestron Processor here...",
56-
"type": "web"
57-
}
58-
}
59-
}
67+
"crestron": {
68+
"project": {
69+
"touchscreen": {
70+
"url": "Enter IP/Hostname of Crestron Touchpanel here...",
71+
"type": "touchscreen"
72+
},
73+
"web": {
74+
"url": "Enter IP/Hostname of Crestron Processor here...",
75+
"type": "web",
76+
"config": {
77+
"host": "localhost",
78+
"ipId": "0x03",
79+
"roomId": ""
80+
}
81+
}
82+
}
83+
}
6084
}
6185
```
6286

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,20 @@
2727
"template.json"
2828
],
2929
"scripts": {
30-
"semantic-release": "semantic-release --branches master",
30+
"semantic-release": "semantic-release",
3131
"commit": "git-cz",
3232
"build": "echo \"Build is not configured for package \\\"$npm_package_name\\\", skipping.\"",
3333
"test": "echo \"Unit testing is not configured for package \\\"$npm_package_name\\\", skipping.\"",
34-
"prepare": "husky install"
34+
"prepare": "husky install",
35+
"pretty:fix": "prettier --write ."
3536
},
3637
"devDependencies": {
3738
"@commitlint/cli": "^16.2.3",
3839
"@commitlint/config-conventional": "^16.2.1",
3940
"cz-conventional-changelog": "3.3.0",
40-
"semantic-release": "^19.0.2",
41-
"husky": "^7.0.0"
41+
"husky": "^7.0.0",
42+
"prettier": "^2.6.2",
43+
"semantic-release": "^19.0.2"
4244
},
4345
"config": {
4446
"commitizen": {

0 commit comments

Comments
 (0)