ddc71dc7f2
- Rebuilt all 9 Asian language landing pages (zh-CN, zh-TW, ja, ko, th, vi, id, ms, hi) - Switched from dark to light theme per MOBILE_FIRST_STANDARD - Added Landvex Authorization section (VW-style certification flow) - Added full copy: hero, stats, how-it-works, missions, earnings, FAQ, footer - Localized currencies and payment methods per market - Build system: template + JSON translations → static HTML - Validation script ensures no missing translations or placeholder leaks - CI/CD pipeline: GitHub Actions → S3 + CloudFront - Version management: npm version patch/minor/major BREAKING CHANGE: Old placeholder pages replaced with full content
31 lines
972 B
JavaScript
31 lines
972 B
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Version bump utility
|
|
* Usage: node scripts/version.js [patch|minor|major]
|
|
*/
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const pkgPath = path.join(__dirname, '../package.json');
|
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
|
|
|
|
const [,, bump = 'patch'] = process.argv;
|
|
const [major, minor, patch] = pkg.version.split('.').map(Number);
|
|
|
|
let newVersion;
|
|
switch (bump) {
|
|
case 'major': newVersion = `${major + 1}.0.0`; break;
|
|
case 'minor': newVersion = `${major}.${minor + 1}.0`; break;
|
|
case 'patch': newVersion = `${major}.${minor}.${patch + 1}`; break;
|
|
default:
|
|
console.error('Usage: node scripts/version.js [patch|minor|major]');
|
|
process.exit(1);
|
|
}
|
|
|
|
pkg.version = newVersion;
|
|
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
|
|
console.log(`🔖 Version bumped: ${pkg.version} → ${newVersion}`);
|
|
console.log(' Run: git add package.json && git commit -m "release: v' + newVersion + '"');
|