Angular-calendar: Schematics!

Created on 20 Feb 2019  路  3Comments  路  Source: mattlewis92/angular-calendar

It would be super cool if you could do

ng add angular-calendar

and then it would:

  • prompt if you want to use date-fns or moment
  • install the required dependencies (angular-calendar, date-fns or moment)
  • add the calendar module (to the root module or one passed as --module=module)
  • add the global style sheet to angular.json

Resources:
https://brianflove.com/2018/12/15/ng-add-schematic/
https://github.com/ng-bootstrap/schematics

enhancement has PR

All 3 comments

--module=module to change which module it appends to (same as the ng g component...!)

I will work on this

@billyjov thanks, that would be awesome! I already setup the boilerplate the other day on this branch so you can work off there: https://github.com/mattlewis92/angular-calendar/commits/schematics

and then for each of the actions it needs to do, can be copied from here: https://brianflove.com/2018/12/15/ng-add-schematic/

Let me know if you need any other guidance! 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PrasannaKolla picture PrasannaKolla  路  4Comments

fmoessle picture fmoessle  路  5Comments

agilob picture agilob  路  3Comments

AstRonin picture AstRonin  路  4Comments

sylvain-fr picture sylvain-fr  路  3Comments