guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

An alternative to "run" that allows specifying a path. #163

Closed Bubblyworld closed 1 year ago

Bubblyworld commented 1 year ago

It would be nice if there was a way to specify a path to a file to run, rather than inlining the script. Something like this:

[[task]]
name = "generate:api-docs"
engine = "node"
run = "./path/to/my/script.js"

Inlining the scripts makes development of extensions a pain.

Bubblyworld commented 1 year ago

(obviously this^ suggestion won't work, but something like it? runFile? not sure)

guybedford commented 1 year ago

Yes, that would be:

[[task]]
name = "generate:api-docs"
run = "node path/to/my/script.js"