Skip to content

Commit

Permalink
Merge pull request #99 from embroider-build/prepare-for-ts-via-shared…
Browse files Browse the repository at this point in the history
…-directory

Move more files to the files-override/shared folder
  • Loading branch information
NullVoxPopuli authored Oct 7, 2024
2 parents ec657eb + 39dec37 commit 117c16d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 2 deletions.
File renamed without changes.
9 changes: 7 additions & 2 deletions files-override/shared/.prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

module.exports = {
plugins: ['prettier-plugin-ember-template-tag'],
singleQuote: true,
overrides: [
{
files: ['*.js', '*.ts', '*.cjs', '.mjs', '.cts', '.mts', '.cts'],
options: {
singleQuote: true,
trailingComma: 'es5',
},
},
{
files: ['*.html'],
options: {
singleQuote: false,
},
},
{
files: ['*.json'],
options: {
Expand All @@ -25,7 +31,6 @@ module.exports = {
{
files: ['*.gjs', '*.gts'],
options: {
singleQuote: true,
templateSingleQuote: false,
trailingComma: 'es5',
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ module.exports = {

// there doesn't seem to be a way to tell ember-cli to not prompt to override files that were added in the beforeInstall
// so I'm just copying a few over at this stage
copyWithTemplate(
join(__dirname, 'files-override/shared'),
options.target,
options,
);

copyWithTemplate(
join(__dirname, 'files-override/js'),
options.target,
Expand Down

0 comments on commit 117c16d

Please sign in to comment.