Skip to content

Commit b10ca0a

Browse files
authored
Revert "Support gts/gjs in blueprint (#1013)" (#1014)
This reverts commit c2d7a83.
1 parent c2d7a83 commit b10ca0a

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

  • ember-basic-dropdown/blueprints/ember-basic-dropdown

ember-basic-dropdown/blueprints/ember-basic-dropdown/index.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ module.exports = {
4949
if (!fs.existsSync(file)) {
5050
file = path.join('app', `app.ts`);
5151
}
52-
if (!fs.existsSync(file)) {
53-
file = path.join('app', `app.gts`);
54-
}
55-
if (!fs.existsSync(file)) {
56-
file = path.join('app', `app.gjs`);
57-
}
5852
if (fs.existsSync(file)) {
5953
this.ui.writeLine(`Added import statement to ${file}`);
6054
promises.push(
@@ -77,24 +71,6 @@ module.exports = {
7771
{},
7872
),
7973
);
80-
} else {
81-
applicationFile = path.join(templatePath, `application.gts`);
82-
if (!fs.existsSync(file)) {
83-
file = path.join(templatePath, `application.gjs`);
84-
}
85-
if (fs.existsSync(applicationFile)) {
86-
this.ui.writeLine(`Added wormhole statement to ${applicationFile}`);
87-
promises.push(
88-
this.insertIntoFile(applicationFile, `import BasicDropdownWormhole from 'ember-basic-dropdown/components/basic-dropdown-wormhole';${EOL}`, {
89-
before: `<template>`,
90-
}),
91-
);
92-
promises.push(
93-
this.insertIntoFile(applicationFile, `${EOL} <BasicDropdownWormhole />`, {
94-
after: `<template>`,
95-
}),
96-
);
97-
}
9874
}
9975

10076
return Promise.all(promises);

0 commit comments

Comments
 (0)