From ef377565dcdad47e1b1d54c34ad3be85424b0601 Mon Sep 17 00:00:00 2001 From: ColCh Date: Sun, 2 Nov 2014 16:17:54 +0300 Subject: [PATCH] Proxy stylesLanguage to component subgenerator --- script-base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script-base.js b/script-base.js index 1964fc4..37e4a73 100644 --- a/script-base.js +++ b/script-base.js @@ -19,6 +19,7 @@ var Generator = module.exports = function Generator() { this.scriptAppName = this._.camelize(this._.capitalize(this.appname)) + generalUtils.appName(this); this.classedFileName = this._.capitalizeFile(this.name); this.classedName = this._.capitalizeClass(this.name); + this.stylesLanguage = this.config.get('styles-language'); if (typeof this.options.appPath === 'undefined') { this.options.appPath = this.options.appPath || 'src/scripts'; @@ -38,7 +39,7 @@ var Generator = module.exports = function Generator() { this.stylesSuffix = '.css'; - switch(this.config.get('styles-language')) { + switch(this.stylesLanguage) { case 'sass': this.stylesSuffix = '.sass'; break;