Better deploy scripts
This commit is contained in:
parent
33d16e71ec
commit
9068772ca3
5 changed files with 15 additions and 8 deletions
|
|
@ -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
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -39,11 +39,6 @@
|
|||
"cache": false,
|
||||
"persistent": true
|
||||
},
|
||||
"deploy": {
|
||||
"dependsOn": ["build"],
|
||||
"cache": false,
|
||||
"outputLogs": "new-only"
|
||||
},
|
||||
"clean": {
|
||||
"cache": false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue