Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bulychev committed Sep 12, 2023
1 parent 9f0b731 commit 6f6cf08
Show file tree
Hide file tree
Showing 12 changed files with 336 additions and 3,628 deletions.
3,828 changes: 229 additions & 3,599 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"postcss": "^8.4.24",
"shx": "0.3.4",
"source-map": "0.7.4",
"typescript": "~4.7.4"
"typescript": "~4.2.4"
},
"pre-commit": [
"lint-staged",
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-angular/src/core/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { isPlatformServer } from '@angular/common';
import { TransferState, makeStateKey } from '@angular/platform-browser';

Check warning on line 20 in packages/devextreme-angular/src/core/component.ts

View workflow job for this annotation

GitHub Actions / test

'@angular/platform-browser' should be listed in the project's dependencies. Run 'npm i -S @angular/platform-browser' to add it

import domAdapter from 'devextreme/core/dom_adapter';

Check warning on line 22 in packages/devextreme-angular/src/core/component.ts

View workflow job for this annotation

GitHub Actions / test

You have a misspelled word: dom on Identifier
import { triggerHandler } from 'devextreme/events/index.js';
import { triggerHandler } from 'devextreme/events';
import { DxTemplateDirective } from './template';
import { IDxTemplateHost, DxTemplateHost } from './template-host';
import { EmitterHelper, NgEventsStrategy } from './events-strategy';

Check warning on line 26 in packages/devextreme-angular/src/core/component.ts

View workflow job for this annotation

GitHub Actions / test

Dependency cycle detected
Expand Down
1 change: 1 addition & 0 deletions packages/devextreme-dist/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project.json
2 changes: 1 addition & 1 deletion packages/devextreme-dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devextreme-dist",
"version": "23.2.0",
"version": "23.2.99",
"description": "HTML5 JavaScript Component Suite for Responsive Web Development",
"keywords": [
"html5",
Expand Down
7 changes: 3 additions & 4 deletions packages/devextreme-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"vue": "^3.0.0"
},
"devDependencies": {
"@types/jest": "^28.1.8",
"@types/jest": "^26.0.24",
"@vue/compiler-sfc": "^3.0.0",
"@vue/test-utils": "2.0.0-beta.7",
"del": "^3.0.0",
Expand All @@ -36,9 +36,8 @@
"gulp-header": "^2.0.9",
"gulp-shell": "^0.6.5",
"gulp-typescript": "^5.0.1",
"jest": "^28.1.3",
"jest-environment-jsdom": "28.1.3",
"ts-jest": "^28.0.8",
"jest": "^26.6.3",
"ts-jest": "^26.5.6",
"typescript": "^4.7.4",
"vue": "3.2.47",
"vue-router": "^4.0.16"
Expand Down
40 changes: 34 additions & 6 deletions packages/devextreme/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
artifacts/*
js/viz/docs/*
node_modules/*
build/*
*.j.tsx
playground/*
themebuilder/data/metadata/*
themebuilder-scss/dist/*
themebuilder-scss/coverage/*
themebuilder-scss/src/data/metadata/*
js/bundles/dx.custom.js
testing/jest/utils/transformers/*
testing/styles/opentype.js.d.ts
ts/
js/localization/cldr-data/*
js/localization/default_messages.js

/__internal
/animation
/artifacts
/bin
/aspnet
/bundles
/cjs
/color
/common
/core
/data
/data_helper
/dist
/esm
/events
/excel_exporter
/exporter
/file_management
/format_helper
/integration
/localization
/mobile
/pdf_exporter
/renovation
/scss/bundles
/scss/widgets/base/icons
/scss/widgets/material/typography/fonts
/time_zone_utils
/ui
/utils
/viz
/*.d.ts
18 changes: 14 additions & 4 deletions packages/devextreme/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
dist/js
dist/ts
!dist/css
project.json
/build
/dist/js
/dist/ts
!/dist/css
/fonts
/icons
/images
/js
/playground
/testing
/ts

/*.*
!/*.d.ts
24 changes: 14 additions & 10 deletions packages/devextreme/build/gulp/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const replace = require('gulp-replace');
const compressionPipes = require('./compression-pipes.js');
const ctx = require('./context.js');
const headerPipes = require('./header-pipes.js');
const { packageDir, packageDistDir, isEsmPackage, stringSrc } = require('./utils');
const { packageDir, packageDistDir, isEsmPackage } = require('./utils');
const { version } = require('../../package.json');

const resultPath = ctx.RESULT_NPM_PATH;
Expand Down Expand Up @@ -109,21 +109,25 @@ const sources = (src, dist, distGlob) => (() => merge(
gulp
.src('README.md')
.pipe(gulp.dest(dist)),

stringSrc('.npmignore', 'dist/js\ndist/ts\n!dist/css\nproject.json')
.pipe(gulp.dest(`${dist}/`))
));

const packagePath = `${resultPath}/${packageDir}`;

gulp.task('npm-sources', gulp.series('ts-sources', sources(srcGlobs, packagePath, distGlobs)));

gulp.task('npm-dist', () => gulp
.src([
`${packagePath}/dist/**/*`
])
.pipe(gulp.dest(`${resultPath}/${packageDistDir}`))
);
const distPath = `${resultPath}/${packageDistDir}`;

gulp.task('npm-dist', gulp.parallel(
() => gulp
.src([
`${packagePath}/dist/**/*`
])
.pipe(gulp.dest(distPath)),
() => gulp
.src(`${distPath}/package.json`)
.pipe(replace(version, ctx.version.package))
.pipe(gulp.dest(distPath)),
));

const scssDir = `${resultPath}/${packageDir}/scss`;

Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"type": "git",
"url": "https://github.com/DevExpress/DevExtreme.git"
},
"types": "./dist/bundles/dx.all.d.ts",
"types": "./bundles/dx.all.d.ts",
"license": "SEE LICENSE IN README.md",
"dependencies": {
"@babel/runtime": "^7.12.1",
Expand Down
32 changes: 31 additions & 1 deletion packages/devextreme/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,37 @@
],
"outputs": [
"{workspaceRoot}/artifacts/internal-tools",
"{projectRoot}/dist"
"{projectRoot}/__internal",
"{projectRoot}/animation",
"{projectRoot}/artifacts",
"{projectRoot}/aspnet",
"{projectRoot}/bundles",
"{projectRoot}/cjs",
"{projectRoot}/color",
"{projectRoot}/common",
"{projectRoot}/core",
"{projectRoot}/data",
"{projectRoot}/data_helper",
"{projectRoot}/dist",
"{projectRoot}/esm",
"{projectRoot}/events",
"{projectRoot}/excel_exporter",
"{projectRoot}/exporter",
"{projectRoot}/file_management",
"{projectRoot}/format_helper",
"{projectRoot}/integration",
"{projectRoot}/localization",
"{projectRoot}/mobile",
"{projectRoot}/pdf_exporter",
"{projectRoot}/renovation",
"{projectRoot}/scss/bundles",
"{projectRoot}/scss/widgets/base/icons",
"{projectRoot}/scss/widgets/material/typography/fonts",
"{projectRoot}/time_zone_utils",
"{projectRoot}/ui",
"{projectRoot}/utils",
"{projectRoot}/viz",
"{projectRoot}/*.d.ts"
]
}
},
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"compilerOptions": {
"baseUrl": "./packages",
"paths": {
"devextreme": [
"devextreme"
],
"devextreme/*": [
"devextreme/*"
],
"devextreme-angular": [
"devextreme-angular/src"
],
Expand Down

0 comments on commit 6f6cf08

Please sign in to comment.