@atom.io/template-react-node-backend 0.0.66 → 0.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +17 -0
- package/README.md +30 -62
- package/package.json +7 -7
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,9 +7,9 @@ dist/index.html 0.45 kB │ gzip: 0.29 kB
|
|
|
7
7
|
dist/assets/index-NoNSZ6e2.css 2.97 kB │ gzip: 1.01 kB
|
|
8
8
|
dist/assets/index-D7LYKGxb.js 517.15 kB │ gzip: 136.73 kB
|
|
9
9
|
|
|
10
|
+
[32m✓ built in 375ms[39m
|
|
10
11
|
[33m[plugin builtin:vite-reporter]
|
|
11
12
|
(!) Some chunks are larger than 500 kB after minification. Consider:
|
|
12
13
|
- Using dynamic import() to code-split the application
|
|
13
14
|
- Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
|
|
14
15
|
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.[39m
|
|
15
|
-
[32m✓ built in 434ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atom.io/template-react-node-backend
|
|
2
2
|
|
|
3
|
+
## 0.0.68
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 26697cd: Replace template boilerplate READMEs with generated-project guides.
|
|
8
|
+
- Updated dependencies [26697cd]
|
|
9
|
+
- Updated dependencies [03d6465]
|
|
10
|
+
- atom.io@0.47.4
|
|
11
|
+
|
|
12
|
+
## 0.0.67
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [fbc86fe]
|
|
17
|
+
- Updated dependencies [fbc86fe]
|
|
18
|
+
- atom.io@0.47.3
|
|
19
|
+
|
|
3
20
|
## 0.0.66
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,75 +1,43 @@
|
|
|
1
|
-
# React
|
|
1
|
+
# React Node Backend
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A React + Vite starter with a tiny Node API, a mock auth service, and `atom.io`
|
|
4
|
+
state on the client.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
## What It Shows
|
|
6
7
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
8
|
+
- loadable atoms for remote todo data
|
|
9
|
+
- atom families for individual records
|
|
10
|
+
- optimistic create, update, and delete flows
|
|
11
|
+
- selectors for derived todo stats
|
|
12
|
+
- cookie-based auth against a backend-shaped local service
|
|
9
13
|
|
|
10
|
-
##
|
|
14
|
+
## Run It
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## Expanding the ESLint configuration
|
|
16
|
+
```sh
|
|
17
|
+
npm run dev
|
|
18
|
+
```
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
The dev script starts three processes:
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
files: ['**/*.{ts,tsx}'],
|
|
25
|
-
extends: [
|
|
26
|
-
// Other configs...
|
|
22
|
+
- Vite app at `http://localhost:5173`
|
|
23
|
+
- Todo API at `http://localhost:3000`
|
|
24
|
+
- Mock authenticator at `http://localhost:4000`
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
tseslint.configs.recommendedTypeChecked,
|
|
30
|
-
// Alternatively, use this for stricter rules
|
|
31
|
-
tseslint.configs.strictTypeChecked,
|
|
32
|
-
// Optionally, add this for stylistic rules
|
|
33
|
-
tseslint.configs.stylisticTypeChecked,
|
|
26
|
+
Build and preview the frontend with the same local services:
|
|
34
27
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
parserOptions: {
|
|
39
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
40
|
-
tsconfigRootDir: import.meta.dirname,
|
|
41
|
-
},
|
|
42
|
-
// other options...
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
])
|
|
28
|
+
```sh
|
|
29
|
+
npm run build
|
|
30
|
+
npm run preview
|
|
46
31
|
```
|
|
47
32
|
|
|
48
|
-
|
|
33
|
+
## Where To Look
|
|
49
34
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
import reactDom from 'eslint-plugin-react-dom'
|
|
35
|
+
- `src/App.tsx`: the React UI, loadable atoms, atom families, optimistic writes, and derived stats.
|
|
36
|
+
- `node/server.ts`: in-memory todo API, auth cookie handling, and a server-side atom for slow-load toggles.
|
|
37
|
+
- `node/authenticator.ts`: mock login service that redirects back to the API.
|
|
54
38
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// Other configs...
|
|
61
|
-
// Enable lint rules for React
|
|
62
|
-
reactX.configs['recommended-typescript'],
|
|
63
|
-
// Enable lint rules for React DOM
|
|
64
|
-
reactDom.configs.recommended,
|
|
65
|
-
],
|
|
66
|
-
languageOptions: {
|
|
67
|
-
parserOptions: {
|
|
68
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
69
|
-
tsconfigRootDir: import.meta.dirname,
|
|
70
|
-
},
|
|
71
|
-
// other options...
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
])
|
|
75
|
-
```
|
|
39
|
+
## Next Ideas
|
|
40
|
+
|
|
41
|
+
- Swap the in-memory SQLite database for a file-backed one.
|
|
42
|
+
- Move the auth token validation into middleware.
|
|
43
|
+
- Add a timeline to inspect todo changes while developing.
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom.io/template-react-node-backend",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.68",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/jeremybanka/
|
|
9
|
+
"url": "git+https://github.com/jeremybanka/atom.io.git",
|
|
10
10
|
"directory": "templates/react-node-backend"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"react": "19.2.7",
|
|
15
15
|
"react-dom": "19.2.7",
|
|
16
16
|
"zod": "4.4.3",
|
|
17
|
-
"atom.io": "0.47.
|
|
17
|
+
"atom.io": "0.47.4"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@eslint-react/eslint-plugin": "5.8.
|
|
21
|
-
"@types/node": "25.9.
|
|
22
|
-
"@types/react": "19.2.
|
|
20
|
+
"@eslint-react/eslint-plugin": "5.8.17",
|
|
21
|
+
"@types/node": "25.9.2",
|
|
22
|
+
"@types/react": "19.2.17",
|
|
23
23
|
"@types/react-dom": "19.2.3",
|
|
24
24
|
"@vitejs/plugin-react": "6.0.2",
|
|
25
25
|
"babel-plugin-react-compiler": "1.0.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint-plugin-react-refresh": "0.5.2",
|
|
29
29
|
"globals": "17.6.0",
|
|
30
30
|
"typescript": "6.0.3",
|
|
31
|
-
"typescript-eslint": "8.
|
|
31
|
+
"typescript-eslint": "8.61.0",
|
|
32
32
|
"vite": "8.0.16"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|