TODO Hinweis auf reflect-metadata einfügen
Wie kann Marlene in einem anderen Projekt genutzt werden?
Die npm Registry fällt momentan aus, da PASCADA dort keinen berechtigten Account hat. Die Information dort lautet:
To share your code with a limited set of users or teams, you can publish private user-scoped or Org-scoped packages to the npm registry.
...
Note: Before you can publish private user-scoped npm packages, you must sign up for a paid npm user account. Additionally, to publish private Org-scoped packages, you must create an npm user account, then create a paid npm Org.
(Quelle: [Creating and publishing private packages}(https://docs.npmjs.com/creating-and-publishing-private-packages))
Die direkte Verwendung des GitLab-Repos funktioniert zwar mittels
npm i git+https://git@gitlab.pascada.net/libs/angular/marlene#master,
aber dann liegt in den node_modules nur eine Kopie des Projekts - die Library ist dort gar nicht kompiliert.
(Quelle: Install npm module from gitlab private repository)
Momentan bleibt nur der Weg, Marlene einmal zu bauen und eine Zip-Datei zu erzeugen (npm run marlene-package). Diese kann
in einer parallel liegenden Angular App mittels npm install ../../marlene/dist/marlene/pascada-marlene-0.0.1.tgz eingebunden
werden.
(Quelle: The Angular Library Series - Building and Packaging)
This project was generated with Angular CLI version 8.0.1.
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.
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.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.