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

dian-schematics

v1.0.13

Published

A blank schematics

Downloads

37

Readme

DianSchematics

Esta librería contiene los schematics para adicionar la configuración inicial de los proyectos, generación de artefactos usando Clean Architecture, generación y configuración de Workers y generación de funciones aisladas usando Angular 17+.

Version

|VERSION |DESCRIPCIÓN | |----------------|------------------------------------| |1.0.0|Versión inicial contiene los schematics para generar la configuración inicial, funciones aisladas, generación de workers y creación de plantillas usando clean architecture | |1.0.1|Se corrige generación de archivo eslint.config.js | |1.0.2|Se corrige confirmación de dependencias de instalación | |1.0.3|Se corrigen templates de acuerdo a configuraciones de eslint |

Install

npm i dian-schematics --save-dev

Schematics list

|SCHEMATIC |DESCRIPCIÓN | |---------------|------------------------------------| |dian-init |Agrega la configuración inicial al proyecto, instalando las depedencias necesarias como eslint y prettier | |dian-caflow |Genera los archivos y carpetas para un componente siguiendo la estructura de Clean Architecture | |dian-if |Genera los archivos y directorios para crear funciones aisladas | |dian-w |Genera los archivos y directorios para configurar un worker en el proyecto |

Use

Para usar un schematic siga la siguiente estructura:

ng g dian-schematics:[schematic]

Ejemplo: ng g dian-schematics:dian-init

Getting Started With Schematics

Welcome to the Schematic Project DIAN! This project is a collection of schematics designed to automate and streamline your development process.

Installation

To get started, you'll need to install the Schematics CLI and Project Builder CLI. You can do this via npm:

npm i -g @pbuilder/cli
npm install -g @angular-devkit/schematics-cli @pbuilder/cli

Creating a Schematic

To create a new schematic library project, run:

builder new dian-schematics [autor]

Show list schematic of package

To show list schematic of angular

builder info @schematics/angular //Show list shematic
builder info @schematics/angular [name_schematic] //Show specific shematic

Generate a schematic

builder g @pbuilder/sm sc --name="my-schematic"

This command will set up the project structure for your schematics.

Executing Schematics

Testing Locally

Using PBuilder CLI

Is necessary compile first

npm run build

After execute

builder exec ./dist/collection.json [name_schematic]

Using Schematics CLI

To test your schematics locally using the Schematics CLI, run:

schematics [dist-collection-path]:[schematic-name] [options]

Using Verdaccio

Verdaccio is a lightweight private npm proxy registry that you can use to publish and test your schematics locally. Make sure you have Verdaccio installed and running. To publish your schematic to Verdaccio, add the following npm script to your package.json:

    "scripts": {
    "publish:verdaccio": "npm publish --registry http://localhost:4873"
    }

To publish and test your schematic:

  1. Start Verdaccio:
npx verdaccio
  1. Publish your schematic to Verdaccio:
npm run publish:verdaccio
  1. Install and execute your schematic from Verdaccio:
npm install my-schematic --registry http://localhost:4873
schematics my-schematic:my-rule

Documentation

For more detailed instructions and options, visit the (Schematics Documentation)[https://schematics.pbuilder.dev/installation/].

Contributing

We welcome contributions! Please read our (Contributing)[/CONTRIBUTING.md] Guidelines for details on our code of conduct and the process for submitting pull requests.