Skip to content

fbi-templates/fbi-task-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbi-task-migrate

Migrate a fbi 2.x project to 3.0

This is a fbi task. If you haven't installed fbi yet, use the following command to install.

$ npm i -g fbi or yarn global add fbi

中文 README

Requirements

  • fbi v3.0+
  • node v7.6+

Usage

Step 1 Add or update target new template.

# Add:
$ fbi add https://github.com/fbi-templates/fbi-project-vue.git

# Update:
$ fbi up vue

Step 2 Add or update migrate task.

# Add:
$ fbi add https://github.com/fbi-templates/fbi-task-migrate.git

# Update:
$ fbi up migrate

Step 3 Migration.

$ cd path/to/project-via-fbiv2
$ fbi migrate

This will do:

  1. Set new template information from old template info. (package.json/fbi)
  2. Back up old tasks & options to fbi.bak folder.
  3. Copy new tasks & options to fbi folder.
  4. Write merged options to fbi/options.js.
  5. Add fbi.bak to .gitignore which exist.
  6. Install missing dependencies if necessary.

If you have custom options or custom building logic, you need to migrate them manually.

Supported templates

New Old
fbi-project-vue fbi-template-vue
fbi-project-mod fbi-template-mod

Stay tuned for more

More

License

MIT

Changelog

  • 1.2.0 (2017.12.08)

    • New feture: Support fbi-project-mod(formerly fbi-template-mod)
    • New feture: Change template version if necessary
    • New feture: Install missing dependencies if necessary
    • Bugs fixed
  • 1.1.0 (2017.12.06)

    • New feture: install missing dependencies automatically
  • 1.0.1 (2017.12.06)

    • Fix template path
  • 1.0.0 (2017.12.06)

    • Init. Support fbi-project-vue(formerly fbi-template-vue)