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 = /
-
-
- Loading...
-
-
-
-
- `;
-
- 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 @@
-
-
-