Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leandro-mancini/angular-schematics
https://github.com/leandro-mancini/angular-schematics
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/leandro-mancini/angular-schematics
- Owner: leandro-mancini
- Created: 2019-10-08T00:18:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:28:46.000Z (almost 2 years ago)
- Last Synced: 2023-02-26T06:01:39.410Z (over 1 year ago)
- Language: TypeScript
- Size: 1.6 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular Schematics
## Começando
Baixe o repositório:
```bash
git clone https://github.com/leandro-mancini/angular-schematics.git
```1. Vá para a pasta do projeto `./my-schematics` e instale as dependências:
```bash
npm install
```2. Compilar os arquivos typescript:
```bash
npm run build
```3. E em seguida executá-lo:
```bash
schematics .:my-schematics --name=hello
```### Adicionando o Schematic ao seu projeto
Navegue para a pasta do projeto `./my-project` adicione o Schematic via npm link:
```bash
cd my-projectnpm link ../my-schematics
```Feito isso, basta executar o schematic via Angular CLI:
```bash
ng g my-schematics:my-schematics --name=hello
```Pronto! O arquivo hello foi criado na raiz do seu projeto. Pode conferir o conteúdo.