From 978463a7e2e0398ba3b0a9c509dec81943369131 Mon Sep 17 00:00:00 2001 From: EugeniyKiyashko Date: Thu, 29 Oct 2026 12:13:03 +0400 Subject: [PATCH] Demos: remove the GitHub Pages demos pipeline --- .github/workflows/github-pages-publish.yml | 35 -- .github/workflows/publish-demos.yml | 260 ---------- .../workflows/run-testcafe-on-gh-pages.yml | 103 ---- apps/demos/.eslintignore | 1 - apps/demos/.eslintrc.js | 1 - apps/demos/.gitignore | 4 - apps/demos/.prettierignore | 2 - apps/demos/.stylelintignore | 1 - apps/demos/configs/Angular/tsconfig.json | 2 +- apps/demos/package.json | 11 - apps/demos/testing/common.test.js | 27 +- .../utils/create-bundles/Angular/bundler.ts | 58 --- .../utils/create-bundles/Angular/polyfill.ts | 1 - .../Angular/post-process-index.ts | 91 ---- .../create-bundles/Angular/template.html | 24 - .../Angular/update-angular-json.ts | 100 ---- .../utils/create-bundles/Angular/utils.ts | 6 - .../utils/create-bundles/React/bundler.ts | 41 -- .../utils/create-bundles/React/template.html | 27 - .../demos/utils/create-bundles/Vue/bundler.ts | 41 -- .../utils/create-bundles/Vue/template.html | 27 - .../utils/create-bundles/helper/bundler.ts | 41 -- .../helper/external-resource-metadata.ts | 400 --------------- .../utils/create-bundles/helper/index.ts | 201 -------- .../helper/metadata/scripts/init-theme.js | 11 - .../utils/create-bundles/helper/types.ts | 26 - apps/demos/utils/create-bundles/index.ts | 96 ---- .../plugins/ignore-missing-css.ts | 22 - .../utils/visual-tests/github-ignored-list.js | 14 - .../utils/visual-tests/matrix-test-helper.js | 17 +- pnpm-lock.yaml | 468 ------------------ 31 files changed, 6 insertions(+), 2153 deletions(-) delete mode 100644 .github/workflows/github-pages-publish.yml delete mode 100644 .github/workflows/publish-demos.yml delete mode 100644 .github/workflows/run-testcafe-on-gh-pages.yml delete mode 100644 apps/demos/utils/create-bundles/Angular/bundler.ts delete mode 100644 apps/demos/utils/create-bundles/Angular/polyfill.ts delete mode 100644 apps/demos/utils/create-bundles/Angular/post-process-index.ts delete mode 100644 apps/demos/utils/create-bundles/Angular/template.html delete mode 100644 apps/demos/utils/create-bundles/Angular/update-angular-json.ts delete mode 100644 apps/demos/utils/create-bundles/Angular/utils.ts delete mode 100644 apps/demos/utils/create-bundles/React/bundler.ts delete mode 100644 apps/demos/utils/create-bundles/React/template.html delete mode 100644 apps/demos/utils/create-bundles/Vue/bundler.ts delete mode 100644 apps/demos/utils/create-bundles/Vue/template.html delete mode 100644 apps/demos/utils/create-bundles/helper/bundler.ts delete mode 100644 apps/demos/utils/create-bundles/helper/external-resource-metadata.ts delete mode 100644 apps/demos/utils/create-bundles/helper/index.ts delete mode 100644 apps/demos/utils/create-bundles/helper/metadata/scripts/init-theme.js delete mode 100644 apps/demos/utils/create-bundles/helper/types.ts delete mode 100644 apps/demos/utils/create-bundles/index.ts delete mode 100644 apps/demos/utils/create-bundles/plugins/ignore-missing-css.ts delete mode 100644 apps/demos/utils/visual-tests/github-ignored-list.js diff --git a/.github/workflows/github-pages-publish.yml b/.github/workflows/github-pages-publish.yml deleted file mode 100644 index caf2db83d28e..000000000000 --- a/.github/workflows/github-pages-publish.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Publishing to GitHub Pages step 3 (to prod) - -on: - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: gh-pages - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish-demos.yml b/.github/workflows/publish-demos.yml deleted file mode 100644 index e27d4f394131..000000000000 --- a/.github/workflows/publish-demos.yml +++ /dev/null @@ -1,260 +0,0 @@ -name: Publishing to GitHub Pages step 1 (to branch) - -on: - workflow_dispatch: - -jobs: - build-devextreme-all: - runs-on: ubuntu-latest - name: Build DevExtreme + wrappers - timeout-minutes: 20 - - steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: DevExtreme - Build-all - env: - BUILD_TEST_INTERNAL_PACKAGE: true - run: pnpm run all:build-dev - - - name: Move packages - run: | - mv ./packages/devextreme/artifacts/npm/devextreme/*.tgz ./devextreme-installer.tgz - mv ./packages/devextreme/artifacts/npm/devextreme-dist/*.tgz ./devextreme-dist-installer.tgz - mv ./packages/devextreme-angular/npm/dist/*.tgz ./devextreme-angular-installer.tgz - mv ./packages/devextreme-react/npm/*.tgz ./devextreme-react-installer.tgz - mv ./packages/devextreme-vue/npm/*.tgz ./devextreme-vue-installer.tgz - - - name: Copy build artifacts - uses: actions/upload-artifact@v4 - with: - name: devextreme-sources - path: | - devextreme-installer.tgz - devextreme-dist-installer.tgz - devextreme-angular-installer.tgz - devextreme-react-installer.tgz - devextreme-vue-installer.tgz - retention-days: 1 - - publish-ES: - runs-on: ubuntu-latest - needs: [build-devextreme-all] - steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Download devextreme sources - uses: actions/download-artifact@v4 - with: - name: devextreme-sources - - - name: Unpack npm packages - uses: ./.github/actions/unpack-npm-packages - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: Prepare configs - working-directory: apps/demos - run: pnpm run prepare-js - - - name: Copy metadata - working-directory: apps/demos - run: pnpm run make-demos-bundle --copy-metadata - - - name: Prepare React demo bundles - working-directory: apps/demos - run: pnpm run make-demos-bundle --framework="React" - - - name: Prepare Vue demo bundles - working-directory: apps/demos - run: pnpm run make-demos-bundle --framework="Vue" - - - name: Save publish-demos directory for ES as an artifact - uses: actions/upload-artifact@v4 - with: - name: publish-demos - path: ./apps/demos/publish-demos - - publish-angular: - runs-on: ubuntu-latest - needs: [build-devextreme-all] - strategy: - fail-fast: false - matrix: - include: - - name: Check generated demos (1/10) - command: CONSTEL=1/10 pnpm run make-demos-bundle --framework="Angular" - index: 1 - - name: Check generated demos (2/10) - command: CONSTEL=2/10 pnpm run make-demos-bundle --framework="Angular" - index: 2 - - name: Check generated demos (3/10) - command: CONSTEL=3/10 pnpm run make-demos-bundle --framework="Angular" - index: 3 - - name: Check generated demos (4/10) - command: CONSTEL=4/10 pnpm run make-demos-bundle --framework="Angular" - index: 4 - - name: Check generated demos (5/10) - command: CONSTEL=5/10 pnpm run make-demos-bundle --framework="Angular" - index: 5 - - name: Check generated demos (6/10) - command: CONSTEL=6/10 pnpm run make-demos-bundle --framework="Angular" - index: 6 - - name: Check generated demos (7/10) - command: CONSTEL=7/10 pnpm run make-demos-bundle --framework="Angular" - index: 7 - - name: Check generated demos (8/10) - command: CONSTEL=8/10 pnpm run make-demos-bundle --framework="Angular" - index: 8 - - name: Check generated demos (9/10) - command: CONSTEL=9/10 pnpm run make-demos-bundle --framework="Angular" - index: 9 - - name: Check generated demos (10/10) - command: CONSTEL=10/10 pnpm run make-demos-bundle --framework="Angular" - index: 10 - steps: - - name: Get sources - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Download devextreme sources - uses: actions/download-artifact@v4 - with: - name: devextreme-sources - - - name: Unpack npm packages - uses: ./.github/actions/unpack-npm-packages - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: Prepare configs - working-directory: apps/demos - run: pnpm run prepare-js - - - name: Copy metadata - working-directory: apps/demos - run: pnpm run make-demos-bundle --copy-metadata - - - name: Update angular.json - working-directory: apps/demos - run: pnpm run update-angular-json - - - name: Prepare Angular demo bundles - working-directory: apps/demos - run: | - ${{ matrix.command }} - - - name: Angular post process index.html - working-directory: apps/demos - run: pnpm run post-process-angular - - - name: Save publish-demos directory for Angular as an artifact - uses: actions/upload-artifact@v4 - with: - name: publish-demos-angular-${{ matrix.index }} - path: ./apps/demos/publish-demos/ - - deploy: - runs-on: ubuntu-latest - needs: [build-devextreme-all, publish-ES, publish-angular] - steps: - - name: Download publish-demos artifact - uses: actions/download-artifact@v4 - with: - name: publish-demos - path: ./apps/demos/publish-demos - - - name: Download publish-demos artifact - uses: actions/download-artifact@v4 - with: - pattern: publish-demos-angular-* - merge-multiple: true - path: ./apps/demos/publish-demos/ - - - name: Deploy to gh-pages - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./apps/demos/publish-demos diff --git a/.github/workflows/run-testcafe-on-gh-pages.yml b/.github/workflows/run-testcafe-on-gh-pages.yml deleted file mode 100644 index ef3bc0de079f..000000000000 --- a/.github/workflows/run-testcafe-on-gh-pages.yml +++ /dev/null @@ -1,103 +0,0 @@ -name: Publishing to GitHub Pages step 2 (run tests on branch) - -concurrency: - group: wf-${{github.event.pull_request.number || github.sha}}-${{github.workflow}} - cancel-in-progress: true - -on: - workflow_dispatch: - -jobs: - testcafe: - strategy: - fail-fast: false - matrix: - CONSTEL: [react(1/4), react(2/4), react(3/4), react(4/4), vue(1/4), vue(2/4), vue(3/4), vue(4/4), angular(1/4), angular(2/4), angular(3/4), angular(4/4)] - THEME: ['generic.light', 'material.blue.light', 'fluent.blue.light'] - - - runs-on: ubuntu-22.04 - name: testcafe-${{ matrix.CONSTEL }}-${{ matrix.THEME }} - timeout-minutes: 60 - env: - TARGET_BRANCH: ${{ github.ref_name }} - - steps: - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Checkout gh-pages branch - uses: actions/checkout@v4 - with: - ref: gh-pages - path: gh-pages - - - name: Run Web Server - working-directory: gh-pages - run: | - python -m http.server 8080 & - python -m http.server 8081 & - python -m http.server 8082 & - python -m http.server 8083 & - - - name: Checkout main branch - uses: actions/checkout@v4 - with: - ref: ${{ env.TARGET_BRANCH }} - path: devextreme - - - name: Console.log ls - run: ls -al & cd gh-pages & ls -al - - - name: Setup Chrome - uses: ./devextreme/.github/actions/setup-chrome - with: - chrome-version: '145.0.7632.67' - - - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: | - ${{ env.STORE_PATH }} - .nx/cache - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store - - - name: Install dependencies - working-directory: devextreme - run: | - corepack enable - pnpm install --frozen-lockfile - - - name: Run TestCafe tests - working-directory: devextreme/apps/demos - env: - CHANGEDFILEINFOSPATH: changed-files.json - BROWSERS: chrome:headless --window-size=1200,800 --disable-partial-raster --disable-skia-runtime-opts --run-all-compositor-stages-before-draw --disable-new-content-rendering-timeout --disable-threaded-animation --disable-threaded-scrolling --disable-checker-imaging --disable-image-animation-resync --use-gl="swiftshader" --disable-features=PaintHolding --js-flags=--random-seed=2147483647 --font-render-hinting=none --disable-font-subpixel-positioning - #DEBUG: hammerhead:*,testcafe:* - CONCURRENCY: 4 - TCQUARANTINE: true - CONSTEL: ${{ matrix.CONSTEL }} - THEME: ${{ matrix.THEME }} - ISGITHUBDEMOS: true - # DISABLE_DEMO_TEST_SETTINGS: all # Uncomment to ignore all the visualtestrc.json settings - # DISABLE_DEMO_TEST_SETTINGS: ignore # Uncomment to ignore the `ignore` field - # DISABLE_DEMO_TEST_SETTINGS: comparison-options # Uncomment to ignore the `comparison-options` field - CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally - run: pnpm exec nx test-testcafe - - - name: Copy screenshots artifacts - if: ${{ failure() }} - uses: actions/upload-artifact@v4 - with: - name: screenshots - path: ${{ github.workspace }}/devextreme/apps/demos/testing/artifacts/compared-screenshots/**/* - if-no-files-found: ignore diff --git a/apps/demos/.eslintignore b/apps/demos/.eslintignore index 1c2b7c09e547..798dd85c3f94 100644 --- a/apps/demos/.eslintignore +++ b/apps/demos/.eslintignore @@ -1,7 +1,6 @@ node_modules bundles/* coverage -publish-demos/* Demos/**/testcafe-test-code.js shared/empty-file.ts diff --git a/apps/demos/.eslintrc.js b/apps/demos/.eslintrc.js index 68beb90852a8..998840b90cb9 100644 --- a/apps/demos/.eslintrc.js +++ b/apps/demos/.eslintrc.js @@ -272,7 +272,6 @@ module.exports = { 'xhr', 'Xmla', 'xmla', - 'yargs', 'youtube', 'ytd', 'zipcode', diff --git a/apps/demos/.gitignore b/apps/demos/.gitignore index 149033c3dfae..5f839aa28346 100644 --- a/apps/demos/.gitignore +++ b/apps/demos/.gitignore @@ -31,7 +31,3 @@ Demos/**/config.js Demos/**/tsconfig.json .DS_Store -publish-demos - -.angular -angular.json diff --git a/apps/demos/.prettierignore b/apps/demos/.prettierignore index 244b69139b66..fb3be09f8920 100644 --- a/apps/demos/.prettierignore +++ b/apps/demos/.prettierignore @@ -7,6 +7,4 @@ *.md *.json .github -publish-demos coverage -utils/**/template.html diff --git a/apps/demos/.stylelintignore b/apps/demos/.stylelintignore index e48bb9ae0821..4ebc8aea50e0 100644 --- a/apps/demos/.stylelintignore +++ b/apps/demos/.stylelintignore @@ -1,2 +1 @@ -publish-demos coverage diff --git a/apps/demos/configs/Angular/tsconfig.json b/apps/demos/configs/Angular/tsconfig.json index 2f469878a2dd..f69013934b4f 100644 --- a/apps/demos/configs/Angular/tsconfig.json +++ b/apps/demos/configs/Angular/tsconfig.json @@ -10,5 +10,5 @@ "@angular/*": [ "../../../../node_modules/@angular/*"] }, }, - "include": ["**/*", "../../../../utils/create-bundles/Angular/polyfill.ts"] + "include": ["**/*"] } diff --git a/apps/demos/package.json b/apps/demos/package.json index ba6ad45f1b64..a87a9896454b 100644 --- a/apps/demos/package.json +++ b/apps/demos/package.json @@ -15,8 +15,6 @@ "devextreme-vue": "workspace:~" }, "dependencies": { - "@angular/cli": "17.3.11", - "@angular-devkit/build-angular": "17.3.11", "@angular/common": "17.3.12", "@angular/compiler": "17.3.12", "@angular/compiler-cli": "17.3.12", @@ -43,8 +41,6 @@ "devextreme-cldr-data": "1.0.3", "devextreme-quill": "catalog:", "dx-systemjs-vue-browser": "1.1.2", - "esbuild": "0.19.3", - "esbuild-plugin-vue3": "0.3.2", "eslint-plugin-react-hooks": "4.6.0", "exceljs": "4.4.0", "file-saver-es": "2.0.5", @@ -84,7 +80,6 @@ "vue": "^3.3.4", "vuex": "4.0.0-beta.4", "whatwg-fetch": "2.0.4", - "yargs": "17.7.2", "zone.js": "0.14.10" }, "devDependencies": { @@ -100,7 +95,6 @@ "@types/fs-extra": "11.0.2", "@types/react": "17.0.2", "@types/react-dom": "17.0.2", - "@types/yargs": "17.0.32", "@typescript-eslint/parser": "5.62.0", "@vue/eslint-config-typescript": "12.0.0", "axe-core": "4.10.2", @@ -166,11 +160,6 @@ "prepare-bundles": "pnpm run generate-devextreme-angular-umd && gulp bundles && gulp update-config", "convert-to-js": "ts-node ./utils/ts-to-js-converter/cli.ts", "create-typestat-cfg": "cd ./utils/internal && node ./create-typestat-cfg.js", - "make-demos-bundle": "ts-node ./utils/create-bundles", - "update-angular-json": "ts-node ./utils/create-bundles/Angular/update-angular-json.ts", - "build-angular": "ng build", - "post-process-angular": "ts-node ./utils/create-bundles/Angular/post-process-index.ts", - "webserver-gh": "cd ./publish-demos && http-server --port 5645", "ts-check-react": "pnpm exec tsc --noEmit --project tsconfig.react-check.json", "ts-check-ng": "pnpm exec ngc --noEmit --project tsconfig.ngc-check.json", "ts-check-vue": "pnpm exec vue-tsc --noEmit --project tsconfig.vue-check.json" diff --git a/apps/demos/testing/common.test.js b/apps/demos/testing/common.test.js index af44f5a74f92..6379a1116dd1 100644 --- a/apps/demos/testing/common.test.js +++ b/apps/demos/testing/common.test.js @@ -25,8 +25,6 @@ import { createMdReport, createTestCafeReport } from '../utils/axe-reporter/repo import knownWarnings from './known-warnings.json'; import skipJsErrorsComponents from './skip-js-errors-components.json'; -import { gitHubIgnored } from '../utils/visual-tests/github-ignored-list'; - const execCode = ClientFunction((code) => { // eslint-disable-next-line no-eval const result = eval(code); @@ -415,19 +413,8 @@ FRAMEWORKS.forEach((approach) => { } } - const isGitHubDemos = process.env.ISGITHUBDEMOS; - let pageURL = ''; - const theme = process.env.THEME.replace('generic.', ''); - if (isGitHubDemos) { - pageURL = `http://127.0.0.1:808${getPortByIndex(index)}/Demos/${widgetName}/${demoName}/${approach}/?theme=dx.${theme}`; - } else { - changeTheme(__dirname, `../${demoPath}/index.html`, process.env.THEME); - pageURL = `http://127.0.0.1:808${getPortByIndex(index)}/apps/demos/Demos/${widgetName}/${demoName}/${approach}/`; - } - // remove when tests enabled not only for datagrid - if (isGitHubDemos && (widgetName !== 'DataGrid' || gitHubIgnored.includes(demoName))) { - return; - } + changeTheme(__dirname, `../${demoPath}/index.html`, process.env.THEME); + const pageURL = `http://127.0.0.1:808${getPortByIndex(index)}/apps/demos/Demos/${widgetName}/${demoName}/${approach}/`; if (shouldSkipDemo(approach, widgetName, demoName, SKIPPED_TESTS)) { return; @@ -473,15 +460,7 @@ FRAMEWORKS.forEach((approach) => { } else { const testTheme = process.env.THEME; - let comparisonResult; - if (isGitHubDemos) { - comparisonResult = await compareScreenshot(t, `${testName}${getThemePostfix(testTheme)}.png`, undefined, (comparisonOptions && { - ...comparisonOptions, - ...{ looksSameComparisonOptions: { antialiasingTolerance: 10 } }, - })); - } else { - comparisonResult = await compareScreenshot(t, `${testName}${getThemePostfix(testTheme)}.png`, undefined, comparisonOptions); - } + const comparisonResult = await compareScreenshot(t, `${testName}${getThemePostfix(testTheme)}.png`, undefined, comparisonOptions); const consoleMessages = await t.getBrowserConsoleMessages(); diff --git a/apps/demos/utils/create-bundles/Angular/bundler.ts b/apps/demos/utils/create-bundles/Angular/bundler.ts deleted file mode 100644 index a1a7b9ac8799..000000000000 --- a/apps/demos/utils/create-bundles/Angular/bundler.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { exec } from 'child_process'; -import { BuildOptions, build } from 'esbuild'; -import { existsSync, mkdirSync, removeSync } from 'fs-extra'; -import { Demo, Framework } from '../helper/types'; -import { createDemoLayout, getDestinationPathByDemo, getSourcePathByDemo } from '../helper'; -import { getIndexHtmlPath, getProjectNameByDemo } from './utils'; - -interface Bundler { - framework: Framework; - getBuildOptions(demo: Demo): BuildOptions; - buildDemo(demo: Demo, res): void; -} -export default class AngularBundler implements Bundler { - framework: Framework; - - constructor() { - this.framework = 'Angular'; - } - - getBuildOptions = (demo: Demo): BuildOptions => ({}); - - buildDemo = (demo: Demo, res): Promise => { - const sourceDemoPath = getSourcePathByDemo(demo, this.framework); - if (!existsSync(sourceDemoPath)) { - res(); - return; - } - - const destinationDemoPath = getDestinationPathByDemo(demo, this.framework); - const indexHtmlPath = getIndexHtmlPath(demo); - - if (existsSync(destinationDemoPath)) { - removeSync(destinationDemoPath); - } - - if (existsSync(indexHtmlPath)) { - removeSync(indexHtmlPath); - } - - mkdirSync(destinationDemoPath, { recursive: true }); - mkdirSync(indexHtmlPath, { recursive: true }); - - createDemoLayout(demo, this.framework); - - const ngBuildCommand = `npm run build-angular -- ${getProjectNameByDemo(demo)}`; - const ngBuildProcess = exec(ngBuildCommand); - ngBuildProcess.stdout.on('data', (data) => { - console.log(`stdout: ${data}`); - }); - ngBuildProcess.stderr.on('data', (data) => { - console.error(`stderr: ${data}`); - }); - ngBuildProcess.on('close', (code) => { - console.log(`child process exited with code ${code}`); - res(); - }); - }; -} diff --git a/apps/demos/utils/create-bundles/Angular/polyfill.ts b/apps/demos/utils/create-bundles/Angular/polyfill.ts deleted file mode 100644 index aa09a9ff6ae6..000000000000 --- a/apps/demos/utils/create-bundles/Angular/polyfill.ts +++ /dev/null @@ -1 +0,0 @@ -import 'zone.js'; diff --git a/apps/demos/utils/create-bundles/Angular/post-process-index.ts b/apps/demos/utils/create-bundles/Angular/post-process-index.ts deleted file mode 100644 index 111bea0f6df5..000000000000 --- a/apps/demos/utils/create-bundles/Angular/post-process-index.ts +++ /dev/null @@ -1,91 +0,0 @@ -import fs from 'fs'; -import path from 'path'; - -const demoProjectsDir = path.join(__dirname, '../../../publish-demos/Demos/'); - -// In the demo, we need to wait, while themes are loaded -// Angular build add scripts to the end of index.html, here we are wrapping them in onload callback -function wrapBundleScripts(filePath) { - fs.readFile(filePath, 'utf8', (err, data) => { - if (err) { - console.error(`Error reading file ${filePath}:`, err); - return; - } - - const polyfillRegex = /<\/script>/g; - const runtimeRegex = /<\/script>/g; - const mainRegex = /<\/script>/g; - - const scripts = []; - - [polyfillRegex, runtimeRegex, mainRegex].forEach(regex => { - const match = regex.exec(data); - if (match) { - scripts.push(match[1]); - } - }); - - if (scripts.length === 0) { - console.log("There are no bundle scripts to edit"); - return; - } - - const cleanedHtml = data.replace(polyfillRegex, '').replace(runtimeRegex, '').replace(mainRegex, ''); - - const wrappedBundleScripts = ` - - `; - - const newHtml = cleanedHtml.replace('', wrappedBundleScripts); - - fs.writeFile(filePath, newHtml, 'utf8', (err) => { - if (err) { - console.error(`Error writing file ${filePath}:`, err); - return; - } - console.log(`Modified ${filePath} successfully.`); - }); - }); -} - -function processDemoProjects(demosDirectory) { - fs.readdir(demosDirectory, (err, widgets) => { - if (err) { - console.error(`Error reading directory ${demosDirectory}:`, err); - return; - } - - widgets.forEach((widget) => { - const widgetPath = path.join(demosDirectory, widget); - fs.readdir(widgetPath, (err, demoName) => { - if (err) { - console.error(`Error reading directory ${widgetPath}:`, err); - return; - } - demoName.forEach((demo) => { - const filePath = path.join(widgetPath, demo, 'Angular', 'index.html'); - if (fs.existsSync(filePath)) { - wrapBundleScripts(filePath); - } else { - console.warn(`File not found: ${filePath}`); - } - }); - }) - }); - - - }); -} - -processDemoProjects(demoProjectsDir) \ No newline at end of file diff --git a/apps/demos/utils/create-bundles/Angular/template.html b/apps/demos/utils/create-bundles/Angular/template.html deleted file mode 100644 index 7acb8301f99c..000000000000 --- a/apps/demos/utils/create-bundles/Angular/template.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - {{demo_title}} - - - - - {{additional_css}} - - - - - -
- Loading... -
- - - - - diff --git a/apps/demos/utils/create-bundles/Angular/update-angular-json.ts b/apps/demos/utils/create-bundles/Angular/update-angular-json.ts deleted file mode 100644 index 64a3d1f7829b..000000000000 --- a/apps/demos/utils/create-bundles/Angular/update-angular-json.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { writeFileSync, existsSync } from 'fs-extra'; -import { relative, join } from 'path'; -import { Demo, Item } from '../helper/types'; -import { getSourcePathByDemo, getDestinationPathByDemo, isSkipDemo } from '../helper'; -import * as menuMeta from '../../../menuMeta.json'; -import { getProjectNameByDemo, getIndexHtmlPath } from './utils'; - -// use this script either from npm, or from devextreme-demos root folder -const rootFolder = process.cwd(); - -const createConfigForDemo = (Demo: Demo) => { - const demoSourcePath = getSourcePathByDemo(Demo, 'Angular').split('\\').join('/'); - const demoSourcePathRelative = getSourcePathByDemo(Demo, 'Angular', true).split('\\').join('/'); - const demoDestinationPathRelative = getDestinationPathByDemo(Demo, 'Angular', true).split('\\').join('/'); - const indexPath = relative( - rootFolder, - join(getIndexHtmlPath(Demo), 'index.html'), - ).split('\\').join('/'); - return { - projectType: 'application', - schematics: { - '@schematics/angular:application': { - strict: false, - }, - }, - root: demoSourcePathRelative, - sourceRoot: demoSourcePathRelative, - - architect: { - build: { - builder: '@angular-devkit/build-angular:browser-esbuild', - options: { - outputPath: demoDestinationPathRelative, - index: `${indexPath}`, - main: `${demoSourcePathRelative}/app/app.component.ts`, - polyfills: join(__dirname, 'polyfill.ts').split('\\').join('/'), - tsConfig: `${demoSourcePathRelative}/tsconfig.json`, - scripts: [], - allowedCommonJsDependencies: [ - 'jszip', - 'devexpress-diagram', - 'devexpress-gantt', - 'devextreme-quill', - 'devextreme-aspnet-data-nojquery' - ] - }, - configurations: { - production: { - budgets: [ - { - type: 'initial', - maximumWarning: '2mb', - maximumError: '4mb', - }, - { - type: 'anyComponentStyle', - maximumWarning: '2kb', - maximumError: '4kb', - }, - ], - outputHashing: 'all', - }, - }, - defaultConfiguration: 'production', - }, - }, - }; -}; - -const createAngularJson = () => { - const angularJsonObject = { - version: 1, - newProjectRoot: 'projects', - projects: {}, - }; - const menu: Item[] = (menuMeta as any).default; - - for (const meta of menu) { - for (const group of meta.Groups) { - const demos = group.Demos || []; - for (const demo of demos) { - if (!isSkipDemo(demo)) { - if (existsSync(getSourcePathByDemo(demo, 'Angular'))) { - console.log(`Angular Config created: ${demo.Widget} - ${demo.Name}`); - - angularJsonObject.projects[getProjectNameByDemo(demo)] = createConfigForDemo(demo); - } else { - console.log(`No angular project for: ${demo.Widget} - ${demo.Name}`); - } - } - } - } - } - - const jsonString = JSON.stringify(angularJsonObject); - const filePath = 'angular.json'; - writeFileSync(filePath, jsonString); -}; - -createAngularJson(); diff --git a/apps/demos/utils/create-bundles/Angular/utils.ts b/apps/demos/utils/create-bundles/Angular/utils.ts deleted file mode 100644 index 74bd626eb113..000000000000 --- a/apps/demos/utils/create-bundles/Angular/utils.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { join } from 'path'; -import { getDestinationPathByDemo } from '../helper'; -import { Demo } from '../helper/types'; - -export const getProjectNameByDemo = (Demo: Demo) => (`${Demo.Widget.toLowerCase()}-${Demo.Name.toLowerCase()}`); -export const getIndexHtmlPath = (Demo: Demo) => (join(getDestinationPathByDemo(Demo, 'Angular'), '..', 'AngularTemplates')); diff --git a/apps/demos/utils/create-bundles/React/bundler.ts b/apps/demos/utils/create-bundles/React/bundler.ts deleted file mode 100644 index f7d61dd84f47..000000000000 --- a/apps/demos/utils/create-bundles/React/bundler.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { BuildOptions } from 'esbuild'; -import { join, resolve } from 'path'; -import ignoreMissingCss from '../plugins/ignore-missing-css'; -import { - getDestinationPathByDemo, getSourcePathByDemo, -} from '../helper'; -import { ESBundler } from '../helper/bundler'; -import { Demo } from '../helper/types'; - -export default class ReactBundler extends ESBundler { - constructor() { - super('React'); - } - - getBuildOptions = (demo: Demo): BuildOptions => { - const sourceDemoPath = getSourcePathByDemo(demo, this.framework); - const destinationDemoPath = getDestinationPathByDemo(demo, this.framework); - - const options: BuildOptions = { - bundle: true, - minify: true, - loader: { - '.js': 'jsx', - '.png': 'dataurl', - '.svg': 'dataurl', - }, - entryNames: '[dir]/bundle.[hash]', - outdir: destinationDemoPath, - alias: { - react: resolve(__dirname, '../../../node_modules/react'), - 'react-dom': resolve(__dirname, '../../../node_modules/react-dom'), - }, - entryPoints: this.#getEntryPoints(sourceDemoPath), - plugins: [ignoreMissingCss], - }; - - return options; - }; - - #getEntryPoints = (sourceDemoPath: string) => [join(sourceDemoPath, 'index.js'), join(sourceDemoPath, 'styles.css')]; -} diff --git a/apps/demos/utils/create-bundles/React/template.html b/apps/demos/utils/create-bundles/React/template.html deleted file mode 100644 index 7d9fafd53a83..000000000000 --- a/apps/demos/utils/create-bundles/React/template.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - {{demo_title}} - - - - {{additional_css}} - - - - -
- - - - - - diff --git a/apps/demos/utils/create-bundles/Vue/bundler.ts b/apps/demos/utils/create-bundles/Vue/bundler.ts deleted file mode 100644 index 8bc31139686c..000000000000 --- a/apps/demos/utils/create-bundles/Vue/bundler.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { BuildOptions } from 'esbuild'; -// eslint-disable-next-line import/no-extraneous-dependencies -import vuePlugin from 'esbuild-plugin-vue3'; -import { join } from 'path'; -import { - getDestinationPathByDemo, getSourcePathByDemo, -} from '../helper'; -import { ESBundler } from '../helper/bundler'; -import { Demo } from '../helper/types'; - -export default class VueBundler extends ESBundler { - constructor() { - super('Vue'); - } - - getBuildOptions = (demo: Demo): BuildOptions => { - const sourceDemoPath = getSourcePathByDemo(demo, this.framework); - const destinationDemoPath = getDestinationPathByDemo(demo, this.framework); - - const options: BuildOptions = { - bundle: true, - minify: true, - loader: { - '.png': 'dataurl', - '.svg': 'dataurl', - }, - entryNames: '[dir]/bundle.[hash]', - outdir: destinationDemoPath, - entryPoints: this.#getEntryPoints(sourceDemoPath), - plugins: [vuePlugin() as any], - define: { - __VUE_OPTIONS_API__: 'true', - __VUE_PROD_DEVTOOLS__: 'false', - }, - }; - - return options; - }; - - #getEntryPoints = (sourceDemoPath: string) => [join(sourceDemoPath, 'index.js')]; -} diff --git a/apps/demos/utils/create-bundles/Vue/template.html b/apps/demos/utils/create-bundles/Vue/template.html deleted file mode 100644 index 7f800b630cb5..000000000000 --- a/apps/demos/utils/create-bundles/Vue/template.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - {{demo_title}} - - - - {{additional_css}} - - - {{custom_css}} - - -
- - - - - diff --git a/apps/demos/utils/create-bundles/helper/bundler.ts b/apps/demos/utils/create-bundles/helper/bundler.ts deleted file mode 100644 index 79ae9b1bdc99..000000000000 --- a/apps/demos/utils/create-bundles/helper/bundler.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { BuildOptions, build } from 'esbuild'; -import { existsSync, mkdirSync, removeSync } from 'fs-extra'; -import { Demo, Framework } from './types'; -import { createDemoLayout, getDestinationPathByDemo, getSourcePathByDemo } from '.'; - -interface Bundler { - framework: Framework; - getBuildOptions(demo: Demo): BuildOptions; - buildDemo(demo: Demo, res): Promise; -} - -export abstract class ESBundler implements Bundler { - abstract getBuildOptions(demo: Demo): BuildOptions; - - framework: Framework; - - constructor(framework: Framework) { - this.framework = framework; - } - - buildDemo = async (demo: Demo, res): Promise => { - const sourceDemoPath = getSourcePathByDemo(demo, this.framework); - if (!existsSync(sourceDemoPath)) { - res(); - return; - } - - const destinationDemoPath = getDestinationPathByDemo(demo, this.framework); - if (existsSync(destinationDemoPath)) { - removeSync(destinationDemoPath); - } - - mkdirSync(destinationDemoPath, { recursive: true }); - - const options = this.getBuildOptions(demo); - await build(options); - - createDemoLayout(demo, this.framework); - res(); - }; -} diff --git a/apps/demos/utils/create-bundles/helper/external-resource-metadata.ts b/apps/demos/utils/create-bundles/helper/external-resource-metadata.ts deleted file mode 100644 index 9d5a6cf7a9e3..000000000000 --- a/apps/demos/utils/create-bundles/helper/external-resource-metadata.ts +++ /dev/null @@ -1,400 +0,0 @@ -const fontAwesome = ''; -const polyfillMin = ''; -interface resorceLinksType { - [Widget: string]: { - [Name: string]: { - resources: Resource[]; - }; - }; -} -interface Resource { - link?: string; - title?: string; - frameworks: ("React" | "Vue" | "Angular")[]; -} -export const resourceLinks: resorceLinksType = { - Button: { - Icons: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue", "Angular"], - }, - ], - }, - }, - Calendar: { - MultipleSelection: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - Overview: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - Charts: { - Doughnut: { - resources: [ - { - link: polyfillMin, - frameworks: [], - }, - ], - }, - }, - CheckBox: { - Overview: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - DateRangeBox: { - Overview: { - resources: [ - { - link: fontAwesome, - frameworks: ["React"], - }, - ], - }, - }, - Diagram: { - Adaptability: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - AdvancedDataBinding: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - Containers: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - CustomShapesWithIcons: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - CustomShapesWithTemplates: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - CustomShapesWithTemplatesWithEditing: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - CustomShapesWithTexts: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - ImagesInShapes: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - ItemSelection: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - NodesAndEdgesArrays: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - NodesArrayHierarchicalStructure: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - NodesArrayPlainStructure: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - OperationRestrictions: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - Overview: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - ReadOnly: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - SimpleView: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - UICustomization: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - WebAPIService: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - Drawer: { - LeftOrRightPosition: { - resources: [ - { - link: fontAwesome, - frameworks: ["Angular"], - }, - ], - }, - TopOrBottomPosition: { - resources: [ - { - link: fontAwesome, - frameworks: ["Angular"], - }, - ], - }, - }, - FilterBuilder: { - Customization: { - resources: [ - { - link: fontAwesome, - frameworks: ["Angular"], - }, - ], - }, - WithDataGrid: { - resources: [ - { - link: fontAwesome, - frameworks: ["Angular"], - }, - ], - }, - WithList: { - resources: [ - { - link: fontAwesome, - frameworks: ["Angular"], - }, - ], - }, - }, - Form: { - ColumnsAdaptability: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - CustomizeItem: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - GroupedFields: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - Overview: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - UpdateItemsDynamically: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - Validation: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - Lookup: { - Templates: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - PivotGrid: { - ChartIntegration: { - resources: [ - { - link: polyfillMin, - frameworks: [], - }, - ], - }, - Overview: { - resources: [ - { - link: polyfillMin, - frameworks: [], - }, - ], - }, - }, - SelectBox: { - GroupedItems: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - SearchAndEditing: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - Slider: { - Overview: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - Sortable: { - Customization: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - TagBox: { - GroupedItems: { - resources: [ - { - link: fontAwesome, - frameworks: ["React", "Vue"], - }, - ], - }, - }, - TileView: { - ItemTemplate: { - resources: [ - { - link: polyfillMin, - frameworks: [], - }, - ], - }, - }, -}; diff --git a/apps/demos/utils/create-bundles/helper/index.ts b/apps/demos/utils/create-bundles/helper/index.ts deleted file mode 100644 index 51125e36940f..000000000000 --- a/apps/demos/utils/create-bundles/helper/index.ts +++ /dev/null @@ -1,201 +0,0 @@ -import { - existsSync, readFileSync, writeFileSync, readdirSync, copyFileSync, mkdirSync, copySync, - removeSync, cpSync, -} from 'fs-extra'; -import { - join, basename, extname, relative, -} from 'path'; -import { createHash } from 'crypto'; -import { version as DX_Version } from 'devextreme/package.json'; -import { Demo, Framework } from './types'; -import { resourceLinks } from './external-resource-metadata'; -import gitHubIgnored from '../../visual-tests/github-ignored-list'; - -export const isSkipDemo = (demo: Demo) => { - const { Widget, Name } = demo; - const shouldSkip = gitHubIgnored.includes(Widget) || gitHubIgnored.includes(Name); - - return shouldSkip; -}; - -const demosRootDir = join(__dirname, '..', '..', '..'); -const destinationPublishDir = join(demosRootDir, 'publish-demos'); - -export const getDemoPath = (path: string = '', demo: Demo, framework: string) => { - return join(path, 'Demos', demo.Widget, demo.Name, framework); -} - -export const getSourcePathByDemo = (demo: Demo, framework: string, relative = false) => { - if (relative) { - return getDemoPath('', demo, framework); - } - return getDemoPath(demosRootDir, demo, framework); -} - -export const getDestinationPathByDemo = (demo: Demo, framework: string, relative = false) => { - if (relative) { - return getDemoPath('publish-demos', demo, framework); - } - return getDemoPath(destinationPublishDir, demo, framework); -} - -const getFileHash = (fileContent: string) => { - const hash = createHash('shake256', { outputLength: 4 }).update(fileContent); - const hashResult = hash.digest('hex'); - return hashResult; -}; - -const getTemplateContent = (framework: Framework) => { - const templatePath = join(__dirname, '..', framework, 'template.html'); - if (!existsSync(templatePath)) { - throw new Error(`Not found ${framework} template\n${templatePath}`); - } - - const templateContent = readFileSync(templatePath, { encoding: 'utf-8' }); - return templateContent; -}; - -const getBundlePath = (demoPath: string, prefix: string, postfix: string) => readdirSync(demoPath) - .find((item) => item.startsWith(prefix) && item.endsWith(postfix)); - -const widgetsWithSpecificCss = ['Gantt', 'Diagram']; - -const getSpecificCssPath = (WidgetName: string, demoPath: string) => { - if (!widgetsWithSpecificCss.includes(WidgetName)) { - return ''; - } - return relative( - demoPath, - join( - destinationPublishDir, - 'css', - `dx-${WidgetName.toLowerCase()}.css`, - ), - ).split('\\').join('/'); -}; - -export const copyVueCustomCss = (demo: Demo): boolean => { - const customCssPath = join(getSourcePathByDemo(demo, 'Vue'), 'styles.css'); - const destinationDir = join(getDestinationPathByDemo(demo, 'Vue'), 'styles.css'); - - if (existsSync(customCssPath)) { - copyFileSync(customCssPath, destinationDir); - return true; - } - return false; -}; - -const addExternalResources = (demo: Demo, framework: Framework, cssLinks: string) => { - let newCssLinks = cssLinks; - const externalResources = resourceLinks[demo.Widget]?.[demo.Name]; - externalResources?.resources?.forEach(resource => { - if (resource.frameworks.includes(framework)){ - newCssLinks = newCssLinks.concat('\n', resource.link) - } - }); - return newCssLinks; -} - -export const createDemoLayout = (demo: Demo, framework: Framework) => { - const demoPath = getDestinationPathByDemo(demo, framework); - const demoHtmlPath = framework !== 'Angular' - ? join(demoPath, 'index.html') - : join(demoPath, '..', 'AngularTemplates', 'index.html'); - const templateContent = getTemplateContent(framework); - - const metadataScripts = join(destinationPublishDir, 'scripts'); - let cssLinks = ``; - - cssLinks = addExternalResources(demo, framework, cssLinks); - - let hasCustomCss = false; - - if (framework === 'Vue') { - hasCustomCss = copyVueCustomCss(demo); - } - - const options = { - css_bundle_path: getBundlePath(demoPath, 'bundle', '.css'), - demo_title: `${framework} ${demo.Widget} - ${demo.Title} - DevExtreme ${framework} Demo`, - dx_version: DX_Version, - js_bundle_path: getBundlePath(demoPath, 'bundle', '.js'), - init_theme: getBundlePath(metadataScripts, 'init-theme', '.js'), - additional_css: cssLinks, - custom_css: hasCustomCss ? '' : '', - }; - - let result = templateContent; - Object.keys(options).forEach((key) => { - result = result.replace(`{{${key}}}`, options[key]); - }); - - writeFileSync(demoHtmlPath, result, { encoding: 'utf-8' }); -}; - -const getFilesByPath = (sourcePath: string) => { - const files = readdirSync(sourcePath); - const filePaths = []; - - files.forEach((fileName) => { - const filePath = join(sourcePath, fileName); - filePaths.push(filePath); - }); - - return filePaths; -}; - -const getFileInfo = (filePath: string) => { - const fileExt = extname(filePath); - const fileName = basename(filePath, fileExt); - - return { - ext: fileExt, - name: fileName, - }; -}; - -const copyMetadataDir = (sourceDir: string, destinatonDir: string) => { - const listFiles = getFilesByPath(sourceDir); - if (existsSync(destinatonDir)) { - removeSync(destinatonDir); - } - mkdirSync(destinatonDir, { recursive: true }); - listFiles.forEach((sourceFilePath) => { - const fileContent = readFileSync(sourceFilePath, 'utf-8'); - const hash = getFileHash(fileContent); - const fileInfo = getFileInfo(sourceFilePath); - - const hashName = `${fileInfo.name}.${hash}${fileInfo.ext}`; - const destinationFilePath = join(destinatonDir, hashName); - - console.log(`Copy metadata ${fileInfo.name}${fileInfo.ext}\n ${sourceFilePath}\n ${destinationFilePath}`); - copyFileSync(sourceFilePath, destinationFilePath); - }); -}; - -export const copyMetadata = () => { - const sourceScripts = join(__dirname, 'metadata', 'scripts'); - const destScripts = join(destinationPublishDir, 'scripts'); - copyMetadataDir(sourceScripts, destScripts); - - const nodeModulesPath = join(__dirname, '..', '..', '..', 'node_modules'); - - const imagesPath = join(__dirname, '..', '..', '..', 'images'); - const imagesDest = join(destinationPublishDir, 'images'); - cpSync(imagesPath, imagesDest, {recursive: true}); - - const destinationCss = join(destinationPublishDir, 'css'); - - const themesPath = join(nodeModulesPath, 'devextreme', 'dist', 'css'); - cpSync(themesPath, destinationCss, {recursive: true}); - - const diagramCssPath = join(nodeModulesPath, 'devexpress-diagram', 'dist', 'dx-diagram.css'); - copySync(diagramCssPath, join(destinationCss, 'dx-diagram.css')); - - const ganttCssPath = join(nodeModulesPath, 'devexpress-gantt', 'dist', 'dx-gantt.css'); - copySync(ganttCssPath, join(destinationCss, 'dx-gantt.css')); - - const sourceData = join(demosRootDir, 'data'); - const destinationData = join(destinationPublishDir, 'data'); - copySync(sourceData, destinationData); -}; diff --git a/apps/demos/utils/create-bundles/helper/metadata/scripts/init-theme.js b/apps/demos/utils/create-bundles/helper/metadata/scripts/init-theme.js deleted file mode 100644 index a26a880bb33f..000000000000 --- a/apps/demos/utils/create-bundles/helper/metadata/scripts/init-theme.js +++ /dev/null @@ -1,11 +0,0 @@ -// eslint-disable-next-line no-unused-vars -function DXDemoTheme() { - const searchParams = new URLSearchParams(window.location.search); - const theme = searchParams.get('theme') ?? 'dx.material.blue.light'; - - const themeLink = document.createElement('link'); - themeLink.rel = 'stylesheet'; - themeLink.href = `../../../../css/${theme}.css`; - - document.head.appendChild(themeLink); -} diff --git a/apps/demos/utils/create-bundles/helper/types.ts b/apps/demos/utils/create-bundles/helper/types.ts deleted file mode 100644 index 439464478c8e..000000000000 --- a/apps/demos/utils/create-bundles/helper/types.ts +++ /dev/null @@ -1,26 +0,0 @@ -export type Framework = 'Angular' | 'React' | 'Vue'; - -export type Args = { - framework: Framework, - 'copy-metadata': boolean, -}; - -export interface Demo { - Title: string; - Name: string; - DocUrl: string; - Widget: string; - DemoType: string; -} - -export interface Group { - Name: string; - Equivalents: string; - Demos: Demo[]; -} - -export interface Item { - Name: string; - Equivalents: string; - Groups: Group[]; -} diff --git a/apps/demos/utils/create-bundles/index.ts b/apps/demos/utils/create-bundles/index.ts deleted file mode 100644 index 1ca1b5b02094..000000000000 --- a/apps/demos/utils/create-bundles/index.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* eslint-disable import/no-extraneous-dependencies */ -import yargs from 'yargs'; - -import { - Framework, Args, Item, Demo, -} from './helper/types'; -import { copyMetadata, isSkipDemo } from './helper'; - -import { ESBundler } from './helper/bundler'; -import ReactBundler from './React/bundler'; -import VueBundler from './Vue/bundler'; -import AngularBundler from './Angular/bundler'; - -import * as menuMeta from '../../menuMeta.json'; - -const argv = yargs.options({ - framework: { type: 'string' }, - 'copy-metadata': { type: 'boolean' }, -}).argv as Args; - -const getBundler = (framework: Framework): ESBundler => { - if (framework === 'Angular') { - return new AngularBundler(); - } - if (framework === 'React') { - return new ReactBundler(); - } - - if (framework === 'Vue') { - return new VueBundler(); - } - - return undefined; -}; - -const menu: Item[] = (menuMeta as any).default; -const allDemos: Demo[] = []; - -for (const meta of menu) { - for (const group of meta.Groups) { - const demos = group.Demos || []; - for (const demo of demos) { - if (!isSkipDemo(demo)) { - allDemos.push(demo); - } - } - } -} - -async function processDemosInBatches(bundler: ESBundler, demoList: Demo[], batchSize: number) { - const batches = []; - for (let i = 0; i < demoList.length; i += batchSize) { - const batch = demoList.slice(i, i + batchSize); - // eslint-disable-next-line no-await-in-loop - batches.push(await processBatch(bundler, batch)); - } - await Promise.all(batches); -} - -async function processBatch(bundler: ESBundler, demos: Demo[]) { - const promises = demos.map((demo) => processDemo(bundler, demo)); - await Promise.all(promises); -} - -async function processDemo(bundler: ESBundler, demo: Demo) { - return new Promise((res, rej) => { - bundler.buildDemo(demo, res); - }).then(() => { console.log(`${bundler.framework} Demo: ${demo.Widget} - ${demo.Name}`); }); -} - -const currentBundler = getBundler(argv.framework); - -if (argv['copy-metadata']) { - copyMetadata(); -} -if (currentBundler) { - const CONSTEL = process.env.CONSTEL || '1/1'; - const [current, total] = CONSTEL.split('/').map(Number); - const start = (current - 1) * allDemos.length / total; - const end = start + allDemos.length / total; - const currentDemos = allDemos.slice(start, end); - - let batchSize = Math.ceil(allDemos.length / total); - if (currentBundler.framework === 'Angular') { - batchSize = 1; - processDemosInBatches(currentBundler, currentDemos, batchSize) - .then(() => { - console.log('All batches processed successfully.'); - }) - .catch((error) => { - console.error(`Error processing batches: ${error}`); - }); - } else { - processDemosInBatches(currentBundler, allDemos, 5); - } -} diff --git a/apps/demos/utils/create-bundles/plugins/ignore-missing-css.ts b/apps/demos/utils/create-bundles/plugins/ignore-missing-css.ts deleted file mode 100644 index ddd082d9a3d8..000000000000 --- a/apps/demos/utils/create-bundles/plugins/ignore-missing-css.ts +++ /dev/null @@ -1,22 +0,0 @@ -import * as fs from 'fs'; -import * as path from 'path'; -import { Plugin } from 'esbuild'; - -const ignoreMissingCssPlugin: Plugin = { - name: 'ignore-missing-css', - setup(build) { - build.onResolve({ filter: /\.css$/ }, (args) => { - const fullPath = path.resolve(args.resolveDir, args.path); - if (!fs.existsSync(fullPath)) { - return { path: args.path, namespace: 'ignore-missing-css' }; - } - }); - - build.onLoad({ filter: /\.css$/, namespace: 'ignore-missing-css' }, (args) => ({ - contents: '', - loader: 'css', - })); - }, -}; - -export default ignoreMissingCssPlugin; diff --git a/apps/demos/utils/visual-tests/github-ignored-list.js b/apps/demos/utils/visual-tests/github-ignored-list.js deleted file mode 100644 index e0425cc036ab..000000000000 --- a/apps/demos/utils/visual-tests/github-ignored-list.js +++ /dev/null @@ -1,14 +0,0 @@ -import menuMeta from '../../menuMeta.json'; - -const gridMeta = menuMeta[0].Groups; - -export const gitHubIgnored = gridMeta.reduce((result, Group) => { - if (Group.Demos) { - Group.Demos.forEach((demo) => { - if (demo.NoPreloaded) { - result.push(demo.Name); - } - }); - } - return result; -}, []).sort(); diff --git a/apps/demos/utils/visual-tests/matrix-test-helper.js b/apps/demos/utils/visual-tests/matrix-test-helper.js index 4669e5ebb76d..651eab8b4e13 100644 --- a/apps/demos/utils/visual-tests/matrix-test-helper.js +++ b/apps/demos/utils/visual-tests/matrix-test-helper.js @@ -413,8 +413,6 @@ export function runManualTestCore( framework, callback, ) { - const isGitHubDemos = process.env.ISGITHUBDEMOS; - const index = settings.manualTestIndex; settings.manualTestIndex += 1; @@ -424,19 +422,8 @@ export function runManualTestCore( const clientScriptSource = globalReadFrom(__dirname, `../../Demos/${widget}/${demo}/client-script.js`, (x) => [{ content: x }]) || []; - let testURL = ''; - - if (isGitHubDemos) { - if (widget !== 'DataGrid' || demo.NoPreloaded) { - return; - } - - const theme = process.env.THEME.replace('generic.', ''); - testURL = `http://127.0.0.1:808${getPortByIndex(index)}/${widget}/${demo}/${framework}/?theme=dx.${theme}`; - } else { - changeTheme(__dirname, `../../Demos/${widget}/${demo}/${framework}/index.html`, process.env.THEME); - testURL = `http://127.0.0.1:808${getPortByIndex(index)}/apps/demos/Demos/${widget}/${demo}/${framework}/`; - } + changeTheme(__dirname, `../../Demos/${widget}/${demo}/${framework}/index.html`, process.env.THEME); + const testURL = `http://127.0.0.1:808${getPortByIndex(index)}/apps/demos/Demos/${widget}/${demo}/${framework}/`; const test = testObject.clientScripts([ { module: 'mockdate' }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2f9b464c7195..7840e0f64f4d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -191,12 +191,6 @@ importers: apps/demos: dependencies: - '@angular-devkit/build-angular': - specifier: 17.3.11 - version: 17.3.11(qgmuymhl533uct6tjv7ho24aiy) - '@angular/cli': - specifier: 17.3.11 - version: 17.3.11(chokidar@3.6.0) '@angular/common': specifier: 17.3.12 version: 17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1) @@ -290,12 +284,6 @@ importers: dx-systemjs-vue-browser: specifier: 1.1.2 version: 1.1.2 - esbuild: - specifier: 0.19.3 - version: 0.19.3 - esbuild-plugin-vue3: - specifier: 0.3.2 - version: 0.3.2(cheerio@1.0.0-rc.10)(sass@1.85.0) eslint-plugin-react-hooks: specifier: 4.6.0 version: 4.6.0(eslint@8.56.0) @@ -413,9 +401,6 @@ importers: whatwg-fetch: specifier: 2.0.4 version: 2.0.4 - yargs: - specifier: 17.7.2 - version: 17.7.2 zone.js: specifier: 0.14.10 version: 0.14.10 @@ -456,9 +441,6 @@ importers: '@types/react-dom': specifier: 17.0.2 version: 17.0.2 - '@types/yargs': - specifier: 17.0.32 - version: 17.0.32 '@typescript-eslint/parser': specifier: 5.62.0 version: 5.62.0(eslint@8.56.0)(typescript@5.4.5) @@ -3833,12 +3815,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.14.54': - resolution: {integrity: sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.18.20': resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} engines: {node: '>=12'} @@ -10151,133 +10127,14 @@ packages: es6-weak-map@2.0.3: resolution: {integrity: sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==} - esbuild-android-64@0.14.54: - resolution: {integrity: sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - - esbuild-android-arm64@0.14.54: - resolution: {integrity: sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - - esbuild-darwin-64@0.14.54: - resolution: {integrity: sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - - esbuild-darwin-arm64@0.14.54: - resolution: {integrity: sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - - esbuild-freebsd-64@0.14.54: - resolution: {integrity: sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - - esbuild-freebsd-arm64@0.14.54: - resolution: {integrity: sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - - esbuild-linux-32@0.14.54: - resolution: {integrity: sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - - esbuild-linux-64@0.14.54: - resolution: {integrity: sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - - esbuild-linux-arm64@0.14.54: - resolution: {integrity: sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - - esbuild-linux-arm@0.14.54: - resolution: {integrity: sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - - esbuild-linux-mips64le@0.14.54: - resolution: {integrity: sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - - esbuild-linux-ppc64le@0.14.54: - resolution: {integrity: sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - - esbuild-linux-riscv64@0.14.54: - resolution: {integrity: sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - - esbuild-linux-s390x@0.14.54: - resolution: {integrity: sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - - esbuild-netbsd-64@0.14.54: - resolution: {integrity: sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - - esbuild-openbsd-64@0.14.54: - resolution: {integrity: sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - esbuild-plugin-alias@0.2.1: resolution: {integrity: sha512-jyfL/pwPqaFXyKnj8lP8iLk6Z0m099uXR45aSN8Av1XD4vhvQutxxPzgA2bTcAwQpa1zCXDcWOlhFgyP3GKqhQ==} - esbuild-plugin-vue3@0.3.2: - resolution: {integrity: sha512-KqZUPlIUS4vJLSexV3q5hgqIlsMWzlPtIuvZ1epZQvw/wJ/4vEPzEC1HQZduoHvUYvtnG703hsP1PsdpjTJ3ug==} - peerDependencies: - cheerio: ^1.0.0-rc.10 - html-minifier: ^4.0.0 - pug: ^3.0.2 - sass: ^1.35.2 - peerDependenciesMeta: - cheerio: - optional: true - html-minifier: - optional: true - pug: - optional: true - sass: - optional: true - esbuild-register@3.6.0: resolution: {integrity: sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==} peerDependencies: esbuild: '>=0.12 <1' - esbuild-sunos-64@0.14.54: - resolution: {integrity: sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - esbuild-wasm@0.20.1: resolution: {integrity: sha512-6v/WJubRsjxBbQdz6izgvx7LsVFvVaGmSdwrFHmEzoVgfXL89hkKPoQHsnVI2ngOkcBUQT9kmAM1hVL1k/Av4A==} engines: {node: '>=12'} @@ -10293,29 +10150,6 @@ packages: engines: {node: '>=18'} hasBin: true - esbuild-windows-32@0.14.54: - resolution: {integrity: sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - - esbuild-windows-64@0.14.54: - resolution: {integrity: sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - - esbuild-windows-arm64@0.14.54: - resolution: {integrity: sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - - esbuild@0.14.54: - resolution: {integrity: sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==} - engines: {node: '>=12'} - hasBin: true - esbuild@0.18.20: resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} engines: {node: '>=12'} @@ -18954,99 +18788,6 @@ snapshots: transitivePeerDependencies: - chokidar - '@angular-devkit/build-angular@17.3.11(qgmuymhl533uct6tjv7ho24aiy)': - dependencies: - '@ampproject/remapping': 2.3.0 - '@angular-devkit/architect': 0.1703.11(chokidar@3.6.0) - '@angular-devkit/build-webpack': 0.1703.11(chokidar@3.6.0)(webpack-dev-server@4.15.1(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)))(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - '@angular-devkit/core': 17.3.11(chokidar@3.6.0) - '@angular/compiler-cli': 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(typescript@5.4.5) - '@babel/core': 7.24.0 - '@babel/generator': 7.23.6 - '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 - '@babel/plugin-transform-async-generator-functions': 7.23.9(@babel/core@7.24.0) - '@babel/plugin-transform-async-to-generator': 7.23.3(@babel/core@7.24.0) - '@babel/plugin-transform-runtime': 7.24.0(@babel/core@7.24.0) - '@babel/preset-env': 7.24.0(@babel/core@7.24.0) - '@babel/runtime': 7.24.0 - '@discoveryjs/json-ext': 0.5.7 - '@ngtools/webpack': 17.3.11(@angular/compiler-cli@17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(typescript@5.4.5))(typescript@5.4.5)(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - '@vitejs/plugin-basic-ssl': 1.1.0(vite@5.1.8(@types/node@20.12.8)(less@4.2.0)(lightningcss@1.28.1)(sass@1.71.1)(terser@5.29.1)) - ansi-colors: 4.1.3 - autoprefixer: 10.4.18(postcss@8.4.35) - babel-loader: 9.1.3(@babel/core@7.24.0)(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - babel-plugin-istanbul: 6.1.1 - browserslist: 4.24.4 - copy-webpack-plugin: 11.0.0(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - critters: 0.0.22 - css-loader: 6.10.0(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - esbuild-wasm: 0.20.1 - fast-glob: 3.3.2 - http-proxy-middleware: 2.0.7(@types/express@4.17.21) - https-proxy-agent: 7.0.4 - inquirer: 9.2.15 - jsonc-parser: 3.2.1 - karma-source-map-support: 1.4.0 - less: 4.2.0 - less-loader: 11.1.0(less@4.2.0)(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - license-webpack-plugin: 4.0.2(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - loader-utils: 3.2.1 - magic-string: 0.30.8 - mini-css-extract-plugin: 2.8.1(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - mrmime: 2.0.0 - open: 8.4.2 - ora: 5.4.1 - parse5-html-rewriting-stream: 7.0.0 - picomatch: 4.0.1 - piscina: 4.4.0 - postcss: 8.4.35 - postcss-loader: 8.1.1(postcss@8.4.35)(typescript@5.4.5)(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - resolve-url-loader: 5.0.0 - rxjs: 7.8.1 - sass: 1.71.1 - sass-loader: 14.1.1(sass-embedded@1.66.0)(sass@1.71.1)(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - semver: 7.6.0 - source-map-loader: 5.0.0(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - source-map-support: 0.5.21 - terser: 5.29.1 - tree-kill: 1.2.2 - tslib: 2.6.2 - typescript: 5.4.5 - undici: 6.11.1 - vite: 5.1.8(@types/node@20.12.8)(less@4.2.0)(lightningcss@1.28.1)(sass@1.71.1)(terser@5.29.1) - watchpack: 2.4.0 - webpack: 5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1) - webpack-dev-middleware: 6.1.2(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - webpack-dev-server: 4.15.1(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - webpack-merge: 5.10.0 - webpack-subresource-integrity: 5.1.0(html-webpack-plugin@5.6.3(webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)))(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)) - optionalDependencies: - '@angular/platform-server': 17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1))(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10))(@angular/platform-browser@17.3.12(@angular/animations@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(@angular/common@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10))(rxjs@7.8.1))(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10))) - esbuild: 0.20.1 - jest: 29.7.0(@types/node@20.12.8)(node-notifier@9.0.1)(ts-node@10.9.2(@swc/core@1.9.2(@swc/helpers@0.5.15))(@types/node@20.12.8)(typescript@5.4.5)) - jest-environment-jsdom: 29.7.0 - karma: 6.4.4 - ng-packagr: 17.3.0(@angular/compiler-cli@17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(typescript@5.4.5))(tslib@2.8.1)(typescript@5.4.5) - transitivePeerDependencies: - - '@rspack/core' - - '@swc/core' - - '@types/express' - - '@types/node' - - bufferutil - - chokidar - - debug - - html-webpack-plugin - - lightningcss - - node-sass - - sass-embedded - - stylus - - sugarss - - supports-color - - uglify-js - - utf-8-validate - - webpack-cli - '@angular-devkit/build-angular@17.3.11(qwvpz4std2ihowmewzmfizrlqa)': dependencies: '@ampproject/remapping': 2.3.0 @@ -22501,9 +22242,6 @@ snapshots: '@esbuild/linux-ia32@0.25.1': optional: true - '@esbuild/linux-loong64@0.14.54': - optional: true - '@esbuild/linux-loong64@0.18.20': optional: true @@ -26861,10 +26599,6 @@ snapshots: dependencies: vite: 5.1.8(@types/node@20.11.17)(less@4.2.0)(lightningcss@1.28.1)(sass@1.71.1)(terser@5.29.1) - '@vitejs/plugin-basic-ssl@1.1.0(vite@5.1.8(@types/node@20.12.8)(less@4.2.0)(lightningcss@1.28.1)(sass@1.71.1)(terser@5.29.1))': - dependencies: - vite: 5.1.8(@types/node@20.12.8)(less@4.2.0)(lightningcss@1.28.1)(sass@1.71.1)(terser@5.29.1) - '@vitejs/plugin-basic-ssl@1.2.0(vite@6.2.7(@types/node@20.14.5)(jiti@1.21.6)(less@4.2.2)(lightningcss@1.28.1)(sass-embedded@1.66.0)(sass@1.85.0)(terser@5.39.0)(yaml@2.5.0))': dependencies: vite: 6.2.7(@types/node@20.14.5)(jiti@1.21.6)(less@4.2.2)(lightningcss@1.28.1)(sass-embedded@1.66.0)(sass@1.85.0)(terser@5.39.0)(yaml@2.5.0) @@ -30753,66 +30487,8 @@ snapshots: es6-iterator: 2.0.3 es6-symbol: 3.1.4 - esbuild-android-64@0.14.54: - optional: true - - esbuild-android-arm64@0.14.54: - optional: true - - esbuild-darwin-64@0.14.54: - optional: true - - esbuild-darwin-arm64@0.14.54: - optional: true - - esbuild-freebsd-64@0.14.54: - optional: true - - esbuild-freebsd-arm64@0.14.54: - optional: true - - esbuild-linux-32@0.14.54: - optional: true - - esbuild-linux-64@0.14.54: - optional: true - - esbuild-linux-arm64@0.14.54: - optional: true - - esbuild-linux-arm@0.14.54: - optional: true - - esbuild-linux-mips64le@0.14.54: - optional: true - - esbuild-linux-ppc64le@0.14.54: - optional: true - - esbuild-linux-riscv64@0.14.54: - optional: true - - esbuild-linux-s390x@0.14.54: - optional: true - - esbuild-netbsd-64@0.14.54: - optional: true - - esbuild-openbsd-64@0.14.54: - optional: true - esbuild-plugin-alias@0.2.1: {} - esbuild-plugin-vue3@0.3.2(cheerio@1.0.0-rc.10)(sass@1.85.0): - dependencies: - '@vue/compiler-core': 3.5.13 - '@vue/compiler-sfc': 3.4.27 - esbuild: 0.14.54 - typescript: 4.9.5 - optionalDependencies: - cheerio: 1.0.0-rc.10 - sass: 1.85.0 - esbuild-register@3.6.0(esbuild@0.18.20): dependencies: debug: 4.4.0 @@ -30820,48 +30496,12 @@ snapshots: transitivePeerDependencies: - supports-color - esbuild-sunos-64@0.14.54: - optional: true - esbuild-wasm@0.20.1: {} esbuild-wasm@0.20.2: {} esbuild-wasm@0.25.1: {} - esbuild-windows-32@0.14.54: - optional: true - - esbuild-windows-64@0.14.54: - optional: true - - esbuild-windows-arm64@0.14.54: - optional: true - - esbuild@0.14.54: - optionalDependencies: - '@esbuild/linux-loong64': 0.14.54 - esbuild-android-64: 0.14.54 - esbuild-android-arm64: 0.14.54 - esbuild-darwin-64: 0.14.54 - esbuild-darwin-arm64: 0.14.54 - esbuild-freebsd-64: 0.14.54 - esbuild-freebsd-arm64: 0.14.54 - esbuild-linux-32: 0.14.54 - esbuild-linux-64: 0.14.54 - esbuild-linux-arm: 0.14.54 - esbuild-linux-arm64: 0.14.54 - esbuild-linux-mips64le: 0.14.54 - esbuild-linux-ppc64le: 0.14.54 - esbuild-linux-riscv64: 0.14.54 - esbuild-linux-s390x: 0.14.54 - esbuild-netbsd-64: 0.14.54 - esbuild-openbsd-64: 0.14.54 - esbuild-sunos-64: 0.14.54 - esbuild-windows-32: 0.14.54 - esbuild-windows-64: 0.14.54 - esbuild-windows-arm64: 0.14.54 - esbuild@0.18.20: optionalDependencies: '@esbuild/android-arm': 0.18.20 @@ -33386,17 +33026,6 @@ snapshots: optionalDependencies: webpack: 5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.18.20) - html-webpack-plugin@5.6.3(webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)): - dependencies: - '@types/html-minifier-terser': 6.1.0 - html-minifier-terser: 6.1.0 - lodash: 4.17.21 - pretty-error: 4.0.0 - tapable: 2.2.1 - optionalDependencies: - webpack: 5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3) - optional: true - html-webpack-plugin@5.6.3(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)): dependencies: '@types/html-minifier-terser': 6.1.0 @@ -36512,38 +36141,6 @@ snapshots: esbuild: 0.20.2 rollup: 4.22.4 - ng-packagr@17.3.0(@angular/compiler-cli@17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(typescript@5.4.5))(tslib@2.8.1)(typescript@5.4.5): - dependencies: - '@angular/compiler-cli': 17.3.12(@angular/compiler@17.3.12(@angular/core@17.3.12(rxjs@7.8.1)(zone.js@0.14.10)))(typescript@5.4.5) - '@rollup/plugin-json': 6.1.0(rollup@4.22.4) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.22.4) - '@rollup/wasm-node': 4.27.3 - ajv: 8.17.1 - ansi-colors: 4.1.3 - browserslist: 4.24.2 - cacache: 18.0.4 - chokidar: 3.6.0 - commander: 12.1.0 - convert-source-map: 2.0.0 - dependency-graph: 1.0.0 - esbuild-wasm: 0.20.2 - fast-glob: 3.3.2 - find-cache-dir: 3.3.2 - injection-js: 2.4.0 - jsonc-parser: 3.3.1 - less: 4.2.0 - ora: 5.4.1 - piscina: 4.7.0 - postcss: 8.4.38 - rxjs: 7.8.1 - sass: 1.81.0 - tslib: 2.8.1 - typescript: 5.4.5 - optionalDependencies: - esbuild: 0.20.2 - rollup: 4.22.4 - optional: true - nice-napi@1.0.2: dependencies: node-addon-api: 3.2.1 @@ -40288,18 +39885,6 @@ snapshots: '@swc/core': 1.9.2(@swc/helpers@0.5.15) esbuild: 0.18.20 - terser-webpack-plugin@5.4.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)(webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)): - dependencies: - '@jridgewell/trace-mapping': 0.3.25 - jest-worker: 27.5.1 - schema-utils: 4.3.3 - terser: 5.39.0 - webpack: 5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3) - optionalDependencies: - '@swc/core': 1.9.2(@swc/helpers@0.5.15) - esbuild: 0.19.3 - optional: true - terser-webpack-plugin@5.4.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))): dependencies: '@jridgewell/trace-mapping': 0.3.25 @@ -41990,19 +41575,6 @@ snapshots: sass: 1.71.1 terser: 5.29.1 - vite@5.1.8(@types/node@20.12.8)(less@4.2.0)(lightningcss@1.28.1)(sass@1.71.1)(terser@5.29.1): - dependencies: - esbuild: 0.19.3 - postcss: 8.4.38 - rollup: 4.22.4 - optionalDependencies: - '@types/node': 20.12.8 - fsevents: 2.3.3 - less: 4.2.0 - lightningcss: 1.28.1 - sass: 1.71.1 - terser: 5.29.1 - vite@5.4.11(@types/node@20.14.5)(less@4.2.2)(lightningcss@1.28.1)(sass-embedded@1.66.0)(sass@1.85.0)(terser@5.39.0): dependencies: esbuild: 0.21.5 @@ -42463,13 +42035,6 @@ snapshots: vinyl: 2.2.1 webpack: 5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1) - webpack-subresource-integrity@5.1.0(html-webpack-plugin@5.6.3(webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)))(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)): - dependencies: - typed-assert: 1.0.9 - webpack: 5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1) - optionalDependencies: - html-webpack-plugin: 5.6.3(webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)) - webpack-subresource-integrity@5.1.0(html-webpack-plugin@5.6.3(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)))(webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1)): dependencies: typed-assert: 1.0.9 @@ -42552,39 +42117,6 @@ snapshots: - esbuild - uglify-js - webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3): - dependencies: - '@types/eslint-scope': 3.7.7 - '@types/estree': 1.0.8 - '@types/json-schema': 7.0.15 - '@webassemblyjs/ast': 1.14.1 - '@webassemblyjs/wasm-edit': 1.14.1 - '@webassemblyjs/wasm-parser': 1.14.1 - acorn: 8.16.0 - acorn-import-phases: 1.0.4(acorn@8.16.0) - browserslist: 4.28.2 - chrome-trace-event: 1.0.4 - enhanced-resolve: 5.20.1 - es-module-lexer: 2.0.0 - eslint-scope: 5.1.1 - events: 3.3.0 - glob-to-regexp: 0.4.1 - graceful-fs: 4.2.11 - json-parse-even-better-errors: 2.3.1 - loader-runner: 4.3.1 - mime-types: 2.1.35 - neo-async: 2.6.2 - schema-utils: 4.3.3 - tapable: 2.3.2 - terser-webpack-plugin: 5.4.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)(webpack@5.104.1(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.19.3)) - watchpack: 2.5.1 - webpack-sources: 3.3.4 - transitivePeerDependencies: - - '@swc/core' - - esbuild - - uglify-js - optional: true - webpack@5.94.0(@swc/core@1.9.2(@swc/helpers@0.5.15))(esbuild@0.20.1): dependencies: '@types/estree': 1.0.6