How to create a build only configuration

I don't know how to handle tasks.json or launch.json.
How can I create a build only configuration?

Thanks