angular-schematics Questions

1

I have ng schematics template __name@dasherize__.component.html with content : <% for (let row of getComponents().rows) { %> <div class="row"> <% for (let field of row.fields) { %...
Scotsman asked 6/11, 2019 at 12:3

4

Solved

I am trying to learn angular. I installed the lastest version and created an app called test using ng new test command. Then I opened the app in visual studio code. In the terminal I entered the fo...

33

Solved

Is there a way to get rid of the spec.ts file in Angular 2+, whenever I create a new component. I know this is for testing purpose but what if I don't need it. May be there is some setting to disa...

5

I'm trying to switch an Angular project from TSLint to ESLint, following the instructions in angular-eslint Github repo. I ran ng add @angular-eslint/schematics which added the following dependenci...
Genna asked 19/4, 2021 at 15:36

4

Solved

When setting up my schematics I see that I can prompt for any of the following types String | Boolean | Array | Number | Integer | Null | Object. I am trying to set up a schematic that prompts the...
Kendyl asked 17/4, 2019 at 19:56

0

I wrote a few generators that were working until I did a recent migration. I was importing and using Nrwl AST utils using import paths like: import { addImportToModule } from '@nrwl/angular/src/uti...
Depression asked 31/3, 2022 at 3:15

1

I'm working on creating my own schematics. This schematics will be responsible for creating a component (container) with some code. Template of this component will contain a few other components. O...
Juvenilia asked 19/6, 2019 at 14:18

1

Solved

I would like run end-to-end (e2e) browser tests for my Angular application using Playwright. However, as of November 2021, I have not been able to find an Angular Schematic for Playwright. For exam...

2

Solved

When I create Angular application, I am using CLI for generating components. After certain time of developing app I have style file for every component but major part of them are empty. When I ch...
Selectee asked 2/4, 2019 at 6:46

5

Solved

I want to write a Rule that overwrites a file every time. In the following and have MergeStrategy set to Overwrite: collection.json { "$schema": "../node_modules/@angular-devkit/schematics/colle...
Seidel asked 23/2, 2018 at 22:31

2

Solved

I'm developing a schematic which produces some files. I'd like to have new files in current directory, i.e. My project root is /src/app. When I am in folder /src/app/features/f1, and type ng g my...
Wristlet asked 2/9, 2019 at 7:27

3

Let's say we have an existing angular component including menu.component.html : <ul> <li><a href="/home">home</a></li> <li><a href="/about">about</a&...
Titular asked 16/7, 2018 at 15:31

5

Solved

I'd like to use the angular-cli to generate a new workspace The only way to do this at the moment is to run: ng new asdf cd asdf ng g application whatever but then all of the src/ files remain ...
Bleeder asked 28/6, 2018 at 20:12

0

I've been creating a custom Angular Schematics following this article: https://medium.com/@tomastrajan/total-guide-to-custom-angular-schematics-5c50cf90cdb4 Now I'm trying to find out how to modif...
Attemper asked 3/12, 2019 at 17:2

1

I'm learning Angular Schematics and have some problems regarding array type input. When I am prompted to enter a value and press enter the value disappears. What is the correct way of entering an...
Accounting asked 8/4, 2019 at 6:31

4

I've been investigating the nrwl extensions and they look great. However, when I'm following their tutorial for Workspace Specific Schematics, the last step doesn't show me the command to run. Can ...
Halfbeak asked 31/7, 2018 at 10:2

1

Solved

I'm using Angular with Nativescript Schematics. I have installed the nativescript-ui-sidedrawer. When i run tns run ios --bundle The native version is compiled and deployed to the device but whe...
Unfrequented asked 21/10, 2018 at 13:50

1

It look like all tutorials show how config it in the old angular.cli.json format. "defaults": { "styleExt": "css", "component": { "inlineStyle":true, "inlineTemplate":true } } but not in th...
Defy asked 3/8, 2018 at 11:0

2

Solved

I'm trying to create custom schematics for angular cli. So far I have figured out that "collection" has to be compiled, cli cannot read typescript. Which means you can not just clone https://github...
Gibbous asked 26/9, 2017 at 14:50
1

© 2022 - 2024 — McMap. All rights reserved.