Skip to content

Commit

Permalink
Merge pull request #17241 from simonihmig/component-blueprint-eol
Browse files Browse the repository at this point in the history
[BUGFIX beta] fix line endings of component blueprint on Windows
  • Loading branch information
rwjblue authored Dec 4, 2018
2 parents e329e3f + 35bdead commit e2b6232
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blueprints/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const pathUtil = require('ember-cli-path-utils');
const getPathOption = require('ember-cli-get-component-path-option');
const normalizeEntityName = require('ember-cli-normalize-entity-name');
const isModuleUnificationProject = require('../module-unification').isModuleUnificationProject;
const EOL = require('os').EOL;

module.exports = {
description: 'Generates a component.',
Expand Down Expand Up @@ -89,8 +90,8 @@ module.exports = {
'templates/components/' +
stringUtil.dasherize(options.entity.name);
}
importTemplate = "import layout from '" + templatePath + "';\n";
contents = '\n layout';
importTemplate = "import layout from '" + templatePath + "';" + EOL;
contents = EOL + ' layout';
}

return {
Expand Down

0 comments on commit e2b6232

Please sign in to comment.