后端迁移开发脚本

This commit is contained in:
yml
2026-05-21 17:37:31 +08:00
parent 78e9d1d5c5
commit 3a2f89e233
5 changed files with 23 additions and 10 deletions
@@ -70,7 +70,7 @@ function parseArgs(argv) {
function printHelp() {
console.log(`
:
node scripts/cleanup-dev-data.js [--apply]
npm run cleanup:dev-data -- [--apply]
:
PostgreSQL fulfillment schema
@@ -177,7 +177,7 @@ async function ensureSeedBindings() {
enabled: true,
priority: binding.priority,
configJson: JSON.stringify({
seededBy: 'scripts/seed-dev-data.js',
seededBy: 'scripts/seed-dev-data.ts',
scenario: binding.skuCode,
}),
createdAt: timestamp,
@@ -458,7 +458,7 @@ function parseArgs(argv) {
function printHelp() {
console.log(`
:
node scripts/seed-dev-data.js [--apply] [--reset]
npm run seed:dev-data -- [--apply] [--reset]
:
PostgreSQL fulfillment schema
@@ -260,16 +260,16 @@ function printJson(title, value) {
function printHelp() {
process.stdout.write(`用法:
node scripts/test-agiso-auto-delivery.js <订单号> [--shop-id <店铺ID>] [--poll 0,3,10]
npm run agiso:auto-delivery:test -- <订单号> [--shop-id <店铺ID>] [--poll 0,3,10]
:
1. DummySend
2. Order/Detail DummySend poll
:
node scripts/test-agiso-auto-delivery.js 4502285714045005830
node scripts/test-agiso-auto-delivery.js 4502285714045005830 --poll 0,5,15
node scripts/test-agiso-auto-delivery.js 4502285714045005830 --shop-id 2209880145223
npm run agiso:auto-delivery:test -- 4502285714045005830
npm run agiso:auto-delivery:test -- 4502285714045005830 --poll 0,5,15
npm run agiso:auto-delivery:test -- 4502285714045005830 --shop-id 2209880145223
`)
}