0.3.0 • Published 9 months ago
@constructions-incongrues/faircamp-cms-collections v0.3.0
@constructions-incongrues/faircamp-cms-collections
This package contains all Faircamp CMS collection schemas: Catalog, Artist, Release, and Track.
Usage
const { Catalog, Artist, Release, Track } = require('@constructions-incongrues/faircamp-cms-collections');
// Get the default schema
const catalog = Catalog();
// Override any part of the schema
const customCatalog = Catalog({ label: 'My Custom Catalog', fields: [/* ... */] });TypeScript
Type definitions are included:
import { Catalog, CollectionSchema } from '@constructions-incongrues/faircamp-cms-collections';
const schema: CollectionSchema = Catalog();Testing
To run tests:
npm testLicense
MIT