Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,29 @@ on:
branches: [ main ]

env:
NODE_VER: 22.5
NODE_VERSION: 24.10.0
PNPM_VERSION: 10.7.1

jobs:
testCodebase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
- name: Use pnpm ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Use Node.js ${{ env.NODE_VER }}
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
cache: 'pnpm'
node-version: ${{ env.NODE_VERSION }}
cache: pnpm

- name: Install deps
run: pnpm i
run: pnpm install

- name: Check linting
run: pnpm lint
Expand All @@ -52,24 +54,25 @@ jobs:
env:
DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432'
DIRECT_DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432'
AUTH_ORIGIN: http://localhost:3000
AUTH_ORIGIN: http://localhost:3000/api/auth
AUTH_SECRET: test123
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
- name: Use pnpm ${{ env.PNPM_VERSION }}
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Use Node.js ${{ env.NODE_VER }}
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
cache: 'pnpm'
node-version: ${{ env.NODE_VERSION }}
cache: pnpm

- name: Install deps
run: pnpm i
run: pnpm install

- name: Run the CI with default options
run: pnpm dev:ci
Expand All @@ -91,12 +94,8 @@ jobs:

# start prod-app
- name: app:run in prod
env:
AUTH_ORIGIN: http://localhost:3000/api/auth
run: "cd my-sidebase-app && npm run build && timeout 30 npm run preview || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"

# start dev-app and curl from it
- name: app:test in prod
env:
AUTH_ORIGIN: http://localhost:3000/api/auth
run: "cd my-sidebase-app && timeout 30 npm run dev & (sleep 20 && curl --fail localhost:3000) || ( [[ $? -eq 124 ]] && echo \"app started and did not exit within first 30 seconds, thats good\" )"
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint"
]
}
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
Expand Down
12 changes: 4 additions & 8 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import antfu from '@antfu/eslint-config'

const ignores = [
'.nuxt',
'**/.nuxt/**',
'.output',
'**/.output/**',
'node_modules',
'**/node_modules/**',
'public',
'**/public/**',
'node_modules/',
'dist/',
'my-sidebase-*/',
'coverage/',
]

export default antfu({
Expand Down
44 changes: 24 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
"type": "module",
"version": "0.9.0",
"description": "The productive way to build fullstack Nuxt 3 applications, like create-t3-app but for Nuxt.",
"packageManager": "pnpm@10.7.1",
"engines": {
"pnpm": ">=10.7.0",
"node": ">=24.2.0"
},
"scripts": {
"dev": "vite-node src/ -- --nocounting",
"dev:ci": "vite-node src/ -- --ci",
"lint": "oxlint --deny-warnings -D correctness -D suspicious -D perf && eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0",
"lint:fix": "eslint \"./src/**/*.{ts,tsx}\" --max-warnings=0 --fix",
"typecheck": "tsc --noEmit",
"build": "rm -rf dist && tsup src/ --format esm",
"build": "rm -rf dist && tsdown src/ --format esm",
"start": "npx",
"prepack": "npm run build"
},
Expand Down Expand Up @@ -40,27 +45,26 @@
},
"homepage": "https://sidebase.io",
"devDependencies": {
"@antfu/eslint-config": "^2.11.5",
"@types/node": "^18.11.16",
"@types/prompts": "^2.4.2",
"eslint": "^8.57.0",
"oxlint": "^0.7.2",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"vite-node": "^0.25.8"
"@antfu/eslint-config": "^6.0.0",
"@types/node": "^24.7.2",
"@types/prompts": "^2.4.9",
"eslint": "^9.37.0",
"oxlint": "^1.23.0",
"tsdown": "^0.15.7",
"typescript": "^5.9.3",
"vite-node": "^3.2.4"
},
"dependencies": {
"@nuxt/schema": "^3.12.4",
"chalk": "^5.2.0",
"commander": "^9.4.1",
"consola": "^3.2.3",
"defu": "^6.1.1",
"execa": "^6.1.0",
"giget": "^1.0.0",
"@nuxt/schema": "^4.1.3",
"chalk": "^5.6.2",
"commander": "^14.0.1",
"consola": "^3.4.2",
"defu": "^6.1.4",
"execa": "^9.6.0",
"giget": "^2.0.0",
"node-fetch": "^3.3.0",
"ora": "^6.1.2",
"pkg-types": "^1.0.1",
"ora": "^9.0.0",
"pkg-types": "^2.3.0",
"prompts": "^2.4.2"
},
"packageManager": "pnpm@9.6.0+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e"
}
}
Loading