feat(plugin-storage-fs): implement the first version of the File System Storage plugin
This commit is contained in:
parent
46b9104cda
commit
0c49249bd9
6 changed files with 182 additions and 0 deletions
24
packages/plugin-storage-fs/README.md
Normal file
24
packages/plugin-storage-fs/README.md
Normal 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' })],
|
||||
};
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue