Skip to content
Snippets Groups Projects

Fpo/schematics

Closed Florent Poittevin requested to merge fpo/schematics into master
4 unresolved threads

Solidify Schematics Moved on Solidify-Frontend

Edited by Florent Poittevin

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
37
38
39 ### Manual Publishing (when no nexus...)
40
41 ```bash
42 npm run tgz
43 ```
44
45 This commands should generate the file `schematics-solidify-1.0.0.tgz` at the root of the project.
46 Run the following command on an Angular CLI project (adapt the path to the file `schematics-solidify-1.0.0.tgz`) :
47
48 npm i --no-save path/to/DLCM-Solidify-Tools/solidify-schematics/schematics-solidify-1.0.0.tgz
49
50 ### Usage
51
52 Now, on the CLI project you can run the following command depending of the king of component you want to generate :
  • 1 # Outputs
  • 1 import {Component, OnInit, ChangeDetectionStrategy, Inject} from '@angular/core';
    2 import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material';
    3 import {Store} from '@ngxs/store';
    4 import {BaseDirective} from '@app/shared/directives/base.directive';
  • Je ai pour l'instant juste fait une mini review du code dans Gitlab, je n'ai pas encore testé le schematics dans un de nos projet. Je ferai ça la semaine prochaine (je fais le pont). Sinon, c'est vraiment chouette, cela va nous permettre de gagner du temps et en continuant à faire évoluer cette librairie, on pourra même créer des schematics pour d'autres aspect comme NGXS, formulaire, etc.

    Good job !!

    • En effet on pourra intégrer d'autres aspects :) Pour NGXS il y a un schematics déjà existant https://github.com/ngxs/schematics Il faudra voir si cela est nécessaire de le rendre aussi configurable que la CLI angular (choix css/scss/sass, detection change onPush ou pas, etc...). Pour l'instant c'est en dure... N'hésite pas à modifier la merge request car dans mon cas je fais le viaduc !

    • Pour les schematics NGXS je pensais à quelque chose d'un peu plus complet, qui nous permettrait par exemple de générer automatiquement les action Get/Success/Failed et déjà mieux configuré que ceux générés par les schematics de NGXS qui sont assez basiques. Mais cela signifie qu'il faudra davantage creuser dans le fonctionnement des schematics, car il faudra cette fois pouvoir ajouter des informations à un fichier existant. A voir.

      Edited by Nicolas.Forney
    • Please register or sign in to reply
  • added 1 commit

    Compare with previous version

  • added 1 commit

    • bfa285f8 - Remove from gitignore .d.ts file

    Compare with previous version

  • added 1 commit

    • e3bb5ffd - Remove from gitignore .d.ts file

    Compare with previous version

  • Florent Poittevin changed the description

    changed the description

  • Please register or sign in to reply
    Loading