Fbi Js Fbi Versions Save

Node.js workflow tool

v4.0.4

3 years ago

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"]}

v4.0.2

3 years ago

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

5 years ago

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

6 years ago

Bug Fixes

  • Fix error when template has no tags.

v3.0.5

6 years ago

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

6 years ago

Bug Fixes

  • Fix update project error if template info no exist.

v3.0.3

6 years ago
  • 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

6 years ago

Bug Fixes

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

v3.0.1

6 years ago

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.

v3.0.6

6 years ago
  • Fix: Error when checking out the latest version.