mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
style: fix formatting with Prettier
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
23
init.mjs
23
init.mjs
@@ -292,11 +292,10 @@ async function main() {
|
||||
log('Checking Playwright browsers...', 'yellow');
|
||||
try {
|
||||
const exitCode = await new Promise((resolve) => {
|
||||
const playwright = crossSpawn(
|
||||
'npx',
|
||||
['playwright', 'install', 'chromium'],
|
||||
{ stdio: 'inherit', cwd: path.join(__dirname, 'apps', 'ui') }
|
||||
);
|
||||
const playwright = crossSpawn('npx', ['playwright', 'install', 'chromium'], {
|
||||
stdio: 'inherit',
|
||||
cwd: path.join(__dirname, 'apps', 'ui'),
|
||||
});
|
||||
playwright.on('close', (code) => resolve(code));
|
||||
playwright.on('error', () => resolve(1));
|
||||
});
|
||||
@@ -304,10 +303,7 @@ async function main() {
|
||||
if (exitCode === 0) {
|
||||
log('Playwright browsers ready', 'green');
|
||||
} else {
|
||||
log(
|
||||
'Playwright installation failed (browser automation may not work)',
|
||||
'yellow'
|
||||
);
|
||||
log('Playwright installation failed (browser automation may not work)', 'yellow');
|
||||
}
|
||||
} catch {
|
||||
log('Playwright installation skipped', 'yellow');
|
||||
@@ -357,9 +353,7 @@ async function main() {
|
||||
}
|
||||
|
||||
// Start server in background
|
||||
const logStream = fs.createWriteStream(
|
||||
path.join(__dirname, 'logs', 'server.log')
|
||||
);
|
||||
const logStream = fs.createWriteStream(path.join(__dirname, 'logs', 'server.log'));
|
||||
serverProcess = runNpm(['run', 'dev:server'], {
|
||||
stdio: ['ignore', 'pipe', 'pipe'],
|
||||
});
|
||||
@@ -392,10 +386,7 @@ async function main() {
|
||||
}
|
||||
|
||||
log('✓ Server is ready!', 'green');
|
||||
log(
|
||||
`The application will be available at: http://localhost:3007`,
|
||||
'green'
|
||||
);
|
||||
log(`The application will be available at: http://localhost:3007`, 'green');
|
||||
console.log('');
|
||||
|
||||
// Start web app
|
||||
|
||||
Reference in New Issue
Block a user