0.0.0 • Published 2 years ago

opsyscap-core v0.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

OpsyscapCore

The @rkf-emc/opsyscap-core library contains components and services that are shared between the Opscap/Syscap tiles.

Building

npm run build

Building watch/debug

npm run watch

Linking to another project for debug

You can debug this project using the following steps:

  1. npm run watch
  2. cd dist/rkf-emc/opsyscap-core
  3. npm link .
  4. execute the following steps in an application that uses this library
    1. cd to the directory of the application
    2. ensure the angular.json file contains the following in the development configuration section for the @angular-devkit/build-angular:browser builder: "sourceMap": { "hidden": false, "scripts": true, "styles": true, "vendor": true }, "preserveSymlinks": true
    3. npm link @rkf-emc/opsyscap-core
    4. npx ng serve (or whatever debug build command you use for the application)

publising the library

login to nexus

If you haven't already configured your login for nexus, run the following command

npm login --scope=@rkf-emc --registry=https://nexus.botanybay.cloud/repository/rkf-npm-hosted/

Build the library

npm run build

Publish to nexus

Notice that the projects/rkf-emc/opsyscap-core/package.json has its publishConfig set to the nexus repository to which this library should be published. This is carried over to the dist/rkf-emc/opsyscap-core/package.json upon build. If this is not configured properly, update the configuration and rebuild the library.

  1. cd dist/rkf-emc/opsyscap-core
  2. npm publish

Info from Generated docs

This project was generated with Angular CLI version 12.1.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.