sthzg e2add4af4d Refactored component subgen to support styles and/or cssmodules #255
This commit refactors the template structure for components to multiple
different base templates based on the required styling options:

- nostyle
- with styles
- with styles and css modules
2016-08-05 14:36:10 +02:00

36 lines
603 B
JavaScript

'use strict';
/**
* List of supported generator versions.
* @type {number[]}
*/
const SUPPORTED_GEN_VERSIONS = [3, 4];
/**
* ENUM of supported component types.
* @type {{STATEFUL: string, STATELESS: string}}
*/
const COMP_TYPES = {
STATEFUL: 'Stateful',
STATELESS: 'Stateless'
};
/**
* ENUM of supported style types.
* @type {{WITH_STYLES: string, WITH_CSSMODULES: string, NO_STYLES: string}}
*/
const STYLE_TYPES = {
WITH_STYLES: 'WithStyles',
WITH_CSSMODULES: 'CssModules',
NO_STYLES: 'NoStyles'
};
module.exports = {
SUPPORTED_GEN_VERSIONS,
COMP_TYPES,
STYLE_TYPES
};