mirror of
https://github.com/bitbaum/datacat.git
synced 2026-12-03 17:28:00 +01:00
* chore: add a formatter, matching the style this repo already writes singleQuote=true was chosen by counting this repo's own imports, not by fleet decree. The fleet is genuinely split and the two repos that already had a .prettierrc disagreed with each other, so there was no standard to restore. Quote style does not cross repo boundaries; having a gate does. Markdown is ignored for now — prettier rewraps prose, which would bury the real diff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format with prettier (199 files) Mechanical. No behaviour change. This SHA is listed in .git-blame-ignore-revs so `git blame` skips it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: teach git blame to skip the reformat Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(ci): put prettier where CI actually installs The formatter was added to the root package.json, but CI installs with working-directory: frontend and then runs npm run verify at the root, so root devDependencies are never installed at all. format:check died with 'prettier: not found' before checking a single file. Root now delegates into frontend the way every other root script already does, and prettier is a devDependency of frontend, whose lockfile CI installs. frontend also needs its own .prettierignore: prettier resolves that file relative to the working directory, so the root one stopped applying the moment the command ran from frontend/ — which is how README.md and Playwright output ended up being checked. * fix(ci): do not format contentlayer's generated output format:check ran green locally and failed in CI on files that do not exist locally: CI builds contentlayer before verify, so .contentlayer/generated is present by the time prettier looks. One generated module imports with assert { type: 'json' }, which prettier's parser rejects outright. A local --check cannot see build output, so generated directories have to be ignored by name rather than discovered. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
49 lines
1.1 KiB
JavaScript
Executable File
49 lines
1.1 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const { spawn } = require('child_process');
|
|
|
|
console.log('\n🚀 Starting all development servers...\n');
|
|
|
|
// Start concurrently with both servers
|
|
const dev = spawn(
|
|
'npx',
|
|
[
|
|
'concurrently',
|
|
'-k',
|
|
'-n',
|
|
'FRONTEND,BACKEND',
|
|
'-c',
|
|
'blue,green',
|
|
'"cd frontend && npm run dev"',
|
|
'"cd backend && npm start"',
|
|
],
|
|
{
|
|
stdio: 'inherit',
|
|
shell: true,
|
|
cwd: process.cwd(),
|
|
},
|
|
);
|
|
|
|
// Wait a bit for servers to start, then show links
|
|
setTimeout(() => {
|
|
console.log('\n' + '='.repeat(50));
|
|
console.log('🔗 DEVELOPMENT SERVERS RUNNING:');
|
|
console.log('='.repeat(50));
|
|
console.log('');
|
|
console.log('📱 Frontend (Next.js): http://localhost:3000');
|
|
console.log('⚙️ Backend (Express): http://localhost:5000');
|
|
console.log('');
|
|
console.log('='.repeat(50));
|
|
console.log('Press Ctrl+C to stop all servers');
|
|
console.log('='.repeat(50) + '\n');
|
|
}, 4000);
|
|
|
|
dev.on('close', (code) => {
|
|
console.log(`\n✅ Development servers stopped (code ${code})`);
|
|
});
|
|
|
|
process.on('SIGINT', () => {
|
|
console.log('\n🛑 Stopping all development servers...');
|
|
dev.kill('SIGINT');
|
|
});
|