cli
cli copied to clipboard
3.x
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
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]
Not merging until 2.0 dev phase is done.