Registry / database / generator-loopback-kenx-migration

generator-loopback-kenx-migration

JSON →
library0.1.11jsnpmunverified

A Yeoman generator that creates Knex migration files from LoopBack model definitions. Version 0.1.11, last updated in 2017, unmaintained. It bridges LoopBack's model schema to database migrations via Knex, useful for legacy projects migrating from LoopBack 2.x/3.x. No known alternatives that do exactly this.

npm install generator-loopback-kenx-migration
INSTALL
IMPORT
SIG · GENERATOR-LOOPBACK
G
generator-loopback-kenx-migration
databasejavascriptv0.1.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
npm install -g yo generator-loopback-kenx-migration
This is a CLI generator, not a library import.

Install Yeoman and this generator, then run it in an empty directory to scaffold migrations from existing LoopBack models.

npm install -g yo npm install -g generator-loopback-kenx-migration mkdir my-app && cd my-app yo loopback-kenx-migration
Debug
Known issues
deprecatedPackage is deprecated; no updates since 2017. Use at your own risk with modern Node.js and Knex versions.
fix
Consider migrating to a custom script or alternative migration tool.
affects: all
gotchaRequires LoopBack models to be in a specific format; may not work with LoopBack 4 or newer model definitions.
fix
Ensure your LoopBack models are defined using LoopBack 2.x/3.x conventions.
affects: all
gotchaGenerator expects to be run inside a LoopBack application directory; outputs may be incomplete if models are not detected.
fix
Run from the root of your LoopBack project containing a models directory.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'yeoman-environment'
Missing global Yeoman installation.
fix
Run `npm install -g yo` first.
Error: ENOENT: no such file or directory, scandir '.../models'
Generator cannot find the LoopBack models directory.
fix
Ensure you are running the generator from the root of your LoopBack project.
Upgrade
Version history
0.1.11latest on npm
Audit
Dependencies
yeoman-generatorrequiredrequired to run as a yeoman generator
Agent activity
10 hits · last 30 days
node
8
Resources
generator-loopback-kenx-migration — npm install generator-loopback-kenx-migration · libregistry