feat(plugin-storage-fs): implement the first version of the File System Storage plugin

This commit is contained in:
Joakim Carlstein 2023-11-16 11:07:17 +01:00
parent 46b9104cda
commit 0c49249bd9
6 changed files with 182 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# @emigrate/plugin-storage-fs
A file system storage plugin for Emigrate, suitable for simple migration setups. To support containerized environments, it is recommended to use a database storage plugin instead.
## Installation
Install the plugin in your project, alongside the Emigrate CLI:
```bash
npm install --save-dev @emigrate/cli @emigrate/plugin-storage-fs
```
## Usage
Configure the plugin in your `emigrate.config.js` file:
```js
import storageFs from '@emigrate/plugin-storage-fs';
export default {
directory: 'migrations',
plugins: [storageFs({ filename: '.migrated.json' })],
};
```