May 2019
Beginner to intermediate
456 pages
10h 37m
English
This recipe is a continuation of the previous Publishing NPM package to Artifacts recipe. I recommend that you read it before continuing if you have not already done so.
To demonstrate the upstream npm package, I installed the colors package into our original module using the npm install colors --save command. This created an external dependency in our node module so the Artifacts would cache this external package into our feed.
I also changed the code in our index.js file so that we can use the colors module and print the console text in blue:
var colors = require("colors")exports.printAzureDevOps = function () { console.log("Azure DevOps Server 2019".blue)}
I have highlighted the changed text in bold.
Commit the changes and ...
Read now
Unlock full access