Better deploy scripts

This commit is contained in:
Arthur Belleville 2025-10-23 23:17:10 +02:00
parent 33d16e71ec
commit 9068772ca3
No known key found for this signature in database
5 changed files with 15 additions and 8 deletions

View file

@ -13,7 +13,8 @@
"preview": "vite preview",
"build:staging": "tsc -b && vite build --mode staging",
"build:prod": "tsc -b && vite build --mode production",
"deploy": "wrangler deploy --env=\"\"",
"deploy:staging": "wrangler deploy --env=\"\"",
"deploy:prod": "wrangler deploy --env=\"\"",
"cf-typegen": "wrangler types",
"test": "vitest run --mode dev --passWithNoTests",
"test:watch": "vitest watch --passWithNoTests",

File diff suppressed because one or more lines are too long

View file

@ -29,6 +29,16 @@
"outputs": ["dist/**", "tsconfig.tsbuildinfo"],
"outputLogs": "new-only",
"env": ["NODE_ENV", "VITE_*"]
},
"deploy:staging": {
"dependsOn": ["build:staging"],
"cache": false,
"outputLogs": "new-only"
},
"deploy:prod": {
"dependsOn": ["build:prod"],
"cache": false,
"outputLogs": "new-only"
}
}
}

View file

@ -12,7 +12,8 @@
"dev": "turbo dev",
"dev:main": "turbo dev --filter=@xtablo/main",
"dev:external": "turbo dev --filter=@xtablo/external",
"deploy:main": "turbo deploy --filter=@xtablo/main",
"deploy:main:staging": "turbo deploy:staging --filter=@xtablo/main",
"deploy:main:prod": "turbo deploy:prod --filter=@xtablo/main",
"deploy:external": "turbo deploy --filter=@xtablo/external",
"deploy:all": "pnpm deploy:main && pnpm deploy:external",
"lint": "turbo lint",

View file

@ -39,11 +39,6 @@
"cache": false,
"persistent": true
},
"deploy": {
"dependsOn": ["build"],
"cache": false,
"outputLogs": "new-only"
},
"clean": {
"cache": false
}