Enable building api code upon start #380
Labels
good first issue
Good for newcomers
scope: cli
Issues happened a the ./src/cli level
status: release-blocker
Issues blocking a major release
type: enhancement
New feature or request
I have setup my api using TypeScript and I am unable to startup both the frontend and the api at the same time using the
swa start
command, because the TypeScript code needs to be built before you can run it as JavaScript.Instead of running
func start
in the api folder you should provide a way to run e.g.npm start
within that folder, so that the developer can setup prestart tasks that build the code before trying to run it. My suggestion would be to add parameter--run-api
, so that you could use--run-api="npm start"
, which would run the command in the api folder.An alternative way could be to provide a way to run a pre-start task, so that you can build the api by separate parameter at beforehand. E.g.
--build-api="npm run build"
, which would run the command within the api folder.The text was updated successfully, but these errors were encountered: