-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
executable file
·32 lines (25 loc) · 852 Bytes
/
Copy pathbuild.js
File metadata and controls
executable file
·32 lines (25 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env node
/**
* Build Script for Multi-Domain Example
*
* Builds all domains in the correct order.
* In a real application, this might compile TypeScript, bundle assets, etc.
*/
const domains = ['shared', 'frontend', 'backend', 'api'];
console.log('🔨 Building multi-domain application...\n');
console.log('Domain build order:');
domains.forEach((domain, index) => {
console.log(` ${index + 1}. ${domain}`);
});
console.log('');
// Simulate build for each domain
for (const domain of domains) {
console.log(`Building ${domain}...`);
console.log(` ✓ Checking source files`);
console.log(` ✓ Processing dependencies`);
console.log(` ✓ Generating output`);
console.log(` ✓ ${domain} built successfully\n`);
}
console.log('✅ All domains built successfully!\n');
// Exit with success code
process.exit(0);