Skip to content

Instantly share code, notes, and snippets.

@hmil
Created August 31, 2018 14:40
Show Gist options
  • Save hmil/0254262e73deafbf6c402384fd58badf to your computer and use it in GitHub Desktop.
Save hmil/0254262e73deafbf6c402384fd58badf to your computer and use it in GitHub Desktop.
Sample typed makefile
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