1.4.14 • Published 4 years ago

@jacco-meijer/admin-page-preview v1.4.14

Weekly downloads
20
License
MIT
Repository
github
Last release
4 years ago

Wheelroom

Wheelroom is a command line tool for managing content models.

Monorepo

This is a monorepo managed by lerna.

npm install lerna --global

Boilerplate

Have a look at the boilerplate to so see how to use this.

Plugins

Plugins are used to work with the models. Three plugins have been written:

A plugin for prismic.io can be easily added.

Content models

Content models are defined in typescript like this.

export const configComponents: WheelroomComponents = {
  footerSection: {
    fields: {
      backgroundColor: {
        helpText: 'Select a background color',
        items: ['blue', 'orange'],
        required: true,
        type: 'dropdown',
      } as DropdownField,
      footerNavigation: {
        allowedComponents: ['navigation'],
        required: true,
        type: 'singleComponent',
      } as SingleComponentField,
    },
    modelVersion: '1.0.0',
    settings: {
      asBoilerplate: true,
      asFragment: true,
      asPageSection: true,
    },
  },
...

Content model fields

Wheelroom uses a fixed set of field types. This is because it was designed to work with more than one headless CMS.

The actual fields that are used to create models at the CMS are defined by passing them to the CMS plugin.

Field types can be extended by using the typePostfix attribute. This way, the same Wheelroom field is able to create different content models in the CMS. The intention is to create small variations, but there's no actual limit.

Common fields and field defaults

Wheelroom allows for common fields and field defaults.

1.4.14

4 years ago

1.4.13

4 years ago

1.4.10

4 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago