Last active
January 18, 2018 22:57
-
-
Save izifortune/784f9343dc6cfd5d467ffb460264e2c2 to your computer and use it in GitHub Desktop.
nrwl libs build
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
const { getAffectedLibs, pexec } = require("./utils"); | |
const buildLibs = async (apps, rest) => { | |
if (apps.length > 0) { | |
console.log("Building " + apps.join(', ')); | |
for (app of apps) { | |
await pexec("./node_modules/.bin/ng-packagr -p libs/" + app + "/package.json", { stdio: [0, 1, 2]}); | |
} | |
} | |
else { | |
console.log('No apps to build'); | |
} | |
} | |
(async () => { | |
try { | |
const libs = getAffectedLibs(); | |
await buildLibs(libs, {}); | |
} catch (e) { | |
console.error(e); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment