Skip to content

Commit b6a0978

Browse files
committed
Delete more stuff
1 parent d93829f commit b6a0978

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

index.js

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ module.exports = {
138138

139139
let files = this._super();
140140

141+
// Locals is where we calculate defaults and such.
142+
// Let's not duplicate that work here
143+
options = this.locals(options);
144+
141145
if (options.ciProvider !== 'github') {
142146
files = files.filter((file) => file.indexOf('.github') < 0);
143147
}
@@ -159,28 +163,37 @@ module.exports = {
159163

160164
if (options.noCompat) {
161165
files = files.filter((file) => {
162-
return !file.includes('controllers/') && !file.includes('helpers/');
166+
return (
167+
!file.includes('deprecation-workflow') &&
168+
!file.includes('ember-cli') &&
169+
!file.includes('ember-cli-build.js') &&
170+
!file.includes('controllers/') &&
171+
!file.includes('config/environment.js') &&
172+
!file.includes('config/optional-features') &&
173+
!file.includes('config/targets') &&
174+
!file.includes('helpers/')
175+
);
163176
});
164177
}
165178

166179
if (options.minimal) {
167180
files = files.filter((file) => {
168181
return (
182+
!file.includes('.github/') &&
183+
!file.includes('.prettierignore') &&
184+
!file.includes('README') &&
169185
!file.includes('components/') &&
170-
!file.includes('styles/') &&
171-
!file.includes('services/') &&
186+
!file.includes('eslint.config') &&
187+
!file.includes('prettierrc') &&
172188
!file.includes('public/') &&
173-
!file.includes('tests/') &&
174189
!file.includes('routes/') &&
175-
!file.includes('ember-cli-build.js') &&
176-
!file.includes('environment.js') &&
177-
!file.includes('template-lintrc') &&
178-
!file.includes('prettierrc') &&
190+
!file.includes('services/') &&
179191
!file.includes('stylelint') &&
180-
!file.includes('ember-cli') &&
181-
!file.includes('watchman') &&
192+
!file.includes('styles/') &&
193+
!file.includes('template-lintrc') &&
182194
!file.includes('testem') &&
183-
!file.includes('eslint.config')
195+
!file.includes('tests/') &&
196+
!file.includes('watchman')
184197
);
185198
});
186199
}

0 commit comments

Comments
 (0)