emirotin / mongodb-migrations

A Node.js migration framework for MongoDB
MIT License
258 stars 70 forks source link

Run mongodb migrations using es6 #64

Open KieronWiltshire opened 5 years ago

KieronWiltshire commented 5 years ago

I'd love for the ability to import a config file written in es6. Anyway we can do something like:

./node_modules/.bin/mm --config=./src/config/database.js --compilers js:babel-core/register

It would also be neat if we could specify in the config file what type of migration presets, you already have the coffee script in there, maybe add an es6 equivalent too?

KieronWiltshire commented 5 years ago

https://github.com/emirotin/mongodb-migrations/issues/65