diff --git a/files-override/js/.gitignore b/files-override/shared/.gitignore similarity index 100% rename from files-override/js/.gitignore rename to files-override/shared/.gitignore diff --git a/files-override/shared/.prettierrc.cjs b/files-override/shared/.prettierrc.cjs index 6197eb1..dc136b2 100644 --- a/files-override/shared/.prettierrc.cjs +++ b/files-override/shared/.prettierrc.cjs @@ -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: { @@ -25,7 +31,6 @@ module.exports = { { files: ['*.gjs', '*.gts'], options: { - singleQuote: true, templateSingleQuote: false, trailingComma: 'es5', }, diff --git a/files/js/app/config/environment.js b/files-override/shared/app/config/environment.js similarity index 100% rename from files/js/app/config/environment.js rename to files-override/shared/app/config/environment.js diff --git a/files-override/js/ember-cli-build.js b/files-override/shared/ember-cli-build.js similarity index 100% rename from files-override/js/ember-cli-build.js rename to files-override/shared/ember-cli-build.js diff --git a/files/js/index.html b/files-override/shared/index.html similarity index 100% rename from files/js/index.html rename to files-override/shared/index.html diff --git a/files-override/js/testem.js b/files-override/shared/testem.js similarity index 100% rename from files-override/js/testem.js rename to files-override/shared/testem.js diff --git a/files-override/js/tests/index.html b/files-override/shared/tests/index.html similarity index 100% rename from files-override/js/tests/index.html rename to files-override/shared/tests/index.html diff --git a/files/js/vite.config.mjs b/files-override/shared/vite.config.mjs similarity index 100% rename from files/js/vite.config.mjs rename to files-override/shared/vite.config.mjs diff --git a/index.js b/index.js index dcd1d2d..2a1b5d8 100644 --- a/index.js +++ b/index.js @@ -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,