Gathering detailed insights and metrics for @andes/plex
Gathering detailed insights and metrics for @andes/plex
Gathering detailed insights and metrics for @andes/plex
Gathering detailed insights and metrics for @andes/plex
npm install @andes/plex
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1 Stars
1,042 Commits
2 Forks
16 Watching
22 Branches
18 Contributors
Updated on 04 Nov 2024
TypeScript (54.37%)
HTML (25.35%)
SCSS (14.67%)
JavaScript (4.8%)
CSS (0.81%)
Cumulative downloads
Total Downloads
Last day
65%
33
Compared to previous day
Last week
24.8%
201
Compared to previous week
Last month
-2%
877
Compared to previous month
Last year
-49.9%
11,756
Compared to previous year
30
42
Plex es un conjunto de componentes de UI/UX para el proyecto ANDES.
Crear una nueva aplicación con angular-cli
ng new my-app
cd my-app
Descargar desde npm
npm install @andes/plex --save
Crear un nuevo archivo src/styles.sass
y editarlo para vincular al archivo .sass
de Plex
1@import '~andes-plex/src/lib/styles.sass';
Registrar en angular-cli.json
los siguiente archivos:
1... 2"styles": [ 3 "styles.sass", 4], 5"scripts": [ 6 "../node_modules/intro.js/intro.js" 7], 8...
Modificar app.component.html
con el siguiente contenido:
1<plex-app> 2</plex-app>
Crear un componente home.component.ts
con el siguiente contenido:
1import { Component } from '@angular/core'; 2 3@Component({ 4 template: 'Hello World', 5}) 6export class HomeComponent { 7}
Crear el archivo app.routing.ts
y registrar el componente:
1import { Routes, RouterModule } from '@angular/router'; 2import { ModuleWithProviders } from '@angular/core'; 3import { HomeComponent } from './home.component'; 4 5const appRoutes: Routes = [ 6 { path: '**', component: HomeComponent } 7]; 8 9export const appRoutingProviders: any[] = []; 10export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
En app.module.ts
importar PlexModule
y registrar los routings y el servicio Plex
:
1import { BrowserModule } from '@angular/platform-browser'; 2import { NgModule } from '@angular/core'; 3import { FormsModule } from '@angular/forms'; 4import { HttpModule } from '@angular/http'; 5import { Plex, PlexModule } from '@andes/plex'; 6import { routing, appRoutingProviders } from './app.routing'; 7 8// Components 9import { AppComponent } from './app.component'; 10import { HomeComponent } from './home.component'; 11 12@NgModule({ 13 declarations: [ 14 AppComponent, 15 HomeComponent 16 ], 17 imports: [ 18 BrowserModule, 19 FormsModule, 20 HttpModule, 21 PlexModule, 22 routing 23 ], 24 providers: [ 25 Plex, 26 appRoutingProviders 27 ], 28 bootstrap: [AppComponent] 29}) 30export class AppModule { } 31
Correr la aplicacion ng serve
ng serve
Navegar hasta http://localhost:4200
La siguiente secuencia de pasos permite publicar la librerÃa en NPM:
"version": "1.1.17"
git tag 1.1.17
npm login
(usando las credenciales de Andes)npm publish
No vulnerabilities found.
Reason
14 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
113 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More