Skip to content

πŸŽ‰ fbi v4 release

Compare
Choose a tag to compare
@neikvon neikvon released this 17 Sep 12:02
· 91 commits to main since this release

New docs site: https://fbi-js.github.io/docs/pages/4x/

Major changes

Factory

A factory is a collection of templates and commands in a similar application environment.

For example:

We also supply the factory-factory for factory development, and factory-commands for global commands.

We recommend using fbi link and fbi unlink for local factory debugging.

Scaffolding capacity improvement

Scaffolding a project like Yeoman, with custom features and logic.

Sub Template is a very useful new feature for scaffolding. e.g.: Extraction a vue component creation as a sub template of the vue template in factory-web, it is only available when the current project created via the vue template.

Factory version(formerly template version) has been improved through the separation of directories, so you can use different versions of a factory at the same time now. e.g: factory-web, factory-web__1.0, factory-web__2.0, factory-web__2.1.

Store

Factories and project info are stored in fbi global store (~/.fbi). They won't change when install or uninstall fbi or change nodejs version.

Several new commands

  • clean: clean info in store
  • info: show context info
  • link [factories...]: link local factories to the store
  • unlink [factories...]: unlink factories from the store