aaex-cli 2.0.0 → 2.0.1
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/README.md +11 -2
- package/create-aaex-app.js +2 -2
- package/package.json +3 -3
- package/template/src/hooks/useAuth.tsx +1 -1
- package/template/src/pages/login.tsx +1 -1
- package/template/tsconfig.json +1 -2
- package/template/src/client-routes.ts +0 -33
- package/template/src/routeTypes.ts +0 -7
- package/template/src/server-routes.ts +0 -37
- /package/template/{src/vite-env.d.ts → vite-env.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
# AaExJS
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
## V.2.0.1
|
|
4
|
+
|
|
3
5
|
Bug fix for css modules
|
|
6
|
+
|
|
4
7
|
## Description
|
|
8
|
+
|
|
5
9
|
Light weight SSR framework for react with filebased page and api routing. Builds on Vitejs alreadt existing SSR functionality.
|
|
6
10
|
|
|
7
11
|
## Features
|
|
12
|
+
|
|
8
13
|
- File routing using aaex-file-router (can be used seperatly)
|
|
9
14
|
- API routing using hybrid solution only available in the full framework
|
|
10
15
|
- SSR rendering using vites native functions + additional functionality
|
|
11
16
|
- full typescript support (currently only typescript)
|
|
12
17
|
- all vite plugins that work with ssr should work
|
|
13
18
|
|
|
19
|
+
## Known issues:
|
|
20
|
+
|
|
21
|
+
- tailwindcss dosnt work as excpected
|
|
14
22
|
|
|
15
23
|
## Usage
|
|
24
|
+
|
|
16
25
|
```sh
|
|
17
26
|
npx create-aaex-app <project-name>
|
|
18
|
-
```
|
|
27
|
+
```
|
package/create-aaex-app.js
CHANGED
|
@@ -63,12 +63,12 @@ async function createPackageJson() {
|
|
|
63
63
|
express: "^5.1.0",
|
|
64
64
|
compression: "^1.8.1",
|
|
65
65
|
sirv: "^3.0.2",
|
|
66
|
-
"aaex-file-router": "^
|
|
66
|
+
"aaex-file-router": "^2.0.0",
|
|
67
67
|
jsonwebtoken: "^9.0.3",
|
|
68
68
|
mongodb: "^7.0.0",
|
|
69
69
|
bcrypt: "^6.0.0",
|
|
70
70
|
dotenv: "^17.2.3",
|
|
71
|
-
"aaexjs
|
|
71
|
+
"aaexjs": "^2.0.0"
|
|
72
72
|
},
|
|
73
73
|
devDependencies: {
|
|
74
74
|
typescript: "~5.9.2",
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aaex-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Command line interface for creating aaexjs app",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"create-aaex-app": "
|
|
9
|
+
"create-aaex-app": "create-aaex-app.js"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"inquirer": "^13.1.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"aaexjs
|
|
39
|
+
"aaexjs": "2.0.1"
|
|
40
40
|
}
|
|
41
41
|
}
|
package/template/tsconfig.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//* AUTO GENERATED: DO NOT EDIT
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Index from './pages/index.tsx';
|
|
4
|
-
import Login from './pages/login.tsx';
|
|
5
|
-
import Register from './pages/register.tsx';
|
|
6
|
-
import Slug from './pages/test/[slug].tsx';
|
|
7
|
-
import type { RouteObject } from 'react-router-dom';
|
|
8
|
-
|
|
9
|
-
const routes: RouteObject[] = [
|
|
10
|
-
{
|
|
11
|
-
"path": "",
|
|
12
|
-
"element": React.createElement(Index)
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"path": "login",
|
|
16
|
-
"element": React.createElement(Login)
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"path": "register",
|
|
20
|
-
"element": React.createElement(Register)
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"path": "test",
|
|
24
|
-
"children": [
|
|
25
|
-
{
|
|
26
|
-
"path": ":slug",
|
|
27
|
-
"element": React.createElement(Slug)
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
export default routes;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
//* AUTO GENERATED: DO NOT EDIT
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Index from './pages/index.tsx';
|
|
4
|
-
import Login from './pages/login.tsx';
|
|
5
|
-
import Register from './pages/register.tsx';
|
|
6
|
-
import Slug from './pages/test/[slug].tsx';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const serverRoutes: any[] = [
|
|
10
|
-
{
|
|
11
|
-
"path": "",
|
|
12
|
-
"element": Index,
|
|
13
|
-
"modulePath": "C:/Users/tmraa/OneDrive/Dokument/AaExJS-documentation/test-app/src/pages/index.tsx"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"path": "login",
|
|
17
|
-
"element": Login,
|
|
18
|
-
"modulePath": "C:/Users/tmraa/OneDrive/Dokument/AaExJS-documentation/test-app/src/pages/login.tsx"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "register",
|
|
22
|
-
"element": Register,
|
|
23
|
-
"modulePath": "C:/Users/tmraa/OneDrive/Dokument/AaExJS-documentation/test-app/src/pages/register.tsx"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"path": "test",
|
|
27
|
-
"children": [
|
|
28
|
-
{
|
|
29
|
-
"path": ":slug",
|
|
30
|
-
"element": Slug,
|
|
31
|
-
"modulePath": "C:/Users/tmraa/OneDrive/Dokument/AaExJS-documentation/test-app/src/pages/test/[slug].tsx"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
export default serverRoutes;
|
|
File without changes
|