Skip to content

Commit 9e27275

Browse files
author
Flatlogic Bot
committed
chore: add npm-based CI pipeline and lint script
1 parent b7dd0db commit 9e27275

6 files changed

Lines changed: 82 additions & 7672 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Lint
27+
run: npm run lint
28+
29+
- name: Build
30+
run: npm run build
31+
32+
- name: Test
33+
run: npm test

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,10 @@ Looking for a perfect codebase generator for your Startup? Try [Flatlogic AI Web
3232
3. **Install dependencies**
3333
```bash
3434
npm install
35-
# or
36-
yarn install
3735
```
3836
4. **Run frontend-only mode (default)**
3937
```bash
4038
npm run dev
41-
# or
42-
yarn dev
4339
```
4440
5. **Enable backend mode (optional)**
4541
- Create `.env.local`:
@@ -54,8 +50,6 @@ Looking for a perfect codebase generator for your Startup? Try [Flatlogic AI Web
5450
6. **Build for production**
5551
```bash
5652
npm run build
57-
# or
58-
yarn build
5953
```
6054

6155
---
@@ -64,8 +58,8 @@ Looking for a perfect codebase generator for your Startup? Try [Flatlogic AI Web
6458

6559
- React `19.2.4`
6660
- MUI `7.x` + Emotion
67-
- React Router `5.x` (Browser History, no hash routing)
68-
- Redux + Context (transitional architecture before consolidation)
61+
- React Router `6.x` (`BrowserRouter`, hooks API)
62+
- Context-based state for auth/users/layout/theme
6963
- Vite 5 + `@vitejs/plugin-react`
7064
- Frontend-only users/auth fallback is available when backend is disabled
7165

@@ -91,7 +85,7 @@ Looking for a perfect codebase generator for your Startup? Try [Flatlogic AI Web
9185
- React 19
9286
- MUI 7
9387
- React Hooks & Context API
94-
- React Router v5
88+
- React Router v6
9589
- Vite
9690
- Node.js (for backend)
9791

0 commit comments

Comments
 (0)