-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (27 loc) · 811 Bytes
/
index.js
File metadata and controls
28 lines (27 loc) · 811 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
// clone https://github.com/emberjs/data.git
// into a folder called warp-drive-clone, removing
// it if it already exists
// then copy the contents of the guides directory
// into docs/guides
async function main() {
{
const proc = Bun.spawn(['git', 'clone', 'https://github.com/warp-drive-data/warp-drive.git', 'warp-drive', '--depth=1'], {});
await proc.exited;
}
{
const proc = Bun.spawn(['pnpm', 'install'], {
stdio: ['inherit', 'inherit', 'inherit'],
cwd: 'warp-drive',
});
await proc.exited;
}
{
const proc = Bun.spawn(['pnpm', 'run', 'build'], {
stdio: ['inherit', 'inherit', 'inherit'],
cwd: 'warp-drive/docs-viewer',
env: Object.assign({}, process.env, { HOSTNAME: 'https://warp-drive.io' }),
});
await proc.exited;
}
}
main();