Code Monkey home page Code Monkey logo

contentful-utils's People

Contributors

felixjung avatar stefanjudis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ellwarco

contentful-utils's Issues

Overwrite existing target fields with source fields

Sometimes to update the configuration of a field, for example the validation. If other content types are using the "same" field, it would be useful to copy the potentially improved configuration over, provided it is compatible.

Fix logging message when deleting fields

❯ contentful-utils delete-fields\
  --space space:space-id:token\
  --target starship\
  --force\
  -- length
info Deleting fields length from Content Type(s) starship.
info Deleting fields length from Starship.

~
❯

Add support for cross-space operations

When selectively migrating spaces (i.e. not just cloning a space), it would be beneficial to selectively copy content types, and individual fields from one space to another. We should also be able to do so in a forceful manor.

Refactor code

Clean up some things.

  • Put any logging messages, if they are still needed, into some log hash and fetch them from there. Removes distractions from code.
  • Are there cleaner ways to split the whole CLI config of yargs up? Maybe move to the respective commands?
  • Move to lodash/fp.
  • Think about moving some functions around.
  • Fix whatever you find.

Write tests

Now that we have such a nice Ava setup, we should start writing tests.

Fix config file support

I do remember config files not working as expected with yargs. Should be fixed. Than you can have a folder of space config files and reuse them.

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.