Files
headroom/frontend/node_modules/libphonenumber-js/build-scripts/create-metadata-update-branch.js
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

31 lines
728 B
JavaScript

// (deprecated because unused)
// Ccreates a new git branch called "update-metadata" and switches into it.
// If the branch with such name already exists, it overwrites it with a new one.
import exec from './helpers/exec.js'
let metadata_branch_exists = false
try
{
exec('git rev-parse --verify update-metadata')
metadata_branch_exists = true
}
catch (error)
{
if (error.message.indexOf('fatal: Needed a single revision') === -1)
{
throw error
}
}
if (metadata_branch_exists)
{
console.log(exec('git checkout master'))
console.log(exec('git branch -D update-metadata'))
}
console.log(exec('git pull'))
console.log(exec('git branch update-metadata origin/master'))
console.log(exec('git checkout update-metadata'))