diff --git a/.github/scripts/setup.js b/.github/scripts/setup.js index 822f536203..42edcdd2ee 100644 --- a/.github/scripts/setup.js +++ b/.github/scripts/setup.js @@ -121,7 +121,14 @@ async function runAndStream(command, args, options) { await runAndStream('yarn', ['knex-migrator', 'init'], {cwd: coreFolder}); if (resetData) { - console.log(chalk.blue(`Resetting all data`)); - await runAndStream('yarn', ['reset:data'], {cwd: rootFolder}); + const xxl = process.argv.includes('--xxl'); + + if (xxl) { + console.log(chalk.blue(`Resetting all data (with xxl)`)); + await runAndStream('yarn', ['reset:data:xxl'], {cwd: rootFolder}); + } else { + console.log(chalk.blue(`Resetting all data`)); + await runAndStream('yarn', ['reset:data'], {cwd: rootFolder}); + } } })(); diff --git a/package.json b/package.json index 219a58f440..027d0569ad 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "fix": "yarn cache clean && rimraf -g '**/node_modules' && yarn", "knex-migrator": "yarn workspace ghost run knex-migrator", "setup": "yarn && git submodule update --init && NODE_ENV=development node .github/scripts/setup.js", - "reset:data": "cd ghost/core && node index.js generate-data --clear-database --quantities members:2000000,posts:0,emails:0,members_stripe_customers:0,members_login_events:0,members_status_events:0 --seed 123", + "reset:data": "cd ghost/core && node index.js generate-data --clear-database --quantities members:100000,posts:500 --seed 123", + "reset:data:xxl": "cd ghost/core && node index.js generate-data --clear-database --quantities members:2000000,posts:0,emails:0,members_stripe_customers:0,members_login_events:0,members_status_events:0 --seed 123", "docker:reset": "docker-compose -f .github/scripts/docker-compose.yml down -v && docker-compose -f .github/scripts/docker-compose.yml up -d --wait", "lint": "nx run-many -t lint", "test": "nx run-many -t test",