Created
August 31, 2018 14:40
-
-
Save hmil/0254262e73deafbf6c402384fd58badf to your computer and use it in GitHub Desktop.
Sample typed makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import build from 'awesome-build-system' | |
compiled = build.createTarget('/dist/app.js', () => { | |
build.exec('tsc -p tsconfig.json') | |
}) | |
packaged = build.createTarget('/dist/package.tar.gz', [ compiled ], () => { | |
build.exec('npm pack') | |
build.exec(`cp artifact.tar.gz ${packaged}`) | |
}) | |
deploy = build.createVirtualTarget([ packaged ], () => { | |
build.exec('npm publish') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment