npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bitfront-case

v1.2.0

Published

Un schematics para generar código según el esquema de desarrollo del área de desenvolupament de la Fundació Bit

Downloads

6

Readme

Schematic para generación de código Angular del departamento de desarrollo de la Fundació Bit

This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.

Unit Testing

npm run test will run the unit tests, using Jasmine as a runner and test framework.

Publishing

To publish, simply do:

npm run dist
cd dist
npm publish

That's it!

Usanto la librería

Uso para generar componentes (donde campanya es el nombre del formulario a generar): listas con filtro: ng g bitfront-case:bfc campanya --module="campanyas" --type="list" --class="component"
formularios: ng g bitfront-case:bfc campanya --module="campanyas" --type="form" --class="component" sublistas: ng g bitfront-case:bfc enlace --parent="campanya" --module="campanyas" --type="sublist" --class="component" En el caso de sublistas campo representa a la sublista del componente campanya que se habrá generado previamente (maestro+detalle).

Uso para generar guard o resolve para formularios ng g bitfront-case:bfc campanya --module="campanyas" --type="form" --class="guard" --version="store-v7" //caso para store ng g bitfront-case:bfc campanya --module="campanyas" --type="form" --class="resolve" //caso para ngrx-data

Uso para generar service entity para el caso ngrx-data ng g bitfront-case:bfc campanya --module="campanyas" --class="service" ng g bitfront-case:bfc enlace --parent="campanya" --module="campanyas" --class="service"

Uso para generar stores: En el parametro class se pueden indicar las siguientes opciones: action, selector, reducer, effect

action-list: ng g bitfront-case:bfc campanya --module="campanyas" --type="list" --class="action" action-form: ng g bitfront-case:bfc campanya --module="campanyas" --type="form" --class="action" action-sublist: ng g bitfront-case:bfc sitio --parent="campanya" --module="campanyas" --type="sublist" --class="action"

Generación de componentes+store: En este caso indicaríamos all como valor en el parámetro class. Ejemplo: ng g bitfront-case:bfc campanya --module="campanyas" --type="list" --class="all" Y se generarían los ficheros del componente de tipo list junto con los ficheros que componen la parte del store (action, effect, reducer, selector)

indicando la versión de store o ngrx-data

Como parámetro adicional se puede indicar --version con tres posible valores: -store-v7 Generará código para funcionar con ngrx/store versión 7 -store-v8 Generará código para funcionar con ngrx/store versión 8 -ngrx-data-v8 Es la opción por defecto y generará código para funcionar con la API ngrx-data versión 8

Info de interés

https://www.npmjs.com/package/@angular-devkit/schematics

changelog

[1.2.0] - 2018-11-29

Changed

  • Se permite generar codigo para ngrx-data

[1.1.0] - 2018-10-30

Changed

  • Se permite generar guards para formularios
  • Se corrigen las action y reducers de form y list para tener el cuenta el payload boolean en la accion SET_FORM_READ_ONLY y SET_LIST_READ_ONLY

[1.0.2] - 2018-10-30

Changed

  • Se ajustan los templates de componentes para aprovecharse dela bitfrontlibrary 6.4.0 que hace desuscripciones automáticas de los observables gracias a takeUntil

[1.0.1] - 2018-10-19

Changed

  • Se detecta que los templates de files no se han publicado

[1.0.0] - 2018-10-19

Added

  • Versión inicial