-
node v8.9.1+ (required by angular-cli 6+)
-
npm 5.5.1
This angular library is built using angular-cli's workspace.
As with workspace we got 2 package.json
files:
-
the root one is used to build the demo app and contains all dev dependencies used to build.
-
the library one used as template for publishing the lib to npmjs.org
The main application is the demo app. The library source is under [/projects/fabric8-analytics-dependency-editor](/projects/fabric8-analytics-dependency-editor).
To target PROD env in your demo app, go to src/environments/environment.ts
export const environment = {
production: false,
ANALYTICS_RECOMMENDER_URL: 'https://recommender.api.openshift.io/',
ANALYTICS_LICENSE_URL: 'https://license-analysis.api.openshift.io/',
OSIO_AUTH_TOKEN: 'OSIO_AUTH_TOKEN'
};
To get OSIO-TOKEN follow below steps :
-
Login to OSIO
-
Go to profile view
-
Edit Profile
-
Copy token
-
Set env variable
export OSIO-TOKEN = "token fetched in step 4"
$ npm run build
The created library will be placed in dist
.
Important
|
You shouldn’t ever publish the build manually, instead you should let the CD pipeline do a semantic release. |
The development guide is part of the contributors' instructions. Please check it out in order to contribute to this project.