Skip to content

Commit 78cc441

Browse files
authored
QUnit tests: remove renovation parts (#31388) (#31401)
1 parent cf644da commit 78cc441

33 files changed

+14
-477
lines changed

.github/codeql/codeql-config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ paths-ignore:
44
- "/artifacts/**"
55
- "/packages/devextreme/artifacts/transpiled/**" # not prod code
66
- "/packages/devextreme/artifacts/transpiled-esm-npm/**" # not prod code
7-
- "/packages/devextreme/artifacts/transpiled-renovation/**" # not prod code
87
- "/packages/devextreme/artifacts/transpiled-renovation-npm/**" # not prod code
98
- "/packages/devextreme/artifacts/npm/devextreme-dist/**" # same as artifacts/js, removed to optimize
109
- "/packages/devextreme/artifacts/npm/devextreme/cjs/**" # same as npm/devextreme/esm/**, removed to optimize

packages/devextreme/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ node_modules
77
/js/bundles/dx.custom.js
88
/js/common/core/localization/default_messages.js
99
/js/common/core/localization/cldr-data
10-
/js/renovation/**/*.j.tsx
11-
/js/renovation/code_coverage
1210
/scss/bundles/*.scss
1311
RawLog.txt
1412
testing/CompletedSuites.txt

packages/devextreme/build/gulp/context.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ module.exports = {
1616
TS_OUT_PATH: 'artifacts/dist_ts',
1717
TRANSPILED_PATH: 'artifacts/transpiled',
1818
TRANSPILED_PROD_RENOVATION_PATH: 'artifacts/transpiled-renovation-npm',
19-
TRANSPILED_RENOVATION_PATH: 'artifacts/transpiled-renovation',
2019
TRANSPILED_PROD_ESM_PATH: 'artifacts/transpiled-esm-npm',
2120
SCSS_PACKAGE_PATH: '../devextreme-scss',
2221
EULA_URL: 'https://js.devexpress.com/Licensing/'

packages/devextreme/build/gulp/generator/generator-options.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/devextreme/build/gulp/generator/gulpfile.js

Lines changed: 0 additions & 158 deletions
This file was deleted.

packages/devextreme/build/gulp/generator/ts-configs/inferno.tsconfig.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/devextreme/build/gulp/generator/ts-configs/jest.tsconfig.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/devextreme/build/gulp/generator/ts-configs/tsconfig.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/devextreme/build/gulp/systemjs.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ gulp.task('transpile-systemjs-modules', (callback) => {
1212
.on('close', code => code ? callback(new Error(code)) : callback());
1313
});
1414

15-
gulp.task('transpile-systemjs-modules-renovation', (callback) => {
16-
spawn('node', [path.resolve(root, 'testing/systemjs-builder.js'), '--transpile=modules-renovation'], { stdio: 'inherit' })
17-
.on('error', callback)
18-
.on('close', code => code ? callback(new Error(code)) : callback());
19-
});
20-
2115
gulp.task('transpile-systemjs-testing', (callback) => {
2216
spawn('node', [path.resolve(root, 'testing/systemjs-builder.js'), '--transpile=testing'], { stdio: 'inherit' })
2317
.on('error', callback)
@@ -38,7 +32,6 @@ gulp.task('transpile-systemjs-js-vendors', (callback) => {
3832

3933
gulp.task('transpile-systemjs', gulp.parallel(
4034
'transpile-systemjs-modules',
41-
'transpile-systemjs-modules-renovation',
4235
'transpile-systemjs-testing',
4336
'transpile-systemjs-css',
4437
'transpile-systemjs-js-vendors'

packages/devextreme/build/gulp/transpile.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const rename = require('gulp-rename');
1414
const replace = require('gulp-replace');
1515
const watch = require('gulp-watch');
1616
const cache = require('gulp-cache');
17-
const through2 = require('through2');
1817

1918
const removeDebug = require('./compression-pipes.js').removeDebug;
2019
const ctx = require('./context.js');
@@ -24,22 +23,19 @@ const transpileConfig = require('./transpile-config');
2423

2524
const createTsCompiler = require('./typescript/compiler');
2625

27-
require('./generator/gulpfile');
2826
const { SideEffectFinder } = require('./side-effects-finder');
2927

3028
const sideEffectFinder = new SideEffectFinder();
3129
const src = [
3230
'js/**/*.*',
3331
'!js/**/*.d.ts',
3432
'!js/**/*.{tsx,ts}',
35-
'!js/renovation/code_coverage/**/*.*',
3633
'!js/__internal/**/*.*',
3734
];
3835

3936
const esmTranspileSrc = src.concat([
4037
'!js/bundles/**/*',
4138
'!js/viz/docs/**/*',
42-
'!js/renovation/**/*',
4339
'!**/*.json'
4440
]);
4541

@@ -163,26 +159,6 @@ const transpileDefault = () => transpile(src, ctx.TRANSPILED_PATH, {
163159
tsPipes: [ babel(transpileConfig.tsCjs) ],
164160
});
165161

166-
const touch = () => through2.obj(function(file, enc, cb) {
167-
if(file.stat) {
168-
// eslint-disable-next-line spellcheck/spell-checker
169-
file.stat.atime = file.stat.mtime = file.stat.ctime = new Date();
170-
}
171-
cb(null, file);
172-
});
173-
174-
const transpileRenovation = () => transpile(
175-
src,
176-
ctx.TRANSPILED_RENOVATION_PATH,
177-
{
178-
jsPipes: [
179-
cachedJsBabelCjs(),
180-
touch()
181-
],
182-
tsPipes: [ babel(transpileConfig.tsCjs) ],
183-
},
184-
);
185-
186162
const transpileProd = (dist, isEsm) => transpile(
187163
src,
188164
dist,
@@ -242,7 +218,6 @@ gulp.task('transpile', (done) => {
242218
'bundler-config',
243219
transpileTs(compiler, srcTsPattern),
244220
transpileDefault(),
245-
transpileRenovation(),
246221
transpileRenovationProd(),
247222
ifEsmPackage('transpile-esm'),
248223
transpileTsClean(),
@@ -262,9 +237,6 @@ const watchJsTask = () => {
262237
watchTask
263238
.pipe(babel(transpileConfig.cjs))
264239
.pipe(gulp.dest(ctx.TRANSPILED_PATH));
265-
watchTask
266-
.pipe(babel(transpileConfig.cjs))
267-
.pipe(gulp.dest(ctx.TRANSPILED_RENOVATION_PATH));
268240
watchTask
269241
.pipe(removeDebug())
270242
.pipe(babel(transpileConfig.cjs))
@@ -285,7 +257,6 @@ const watchTsTask = async() => {
285257
}))
286258
.pipe(babel(transpileConfig.tsCjs))
287259
.pipe(gulp.dest(ctx.TRANSPILED_PATH))
288-
.pipe(gulp.dest(ctx.TRANSPILED_RENOVATION_PATH))
289260
.pipe(removeDebug())
290261
.pipe(gulp.dest(ctx.TRANSPILED_PROD_RENOVATION_PATH));
291262
};

0 commit comments

Comments
 (0)