Open anderson-marques opened 4 years ago
Furthermore I'd like to have a configuration file to specify default directories and space ID.
// storyblok.config.js
module.exports = {
space: 123,
migrationsFolder: './cms/migrations',
componentsFolder: './cms/components',
};
Any updates on this? 🙌
I see there is no possiblity to change ./migrations
folder location: https://github.com/storyblok/storyblok-cli/blob/master/src/tasks/migrations/utils.js#L132 even though the internal util is capable to do that.
I don't get why I should use this incomplete cli instead of the old migrations.
@ademarCardoso, could you please look into it! 🙏
The feature would affect: (check one with "x")
Is your feature request related to a problem? Please describe. We're using the
storyblok run-migration
command. However, it requires a strict folder convention and script file name.Describe the solution you'd like I would like to be able to pass the full path of my migration script.
Example:
That way, we would be more flexible to automate the CLI usage and give self-explanatory names for our migration scripts. Ex:
move_article_title_to_footer_nav.js
.Describe alternatives you've considered Using the underline API, but seen the CLI code, looks like it is not a good idea.