Skip to content

Releases: fbi-js/fbi

v4.0.4

21 Sep 07:34
Compare
Choose a tag to compare

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

17 Sep 12:02
Compare
Choose a tag to compare

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

v3.0.8

11 Jun 07:25
Compare
Choose a tag to compare

Features

template: install dependencies automatically after template updated (fbi up [template name])

Bug Fixes

fix ExperimentalWarning: The fs.promises API is experimental

v3.0.7

11 Dec 16:26
Compare
Choose a tag to compare

Bug Fixes

  • Fix error when template has no tags.

v3.0.6

11 Dec 05:58
Compare
Choose a tag to compare
  • Fix: Error when checking out the latest version.

v3.0.5

11 Dec 15:38
Compare
Choose a tag to compare

Bug Fixes

  • Fix utils.assign bugs.
  • Fix styles.

Improvements

  • Add .editorconfig.
  • Add version.getValidVersion method.
  • Add more tests, improve tests performance.
  • Update store after version change.
  • Check if template exist before removing it.

v3.0.4

11 Dec 15:34
Compare
Choose a tag to compare

Bug Fixes

  • Fix update project error if template info no exist.

v3.0.3

11 Dec 15:31
Compare
Choose a tag to compare
  • Template: Revise items in package.json when initializing a project.
  • Fixs: Fix style in test file.
  • Travis: Change to master branch.
  • Docs: Add migration link.

v3.0.2

11 Dec 15:24
Compare
Choose a tag to compare

Bug Fixes

  • Fix error when install modules to specific directory.
  • Fix readme typo.

The first fbi 3 release

11 Dec 15:16
Compare
Choose a tag to compare

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 with add.
  • Replaced pull with update.
  • Replaced add-tmpl add-task with add.
  • Replaced rm-tmpl rm-task with remove.

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.