Store: Schematics

Created on 5 Mar 2018  路  8Comments  路  Source: ngxs/store

According to the docs we should generate three files.

todos.store.ts
todos.store.spec.ts
todos.events.ts

This could also look for the closest module and automatically add the store as a declaration and use it in the forRoot or forFeature functions.

tooling

Most helpful comment

Hi,
I created schematics for ngxs:store, action & selector. I still needs some work, but I'll submit a PR for what I have so far, to open it up for comments and enhancements.
Should I create a new folder for schematics under tools or somewhere else?
Do we still want actions to use the name .events.ts, I see multiple examples that use .action.ts?

/Mike

All 8 comments

If someone wants ot take this on, here is a example of some schematics I wrote for Material - https://github.com/angular/material2/tree/master/schematics

I can take this one /Mike

Hi,
I created schematics for ngxs:store, action & selector. I still needs some work, but I'll submit a PR for what I have so far, to open it up for comments and enhancements.
Should I create a new folder for schematics under tools or somewhere else?
Do we still want actions to use the name .events.ts, I see multiple examples that use .action.ts?

/Mike

Closing and marking for future.

@BeastCode Did you get anywhere with creating this PR?

Hello, I would like to take this issue. Is there any work in progress or should I start from scratch?

@amcdnl posted a link to material's schematics, but it has been moved:
https://github.com/angular/material2/tree/master/src/lib/schematics

This would be a great addition :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

malfusion picture malfusion  路  4Comments

abalad picture abalad  路  5Comments

Newbie012 picture Newbie012  路  4Comments

paulstelzer picture paulstelzer  路  5Comments

ToxicToast picture ToxicToast  路  6Comments