0.3.0-alpha • Published 8 months ago

knexup v0.3.0-alpha

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

knexup

Get up and running with knex.js in typescript project.

Install

npm i -g knexup

Commands Overview

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  init            Creates a knexup config file.
  help [command]  display help for command

init

knexup init
Initialize the project - dependencies installation, etc. This will:

  1. Install dependencies - knex, knexhelpers, objection, tsx - and a db client library of choice.
  2. Setup knexfile.ts in the specified knex directory.
  3. Setup npm scripts for running knex migration and seed actions.
  4. Generate other helper files.