diff --git a/templates/javascript/Component.js b/templates/javascript/Component.js index d52f421..153b815 100644 --- a/templates/javascript/Component.js +++ b/templates/javascript/Component.js @@ -1,11 +1,12 @@ 'use strict'; var React = require('react/addons'); -<% if (stylesLanguage === 'css') { %>require('../../styles/<%= classedName %>.css');<% } %> -<% if (stylesLanguage === 'sass') { %>require('../../styles/<%= classedName %>.sass');<% } %> -<% if (stylesLanguage === 'scss') { %>require('../../styles/<%= classedName %>.scss');<% } %> -<% if (stylesLanguage === 'less') { %>require('../../styles/<%= classedName %>.less');<% } %> -<% if (stylesLanguage === 'stylus') { %>require('../../styles/<%= classedName %>.styl');<% } %> + +<% if (stylesLanguage === 'css') { %>require('../../styles/<%= classedName %>.css');<% } %><% +if (stylesLanguage === 'sass') { %>require('../../styles/<%= classedName %>.sass');<% } %><% +if (stylesLanguage === 'scss') { %>require('../../styles/<%= classedName %>.scss');<% } %><% +if (stylesLanguage === 'less') { %>require('../../styles/<%= classedName %>.less');<% } %><% +if (stylesLanguage === 'stylus') { %>require('../../styles/<%= classedName %>.styl');<% } %> var <%= classedName %> = React.createClass({ render: function () { @@ -16,9 +17,7 @@ var <%= classedName %> = React.createClass({ ); } }); -<% if (es6) { %> -export default <%= classedName %>; -<% } else { %> -module.exports = <%= classedName %>; -<% } %> + +<% if (es6) { %>export default <%= classedName %>; <% } +else { %>module.exports = <%= classedName %>; <% } %> diff --git a/templates/styles/Component.css b/templates/styles/Component.css index 2bb362b..912c840 100644 --- a/templates/styles/Component.css +++ b/templates/styles/Component.css @@ -1,3 +1,3 @@ -.<%= classedName %>{ +.<%= classedName %> { border: 1px dashed #f00; -} \ No newline at end of file +} diff --git a/templates/styles/Component.less b/templates/styles/Component.less index 2bb362b..912c840 100644 --- a/templates/styles/Component.less +++ b/templates/styles/Component.less @@ -1,3 +1,3 @@ -.<%= classedName %>{ +.<%= classedName %> { border: 1px dashed #f00; -} \ No newline at end of file +} diff --git a/templates/styles/Component.scss b/templates/styles/Component.scss index 2bb362b..912c840 100644 --- a/templates/styles/Component.scss +++ b/templates/styles/Component.scss @@ -1,3 +1,3 @@ -.<%= classedName %>{ +.<%= classedName %> { border: 1px dashed #f00; -} \ No newline at end of file +}