Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.x #41

Closed
wants to merge 33 commits into from
Closed

3.x #41

wants to merge 33 commits into from

Conversation

SychO9
Copy link
Member

@SychO9 SychO9 commented Mar 30, 2024

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 SychO9 marked this pull request as draft March 30, 2024 10:34
@SychO9
Copy link
Member Author

SychO9 commented Mar 30, 2024

Not merging until 2.0 dev phase is done.

@SychO9 SychO9 marked this pull request as ready for review March 30, 2024 11:05
Copy link
Member

@askvortsov1 askvortsov1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't realize immediately that the diff was almost entirely vendor changes, got a bit scared lmao

@SychO9
Copy link
Member Author

SychO9 commented Nov 22, 2024

main has been branched into a 2.x (supports flarum 1.x) and this branch has now been made the main branch 3.x (supports flarum 2.0)

no need for merging

@SychO9 SychO9 closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants