opsyscap-core v0.0.0
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:
npm run watch
cd dist/rkf-emc/opsyscap-core
npm link .
- execute the following steps in an application that uses this library
- cd to the directory of the application
- 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
npm link @rkf-emc/opsyscap-core
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.
cd dist/rkf-emc/opsyscap-core
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.
2 years ago