GithubHelp home page GithubHelp logo

Comments (15)

sdepold avatar sdepold commented on May 12, 2024

Sounds like a good idea. I pinged you on IRC. Let's discuss it there!

from cli.

sdepold avatar sdepold commented on May 12, 2024

Have you been able to actually fork the repository?

from cli.

maxmalov avatar maxmalov commented on May 12, 2024

Hi, guys! Any updates on this?

from cli.

dkushner avatar dkushner commented on May 12, 2024

None from me, @maxmalov. I've been bogged down at work and also ran into some issues when I first gave it a shot. In my opinion, the best way to go about this would be to separate the actual migration logic (which is already sort of sequestered in the "helpers" directory) into some sort of sequelize-util repo or back into sequelize proper. This repo can then be a dependency of sequelize-cli, gulp-sequelize, grunt-sequelize, etc...

What do you think about this @sdepold? I'd be for rolling this functionality into sequelize proper. Performing migrations and managing models is inseparable from the ORM itself.

from cli.

sdepold avatar sdepold commented on May 12, 2024

Actually we will are currently planning to move the migration logic into a separate package.

from cli.

dkushner avatar dkushner commented on May 12, 2024

@sdepold, perfect! Is there an issue thread somewhere where we can collaborate on the API design for this move? I think Sequelize could benefit from some lightweight conventions, which I think you've already touched on by giving the CLI the ability to stub out models and migrations files a la Rails. I'd love to give my input as someone that's using Sequelize in a soon-to-be production environment.

from cli.

brad-decker avatar brad-decker commented on May 12, 2024

@sdepold Is there a way to use the gulp tasks in our own gulp file currently? This is a great feature and will simplify build processes.

from cli.

sdepold avatar sdepold commented on May 12, 2024

Can you describe the setup. Which tool should use your own gulp file?

from cli.

brad-decker avatar brad-decker commented on May 12, 2024

We want to run seeds on our test database for testing, and to run every time before Travis runs. We have a series of functions that run in order and the seed:create command is one.

For now just using a gulp plugin to run commands on shell.

from cli.

sdepold avatar sdepold commented on May 12, 2024

So the gulpfile itself is here https://github.com/sequelize/cli/blob/master/lib/gulpfile.js

from cli.

sdepold avatar sdepold commented on May 12, 2024

And the task is defined here https://github.com/sequelize/cli/blob/master/lib/tasks/seed.js#L21-L47

from cli.

sdepold avatar sdepold commented on May 12, 2024

You might be able to load the gulpfile and to use the respective task. but I'm not entirely sure how hard that is

from cli.

timini avatar timini commented on May 12, 2024

Has anyone managed to run any of the sequelize tasks from their local gulpfile?

This would be very useful, but at the minute I see is it blocked by the arg creating code in the bin/sequelize file.

from cli.

sdepold avatar sdepold commented on May 12, 2024

AFAIK nothing happened here.

from cli.

sushantdhiman avatar sushantdhiman commented on May 12, 2024

480f3fc

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.