Skip to content

Commit

Permalink
Merge pull request #1585 from hngprojects/phoenix
Browse files Browse the repository at this point in the history
feat: server actions for all stacks
  • Loading branch information
incredible-phoenix246 authored Feb 25, 2025
2 parents bb15fed + 6eafe3f commit f712c42
Show file tree
Hide file tree
Showing 11 changed files with 805 additions and 775 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
node-version: "23"

- name: Install pnpm
run: npm install -g pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Install dependencies
run: pnpm install
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,24 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
version: 10

- name: Install dependencies
run: pnpm install

- name: Lint code
run: pnpm lint

# - name: Build email
# run: pnpm email:build

- name: Build project
run: pnpm build

Expand Down
20 changes: 10 additions & 10 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "styling your work" 🎨✨


# Check Prettier standards
npm run check-format ||
pnpm run check-format ||
(
echo '🤢🤮🤢🤮 Its so ugly!! - Your styling looks disgusting. 🤢🤮🤢🤮
Prettier Check Failed. Running npm run format...';
Expand All @@ -21,18 +21,18 @@ npm run check-format ||

echo '🏗️👷 checking for eslint errors' 🔍🧐

# # Check ESLint Standards
# npm run check-lint ||
# (
# echo '😤🏀👋😤 Get that beans code out of here! 😤🏀👋😤
# ESLint Check Failed. Make the required changes listed above, add changes and try to commit again.'
# false
# )
# Check ESLint Standards
pnpm run lint ||
(
echo '😤🏀👋😤 Get that beans code out of here! 😤🏀👋😤
ESLint Check Failed. Make the required changes listed above, add changes and try to commit again.'
false
)

# echo '🏗️👷 checking for typescript errors' 🔍🧐
echo '🏗️👷 checking for typescript errors' 🔍🧐

# Check tsconfig standards
npm run check-types ||
pnpm run check-types ||
(
echo '🤡😂❌🤡 Failed Type check. 🤡😂❌🤡
Are you seriously trying to write that? Make the changes required above.'
Expand Down
62 changes: 31 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,62 +9,62 @@
"lint": "next lint",
"prepare": "husky",
"turbo": "next dev --turbo",
"format": "npm run check-lint --fix && npx prettier --write .",
"format": "pnpm lint --fix && pnpm prettier --write .",
"check-types": "tsc --pretty --noEmit",
"check-format": "prettier --check .",
"commitlint": "commitlint --edit"
},
"dependencies": {
"@hookform/resolvers": "^3.10.0",
"@hookform/resolvers": "^4.1.2",
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
"@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-avatar": "^1.1.2",
"@radix-ui/react-checkbox": "^1.1.3",
"@radix-ui/react-dialog": "^1.1.5",
"@radix-ui/react-dropdown-menu": "^2.1.5",
"@radix-ui/react-accordion": "^1.2.3",
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4",
"@radix-ui/react-dialog": "^1.1.6",
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.1",
"@radix-ui/react-popover": "^1.1.5",
"@radix-ui/react-slot": "^1.1.1",
"@tanstack/react-query": "^5.65.0",
"@tanstack/react-query-devtools": "^5.65.0",
"@radix-ui/react-label": "^2.1.2",
"@radix-ui/react-popover": "^1.1.6",
"@radix-ui/react-slot": "^1.1.2",
"@tanstack/react-query": "^5.66.9",
"@tanstack/react-query-devtools": "^5.66.9",
"axios": "^1.7.9",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.0.4",
"cors": "^2.8.5",
"date-fns": "^4.1.0",
"framer-motion": "^12.0.6",
"lenis": "^1.1.20",
"lucide-react": "^0.474.0",
"next": "15.1.6",
"framer-motion": "^12.4.7",
"lenis": "^1.1.21",
"lucide-react": "^0.476.0",
"next": "15.1.7",
"next-auth": "5.0.0-beta.25",
"next-nprogress-bar": "^2.4.3",
"next-nprogress-bar": "^2.4.7",
"react": "^19.0.0",
"react-day-picker": "9.5.1",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"sonner": "^1.7.2",
"swiper": "^11.2.1",
"tailwind-merge": "^2.6.0",
"sonner": "^2.0.1",
"swiper": "^11.2.4",
"tailwind-merge": "^3.0.2",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.24.1",
"zod": "^3.24.2",
"zustand": "^5.0.3"
},
"devDependencies": {
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@eslint/eslintrc": "^3.2.0",
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"@eslint/eslintrc": "^3.3.0",
"@types/cors": "^2.8.17",
"@types/node": "^22.10.10",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"eslint": "^9.19.0",
"eslint-config-next": "15.1.6",
"@types/node": "^22.13.5",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"eslint": "^9.21.0",
"eslint-config-next": "15.1.7",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"postcss": "^8.5.1",
"prettier": "^3.4.2",
"postcss": "^8.5.3",
"prettier": "^3.5.2",
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3"
Expand Down
Loading

0 comments on commit f712c42

Please sign in to comment.