File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,19 @@ import fs from 'node:fs/promises'
44import path from 'node:path'
55import os from 'node:os'
66
7- const cmd = './watch.sh'
7+ const cmd = buildCommand ( )
88const dir = './src'
99const delay = 500
1010
11+ function buildCommand ( ) {
12+ const tasks = process . env . GIPOD_TASKS
13+ const port = tasks ? tasks [ 0 ] ?. env ?. PORT || 8080 : 80
14+ return `./watch ${ port } `
15+ }
16+
1117/**
1218 * Get all files in `dir` and in all of its subdirectories and in all of their
13- * subdirectories, and so on...
19+ * subdirectories, an d so on...
1420 * @param {string } dir directory to read
1521 * @returns
1622 */
Original file line number Diff line number Diff line change 11cd ../aegis
22yarn build
3- curl -s http://localhost/reload
3+ curl -s http://localhost: $1 /reload
You can’t perform that action at this time.
0 commit comments