Created
August 31, 2018 14:40
Revisions
-
hmil created this gist
Aug 31, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ 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') })