component.json

description: A boolean specifying whether the component is private, defaulting to  false.

type: boolean

description: A public component MUST have a 'name'. This is what will be passed to  require().

type: string

description: The public component MUST have a 'repository' property, this is registry end-point consisting of  <username>/<project> , for example 'visionmedia/page.js' or 'component/dialog'.

description: The component SHOULD have a 'description' property. This helps people find and understand your component.

description: The public component MUST include a version, allowing other scripts to depend on specific releases of the component.

description: Keywords are used when searching for a component. A public component SHOULD list a few keywords.

type: array

description: It is recommended that you use 'index.js' for the main component file, however if you use another filename, you MUST define a 'main' field for that.

description: The  scripts  field explicitly specifies the scripts for this component. For public components, these must be regular JavaScript files. For private components, these should be regular Javascript files.

description: The  styles  field explicitly specifies the stylesheets for this component. For public components, these must be regular CSS files. For private components, these should be regular CSS files.

description: The  json  field explicitly specifies the  JSON  files for this component. Each file must be valid  JSON .

description: The  images  field MUST be supported and fetched upon installation, this allows component build tools to rewrite stylesheet  url() s in order to accomodate various file serving techniques.

description: The  fonts  field MUST be supported and fetched upon installation, this allows component build tools to rewrite stylesheet  url() s in order to accomodate various file serving techniques.

description: In the future we will classify more file types, however for those which are not treated uniquely such as fonts may be placed in a  files  array to aid build and installation tools.

description: Runtime dependencies.

type: object

description: Local dependencies are already located on disk, these are not installed, but are however included in the builds, thus no versions need to be defined. Local components should be located in a directory specified within .paths.

description: The public component must not contain any remotes.

description: The public component must not contain any paths.

description: The templates array MUST provide the contents of each file as a require-able module. For example the following must provide the HTML string via require('user.html').

description: The license string such as 'MIT' may be used for search output and other reporting, developers SHOULD specify this field

title: JSON schema for component.json files