You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-13Lines changed: 9 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,3 @@
1
-
<dl>
2
-
<dt>Update</dt>
3
-
<dd>The next version is in the works. Check it out <ahref="https://github.com/iamvijaydev/react-base-code/tree/next">next</a>. Read the <ahref="https://github.com/iamvijaydev/react-base-code/blob/next/TODO.md">todo</a>.</dd>
4
-
</dl>
5
-
6
1
React base code
7
2
===============
8
3
@@ -16,6 +11,7 @@ An opinionated and scalable base tech stack for a modern React app.
16
11
-**styled-components:** The styling and theming library
17
12
-**react-router-dom:** The routing library
18
13
-**react-loadable:** The lazy loading library
14
+
-**react-spring:** The spring-physics based animation library
19
15
-**axios:** The XHR library
20
16
-**react-intl-universal:** The internationalization library
21
17
-**jest & enzyme:** The testing libraries
@@ -32,39 +28,39 @@ An opinionated and scalable base tech stack for a modern React app.
32
28
33
29
## Get the code
34
30
-*clone:* the repository via `git clone git@github.com:iamvijaydev/react-base-code.git` (You will have to change the remote)
This file `env.js` contains any environment-related contents. Update then as you see fit. Add more if required.
45
41
46
42
## Start dev server
47
43
```shell
48
-
npm start
44
+
yarn start
49
45
```
50
46
51
47
## Build dist
52
48
```shell
53
-
npm run dist
49
+
yarn run dist
54
50
```
55
51
56
52
## Unit test
57
53
```shell
58
-
npmtest
54
+
yarntest
59
55
```
60
56
61
57
## Update unit test snapshots
62
58
```shell
63
-
npm run test:u
59
+
yarn test -u
64
60
```
65
61
66
62
## Intl
67
63
All the language translations are added to `/config/locale/<locale code>/<fragments>.json`. During both dev and prod build, an additional script is run to aggregate all the fragments to a single file at `/config/locale/<locale code>.json`. Meaning, you can create as many fragments as you like. Make sure to apply any modifications or additions are applied on all locale folders. Since aggregation is a separate script, you need to restart the dev server to apply the new changes.
0 commit comments