Skip to content

Instantly share code, notes, and snippets.

@izifortune
Last active January 18, 2018 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save izifortune/784f9343dc6cfd5d467ffb460264e2c2 to your computer and use it in GitHub Desktop.
Save izifortune/784f9343dc6cfd5d467ffb460264e2c2 to your computer and use it in GitHub Desktop.
nrwl libs build
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