Commit Graph

5 Commits

Author SHA1 Message Date
Alfi Maulana
478382dd46
feat: use asynchronous version of the exec file function (#522)
* feat: add `exec` function

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

* feat: use `exec` function in `configureProject` and `buildProject` functions

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

---------

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
2024-11-21 22:16:53 +07:00
Alfi Maulana
d1c539d005
refactor: refactor inputs to context (#400)
* refactor: rename `inputs` to `context`

* refactor: merge compiler and flags inputs to options input

* refactor: separate configure and build context
2024-08-07 22:20:14 +08:00
Alfi Maulana
23aad7b33f
feat: use child process package to execute command (#391)
* feat: use `execFileSync` from `node:child_process` package

* feat: modify `configureProject` function to be sync

* feat: modify `buildProject` function to be sync

* feat: display command output to the parent output
2024-08-06 12:29:28 +08:00
Alfi Maulana
d83693c521
feat: remove redundant specification of CMake source directory (#273)
* feat: remove setting the default of `source-dir` to `.`

* feat: append source dir to configure Cmake args only if specified
2024-03-25 14:03:03 +08:00
Alfi Maulana
0df49588a5
refactor: add CMake execution functions (#263)
* refactor: add `configureProject` function from lines in `main` function

* test: add test for `configureProject` function

* refactor: add `buildProject` function from lines in `main` function
2024-03-24 23:41:08 +08:00