Skip to content
xzyfer edited this page May 9, 2014 · 1 revision

An Asimov component can consist of both scss and javascript.

Sass

An Asimov module should consist of at most these four sass files:

filename purpose produces output
_settings.scss contains settings for the module no
_function.scss contains functions for the module no
_mixin.scss contains mixins for the module no
_component.scss contains the output css for the module yes

Javascript

An Asimov module with javascript have, atleast, an index.js. This file is what will be compiled and included into the generated styleguide.

There can be as many javascript files, in any layout, but only index.js is compiled. All other javascript files are considered to be dependencies of index.js and should be required by it.

Clone this wiki locally