π fbi v4 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:
- factory-web for web application development
- factory-node for node.js application development
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 storeinfo
: show context infolink [factories...]
: link local factories to the storeunlink [factories...]
: unlink factories from the store