Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

lemonde/grunt-knex-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-knex-schema

Build Status Dependency Status devDependency Status Coverage Status

Grunt knex-schema tasks.

Install

npm install grunt-knex-schema

Usage

grunt knexschema:sync
grunt knexschema:populate
grunt knexschema:reset
grunt knexschema:drop

Gruntfile

Gruntfile options:

module.exports = function(grunt) {
  grunt.initConfig({
    knexschema: {
      database: {
        client: 'sqlite',
        connection: {
          filename: ':memory:'
        }
      },
      paths: ['path-to-schemas/*.js']
    }
  });

  grunt.loadNpmTasks('grunt-knex-schema');
};

License

MIT