@emigrate/plugin-generate-js
TypeScript icon, indicating that this package has built-in type declarations

0.3.6 • Public • Published

@emigrate/plugin-generate-js

This package contains an Emigrate plugin for generating migration files using JavaScript as a language.

Usage

Install the package:

npm install @emigrate/cli @emigrate/plugin-generate-js
# or
pnpm add @emigrate/cli @emigrate/plugin-generate-js
# or
yarn add @emigrate/cli @emigrate/plugin-generate-js
# or
bun add @emigrate/cli @emigrate/plugin-generate-js

Use the plugin with the emigrate new command:

emigrate new --plugin generate-js create some fancy table

Or add it to your emigrate.config.js file:

import generateJs from '@emigrate/plugin-generate-js';

export default {
  directory: 'migrations',
  plugins: [generateJs],
};

Package Sidebar

Install

npm i @emigrate/plugin-generate-js

Weekly Downloads

3

Version

0.3.6

License

MIT

Unpacked Size

30.3 kB

Total Files

8

Last publish

Collaborators

  • joakimbeng