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

Commit eb707bf

Browse files
authored
chore: 🔧 releasing 1.2.1
2 parents 3863f62 + 2e1b814 commit eb707bf

File tree

27 files changed

+3516
-3549
lines changed

27 files changed

+3516
-3549
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@
4141
"contributions": [
4242
"doc"
4343
]
44+
},
45+
{
46+
"login": "lourensdev",
47+
"name": "Lourens de Villiers",
48+
"avatar_url": "https://avatars.githubusercontent.com/u/5746141?v=4",
49+
"profile": "https://github.com/lourensdev",
50+
"contributions": [
51+
"doc"
52+
]
4453
}
4554
],
4655
"contributorsPerLine": 8,

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const prettierOptions = JSON.parse(
66
);
77

88
module.exports = {
9-
extends: ['react-app', 'prettier', 'prettier/react'],
9+
extends: ['react-app', 'prettier'],
1010
plugins: ['prettier'],
1111
rules: {
1212
'prettier/prettier': ['error', prettierOptions],

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ yarn-error.log*
2020
generated-cra-app
2121
.cra-template-rb
2222
template
23+
.eslintcache

.husky/commit-msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
if yarn git-branch-is dev;
5+
then yarn commitlint --edit $1;
6+
fi

.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn checkTs
5+
yarn lint-staged
6+
yarn verify-startingTemplate-changes

.husky/prepare-commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn devmoji -e

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ with a focus on
3737
---
3838

3939
The official [Create React App](https://github.com/facebook/create-react-app) template of the `discontinued` [React Boilerplate](https://github.com/react-boilerplate/react-boilerplate)
40-
![](https://img.shields.io/github/stars/react-boilerplate/react-boilerplate?style=flat)
4140

4241
Start your `create-react-app` projects in seconds with the best, industry-standard tools and practices made ready for you.
4342

4443
**📚 Documentation:** [Gitbook](https://cansahin.gitbook.io/react-boilerplate-cra-template/)
4544

4645
**🎨 Check the example app:** [Demonstrating the features](https://react-boilerplate.github.io/react-boilerplate-cra-template/)
4746

47+
**📂 Browse in VS Code:** [![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/react-boilerplate/react-boilerplate-cra-template)
48+
4849
**📦 Package:** [npm](https://www.npmjs.com/package/cra-template-rb)
4950

5051
![version](https://img.shields.io/npm/v/cra-template-rb)
@@ -133,6 +134,7 @@ But wait... there's more!
133134
<td align="center"><a href="https://github.com/Can-Sahin"><img src="https://avatars2.githubusercontent.com/u/33245689?s=80" width="80px;" alt=""/><br /><sub><b>Can Sahin</b></sub></a><br /><a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/commits?author=Can-Sahin" title="Code">💻</a> <a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/commits?author=Can-Sahin" title="Documentation">📖</a> <a href="#ideas-Can-Sahin" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/pulls?q=is%3Apr+reviewed-by%3ACan-Sahin" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/commits?author=Can-Sahin" title="Tests">⚠️</a></td>
134135
<td align="center"><a href="https://github.com/receptiryaki"><img src="https://avatars0.githubusercontent.com/u/3495307?s=80" width="80px;" alt=""/><br /><sub><b>Recep Tiryaki</b></sub></a><br /><a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/commits?author=receptiryaki" title="Code">💻</a> <a href="#ideas-receptiryaki" title="Ideas, Planning, & Feedback">🤔</a> <a href="#design-receptiryaki" title="Design">🎨</a></td>
135136
<td align="center"><a href="https://github.com/mogsdad"><img src="https://avatars3.githubusercontent.com/u/1707731?s=80" width="80px;" alt=""/><br /><sub><b>David Bingham</b></sub></a><br /><a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/commits?author=mogsdad" title="Documentation">📖</a></td>
137+
<td align="center"><a href="https://github.com/lourensdev"><img src="https://avatars.githubusercontent.com/u/5746141?v=4?s=80" width="80px;" alt=""/><br /><sub><b>Lourens de Villiers</b></sub></a><br /><a href="https://github.com/react-boilerplate/react-boilerplate-cra-template/commits?author=lourensdev" title="Documentation">📖</a></td>
136138
</tr>
137139
</table>
138140

docs/building-blocks/async-components.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ export const HomePage = lazyLoad(
1818
In this case, the app won't show anything while loading your component. You can, however, make it display a custom loader with:
1919

2020
```ts
21-
import * as React from 'react';
21+
import React from 'react';
2222
import { lazyLoad } from 'utils/loadable';
2323

24-
export const HomePage = lazyLoad(() => import('./index'), {
25-
fallback: <div>Loading...</div>,
26-
});
24+
export const HomePage = lazyLoad(
25+
() => import('./index'),
26+
module => module.HomePage,
27+
{
28+
fallback: <div>Loading...</div>,
29+
}
30+
);
2731
```
2832

33+
Make sure to rename your `Loadable.ts` file to `Loadable.tsx`.
2934
This feature is built into the boilerplate using React's `lazy` and `Suspense` features.

docs/building-blocks/i18n.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function MyComponent() {
4242
i18n.changeLanguage(language);
4343
};
4444
// The nested objects are intellisense supported ✅
45-
return <div>{t(translations.HomePage.Features.someItem}</div>;
45+
return <div>{t(translations.HomePage.Features.someItem)}</div>;
4646
}
4747
```
4848

docs/misc/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you have components that should be available throughout the app, like a `Navi
1515
import { combineReducers } from '@reduxjs/toolkit';
1616
...
1717

18-
import { reducer } from 'components/NavigationBar/slice';
18+
import { reducer as navigationBarReducer } from 'components/NavigationBar/slice';
1919

2020
export function createReducer(injectedReducers: InjectedReducersType = {}) {
2121
const rootReducer = combineReducers({

0 commit comments

Comments
 (0)