aec-library v0.0.0
Shared
This project was generated with Angular CLI version 8.3.29.
Getting Started
This library is available on Github Packages. This section will help you setup your node project to use this library as a dependency.
A Personal Access Token (PAT) with read:packages
access is required to download them. You can manage or create it for your GHE user here.
Add the following lines to your .npmrc
(in your home directory or at the root of your project), replacing the <user_PAT>
:
@bcn-robotics:registry=https://npm.github.azc.ext.hp.com/
//npm.github.azc.ext.hp.com/:_authToken=<user_PAT>
Or set to your npm environment:
> npm config set @bcn-robotics:registry https://npm.github.azc.ext.hp.com/
> npm config set //npm.github.azc.ext.hp.com/:_authToken <user_PAT>
⚠ WARNING Attention to the fact that npm only accepts one registry, so if you are migrating from Nexus you must replace the old
@bcn-robotics:registry
configuration with the one above.
Finally, you cna add the dependency in your package.json
:
npm install @bcn-robotics/aec-shared
... or if you want to use the same name as before in Nexus, use an NPM alias:
{
"dependencies": {
"aec-library": "npm:@bcn-robotics/aec-shared@<version>"
}
}
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. Use the --prod
flag for a production build.
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 Protractor.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
How to edit or create a new icon
- Import the file projects\aec-library\assets\fonts\icoomone.json into IcoMoon.
- Accept the modal to load all the settings stored in the file if it appears..
- If you need to create a new icon add the svg icon into projects\aec-library\assets\fonts\aec-icone-fonts folder.
- Make your changes to the font or add a new icon.
- Generate the font files.
- Move the exported .zip file to any directory in the shared folder.
- Run the "npm run fonts".
5 months ago