cli icon indicating copy to clipboard operation
cli copied to clipboard

3.x

Open SychO9 opened this issue 10 months ago • 1 comments

Changes Part of the Flarum 2.0 Roadmap. Prepares the CLI for usage with Flarum 2.0, and adds a variety of features/new boilerplate generation commands.

  • Adds proper JS extender Generation (using babel parser).
  • Adds a number of backend & frontend stub/extender generation commands (see commits).
  • Adds locale generation command, though primarily used internally to auto fill placeholder stub locale strings.
  • Improves the extension skeleton init experience.
  • Fixes some issues in the process (see commits).
  • Adds the ability to use most commands in no interaction mode, for quicker generation: fl make model Camel -n

Screenshot from 2024-03-29 14-19-59

New commands

  • flarum-cli make model [className] [PATH] [-n|--no-interaction]
  • flarum-cli make notification [className] [PATH] [-n|--no-interaction]
  • flarum-cli make post-type [className] [PATH] [-n|--no-interaction]
  • flarum-cli make locale [key] [value] [PATH] [-n|--no-interaction]
  • flarum-cli make backend api-resource [PATH] [-n|--no-interaction]
  • flarum-cli make backend filter [className] [PATH] [-n|--no-interaction]
  • flarum-cli make backend notification-blueprint [className] [PATH] [-n|--no-interaction]
  • flarum-cli make backend notification-driver [className] [PATH] [-n|--no-interaction]
  • flarum-cli make backend post-type [className] [PATH] [-n|--no-interaction]
  • flarum-cli make backend mail-driver [className] [PATH] [-n|--no-interaction]
  • flarum-cli make frontend forum-page [className] [routeName] [routePath] [PATH] [-n|--no-interaction]
  • flarum-cli make frontend gambit [PATH] [-n|--no-interaction]
  • flarum-cli make frontend notification [className] [PATH] [-n|--no-interaction]
  • flarum-cli make frontend post-type [className] [PATH] [-n|--no-interaction]

SychO9 avatar Mar 30 '24 10:03 SychO9

Not merging until 2.0 dev phase is done.

SychO9 avatar Mar 30 '24 11:03 SychO9