# odigo

> This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.0-rc.2.

Latest version **0.0.1** (published 2022-10-08) · 0 weekly downloads

## Install

```sh
npm install odigo
pnpm add odigo
yarn add odigo
bun add odigo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-10-08 |
| First published | 2022-10-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 17 |
| Unpacked size | 795.1 KB |
| Known vulnerabilities | 0 (+23 in 4 direct dependencies) |
| Install scripts | no |
| Maintainers | jleyva3001 |

## Links

- npm: https://www.npmjs.com/package/odigo
- npm.io page: https://npm.io/package/odigo

## Dependencies (17)

- [rxjs](https://npm.io/package/rxjs.md) ~6.6.0
- [odigo](https://npm.io/package/odigo.md) ^0.0.0
- [tslib](https://npm.io/package/tslib.md) ^2.0.0
- [jquery](https://npm.io/package/jquery.md) ^3.5.1
- [zone.js](https://npm.io/package/zone.js.md) ~0.10.2
- [http-server](https://npm.io/package/http-server.md) ^14.1.1
- [@angular/core](https://npm.io/package/@angular/core.md) ~11.0.0-rc.2
- [@types/jquery](https://npm.io/package/@types/jquery.md) ^3.5.5
- [@angular/forms](https://npm.io/package/@angular/forms.md) ~11.0.0-rc.2
- [@angular/common](https://npm.io/package/@angular/common.md) ~11.0.0-rc.2
- [@angular/router](https://npm.io/package/@angular/router.md) ~11.0.0-rc.2
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) ~11.0.0-rc.2
- [@angular/elements](https://npm.io/package/@angular/elements.md) ^11.0.7
- [@angular/animations](https://npm.io/package/@angular/animations.md) ~11.0.0-rc.2
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) ~11.0.0-rc.2
- [document-register-element](https://npm.io/package/document-register-element.md) ^1.7.2
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) ~11.0.0-rc.2

## Recent versions

- 0.0.1 (latest) — 2022-10-08
- 0.0.0 — 2022-10-02

## README

# Odigo

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.0-rc.2.

# Pasos para construir un angular web element
ng new odigo
ng add @angular/elements
ng g component analytics-counter --inline-style --inline-template -v Native
ng build --prod --output-hashing none

Se añade en el root concatenate.js que hace el empaquetamiento del web element, una libreria js mas una css, también podría contener assets

npm install fs-extra concat --save-dev

Añadimos el siguiente scrip a package.json:
{
"scripts": {
...
"build:elements": "ng build --prod --output-hashing none && node concatenate.js"
},
}
}

Y por último para realizar el bundle correctamente se ejecuta el siguiente comando

npm run build:elements

# Para lanzar las pruebas con una página html que incorpore el web element y lo utilice, se deben seguir los siguientes pasos
npm install http-server -g
Ejecutar http-server (esto lanza un servidor web en el puerto 8080 y ejecuta el index.html en el root.Este index.html es el que tiene la incoporación del web element)

## 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.

## Build and pack as javascript/css library
npm run build:elements

# Create component web element
ng g component analytics-counter --inline-style --inline-template -v Native

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

---
_Source: https://npm.io/package/odigo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
