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

tria-schematics-angular

v1.0.9

Published

Tria Software Schematics Angular

Downloads

38

Readme

Tria Schematics Angular

Documentação schematics

Este documento fornece instruções sobre como configurar e utilizar os schematics criados para o seu projeto Angular.

Criando novo projeto no Padrão Tria Software

Criando novo projeto

Para criar um novo projeto, utilize o seguinte comando:

ng new --create-application false <nome-do-projeto>

ou

ng n --create-application false <nome-do-projeto>

Instalação dos Schematics Tria

Utilize o seguinte comando para navegar para pasta do projeto:

cd <nome-do-projeto>

E instale os schematics no projeto, utilize o seguinte comando:

npm install tria-schematics-angular --save

Configurar arquivos padrões do projeto

Para configurar os arquivos padrões no projeto, utilize o seguinte comando:

ng generate tria-schematics-angular:default-project .

ou

ng g tria-schematics-angular:default-project .

Atualizar as dependências do arquivo

Para atualizar as dependências do arquivo packge.json do projeto, utilize o seguinte comando:

ng g tria-schematics-angular:update-dependencies

ou

ng generate tria-schematics-angular:update-dependencies

Schematics Disponíveis

Abaixo está a listagem dos schematics disponíveis:

  1. component - Cria o componente principal/padrão.
  2. filter - Cria um componente de filtro.
  3. new-edit - Cria um componente de criação/edição.
  4. table-grid - Cria um componente de grid de tabela.
  5. model - Cria os DTO e Filters para utilização no projeto.
  6. service - Cria serviços no padrão do projeto.
  7. create-components - Cria todos os componentes.
  8. default-project - Cria os arquivos padrões do projeto.
  9. update-dependencies - Atualizar as dependências do arquivo packge.json do projeto.

Utilização dos Schematics

Para executar um schematic, utilize o seguinte comando padrão:

ng generate tria-schematics-angular:<nome-do-schematic> <nome-do-modulo-ou-component>

ou

ng g tria-schematics-angular:<nome-do-schematic> <nome-do-modulo-ou-component>

Exemplo

Para criar todos os componets de um módulo chamado novo-modulo, utilize o comando abaixo:

ng generate tria-schematics-angular:create-components <novo-modulo>

ou

ng g tria-schematics-angular:create-components <novo-modulo>

Certifique-se de substituir <nome-do-schematic> pelo nome do schematic desejado e <nome-do-modulo-ou-component> pelo nome do módulo/componente que você deseja criar.

Estrutura de Diretórios

Abaixo está a árvore de diretórios gerada pelo schematic create-components:

src/
└──app/
  └──pages/
    └──novo-modulo/
      ├──model/
      │  ├──novo-modulo-dto.ts
      │  ├──novo-modulo-filter.ts
      │  └──novo-modulo-list.ts
      ├──novo-modulo-filter/
      │  ├──novo-modulo-filter.component.html
      │  ├──novo-modulo-filter.component.scss
      │  └──novo-modulo-filter.component.ts
      ├──novo-modulo-new-edit/
      │  ├──novo-modulo-new-edit.component.html
      │  ├──novo-modulo-new-edit.component.scss
      │  └──novo-modulo-new-edit.component.ts
      ├──novo-modulo-table-grid/
      │  ├──novo-modulo-table-grid.component.html
      │  ├──novo-modulo-table-grid.component.scss
      │  └──novo-modulo-table-grid.component.ts
      ├──service/
      │  └──novo-modulo.service.ts
      ├──novo-modulo-filter.component.html
      ├──novo-modulo-filter.component.scss
      └──novo-modulo-filter.component.ts