Skip to content

Creating a Cosmo Module

James edited this page Jul 4, 2014 · 2 revisions

A Cosmo module is basically an AngularJS module. The only additional file that is required is the cosmo.json file in the top folder describing the module.

Values:

  • name: User-friendly name of the module
  • module: Angular module name. i.e. The value in angular.module('my-module', []);
  • scripts: All javascript files. Files ending in ".minify.js" will automatically be minified and combined with all other files for performance. Recommended
  • css: Lists all CSS files version: Version number of the module

Example: { "name": "My Module", "module": "my-module", "scripts": [ "main.minify.js" ], "css": [ "style.css" ], "version": "1.0.0" }

Clone this wiki locally