Skip to content

Commit

Permalink
Only delete certain files for --typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 7, 2024
1 parent f7c763b commit 95b8fe0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ module.exports = {
const filesToDelete = [
// now in the project root
'app/index.html',
// replaced with application.gjs/gts
'app/templates/application.hbs',
// replaced with .eslintrc.cjs
'.eslintrc.js',
// This file is not supported in ESLint 9
Expand All @@ -182,17 +180,24 @@ module.exports = {
'.prettierrc.js',
// ember-data / warp-drive doesn't want folks using models
'app/models/.gitkeep',
// If folks are using models, they have this file.
// New projects should not be using it though
// 'types/ember-data/types/registries/model.d.ts',
'types/global.d.ts',

// We don't need these with gjs/gts
'app/helpers/.gitkeep',

// Delete if empty, kept otherwise
'app/models',
'app/helpers',

...(options.typescript
? [
// Until we add application.gjs
'app/templates/application.hbs',
// If folks are using models, they have this file.
// New projects should not be using it though
// 'types/ember-data/types/registries/model.d.ts',
'types/global.d.ts',
]
: []),
];

// TODO: we should probably keep this because enabling TS for JS dev
Expand Down

0 comments on commit 95b8fe0

Please sign in to comment.