aaex-cli 2.0.0 → 2.0.2

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 CHANGED
@@ -1,18 +1,27 @@
1
1
  # AaExJS
2
- ## V.1.4.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
+ ```
@@ -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": "^1.5.0",
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-test": "^1.0.6",
71
+ "aaexjs": "^2.0.2"
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.0",
3
+ "version": "2.0.2",
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": "./create-aaex-app.js"
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-test": "1.0.6"
39
+ "aaexjs": "^2.0.1"
40
40
  }
41
41
  }
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
- import { getCookie } from "../../.aaex/utils/cookies";
2
+ import { getCookie } from "aaexjs/cookies";
3
3
  import { CookieUser } from "../models/User";
4
4
 
5
5
  export function useAuth() {
@@ -1,5 +1,5 @@
1
1
  import { useState } from "react";
2
- import { setCookie } from "aaexjs-test/cookies";
2
+ import { setCookie } from "aaexjs/cookies";
3
3
  import { LoginUser } from "../models/User";
4
4
 
5
5
  export default function Login() {
@@ -13,9 +13,8 @@
13
13
  ".aaex/api",
14
14
  "src/api",
15
15
  ".aaex/utils",
16
- "src/server-routes.ts",
17
16
  "src/hooks",
18
- "./vite-end.d.ts"
17
+ "./vite-env.d.ts"
19
18
  ],
20
19
  "exclude": ["node_modules", "dist"]
21
20
  }
@@ -1,9 +1,9 @@
1
1
  import { defineConfig } from "vite";
2
2
  import react from "@vitejs/plugin-react";
3
3
  import { aaexServerRouter } from "aaex-file-router/plugin";
4
- import { pluginSsrDevFoucFix } from "aaexjs-test";
4
+ import { SSRCss } from "aaexjs";
5
5
 
6
6
  // https://vite.dev/config/
7
7
  export default defineConfig({
8
- plugins: [react(), aaexServerRouter(), pluginSsrDevFoucFix()],
8
+ plugins: [react(), aaexServerRouter(), SSRCss()],
9
9
  });
@@ -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,7 +0,0 @@
1
- // AUTO-GENERATED: DO NOT EDIT
2
- export type FileRoutes =
3
- | "/"
4
- | "/login"
5
- | "/register"
6
- | "/test"
7
- | "/test/{string}";
@@ -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