Notoriously Problematic Merge

    This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    @tinacms/core
    TypeScript icon, indicating that this package has built-in type declarations

    0.43.0 • Public • Published

    @tinacms/core

    The @tinacms/core package provides the core objects for building amazing content management systems.

    Installation

    Install the package

    npm install --save @tinacms/core
    

    or

    yarn add @tinacms/core
    

    F.A.Q.

    Below are the answer to a couple common questions.

    If you have any other questions, go to the TinaCMS Community page to join our Slack or open an issue on Github! Every question you ask helps us make working with TinaCMS even better :)

    What does the CMS do?

    The responsibility of the CMS keeps track of two broad types of objects:

    • Plugins, which extend or change the behaviour of the CMS.
    • APIs, which allow the CMS to integrate with third party services.

    What? That doesn't seem like a CMS

    The name CMS is a bit misleading. This object knows nothing of the user interface or the data storage layer. The purpose of a CMS instance is to provide a common connection point for the various aspects of a content management system. The CMS object effectively a vehicle for dependency injection.

    Examples

    Creating a CMS

    import { CMS } from '@tinacms/core'
    
    let cms = new CMS()

    Registering APIs

    import github from 'my-github-client'
    
    cms.registerApi('github', github)
    
    cms.api.github

    Adding Plugins

    import github from 'my-github-client'
    
    cms.plugins.add({
      __type: 'some-plugin',
      some: 'value',
    })
    
    cms.plugins.all('some-plugin') // [{ __type: 'some-plugin', some: 'value' }]

    Keywords

    Install

    npm i @tinacms/core

    DownloadsWeekly Downloads

    1,890

    Version

    0.43.0

    License

    Apache-2.0

    Unpacked Size

    56.5 kB

    Total Files

    16

    Last publish

    Collaborators

    • kldavis4
    • spbyrne
    • jamespohalloran
    • scottgallant
    • tinacmsbot
    • forestry_chris
    • jeffsee55