Releases: fbi-js/fbi
v4.0.4
support unknown options for factory's commands
fbi built-in commands do not support unknown options
Example:
# Original command:
fbi build --mode <mode>
# Support execution:
fbi build --mode production --unknown uuu op
# Parsed result:
{ args: { mode: "production" }, unknown: ["--unknown", "uuu", "op"]}
🎉 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
v3.0.8
v3.0.7
v3.0.6
v3.0.5
v3.0.4
v3.0.3
v3.0.2
The first fbi 3 release
Notable Changes
- Template versioning is now supported.
- Supports manual assignment of tasks to run in serial or parallel mode. Default is serial, if the task is synchronous or a Promise is returned.
- You can write tasks in a universal way now, like a normal npm module.
module.exports
or not. - Dropping support for node v7.5 and below.
Here is the documentation for fbi 3.
Here is a new templates collection.
Here is a migration task if you want to migrate from fbi 2 to fbi 3.
Features change
- Added debug mode.
fbi <command>|<task> -D
- Added
use
,set
,reset
commands. - Removed
cat
,backup
,recover
commands. - Replaced
clone
withadd
. - Replaced
pull
withupdate
. - Replaced
add-tmpl
add-task
withadd
. - Replaced
rm-tmpl
rm-task
withremove
.
Internal changes
Now fbi requires the task file directly instead of run it in vm. Avoid these problems. You can still get the current process context with ctx
.