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
oryarn global add fbi
fbi v3.0+
node v7.6+
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:
- Set new template information from old template info. (
package.json/fbi
) - Back up old tasks & options to
fbi.bak
folder. - Copy new tasks & options to
fbi
folder. - Write merged options to
fbi/options.js
. - Add
fbi.bak
to .gitignore which exist. - Install missing dependencies if necessary.
If you have custom options or custom building logic, you need to migrate them manually.
New | Old |
---|---|
fbi-project-vue | fbi-template-vue |
fbi-project-mod | fbi-template-mod |
Stay tuned for more
-
1.2.0 (2017.12.08)
- New feture: Support
fbi-project-mod
(formerlyfbi-template-mod
) - New feture: Change template version if necessary
- New feture: Install missing dependencies if necessary
- Bugs fixed
- New feture: Support
-
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
(formerlyfbi-template-vue
)
- Init. Support