noseglid / atom-build

:hammer: Build your project directly from the Atom editor
https://atom.io/packages/build
MIT License
248 stars 97 forks source link

Print to output buffer #458

Closed Invisible-Rabbit-Hunter closed 7 years ago

Invisible-Rabbit-Hunter commented 7 years ago

Is it possible to print to the output buffer in pre and post build?

Cxarli commented 7 years ago

Let build call a (ba)sh script which does just that for you.

// .atom-build.json
{
    exec: 'build.sh',
    sh: true
}
# build.sh
#!/bin/bash
echo PRE
COMMAND
ex=$?
echo POST
exit $ex

something equivalent should also be possible on Windows