Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish bundled demos to GH pages #3162

Merged
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
96a6fdd
Test
ivanblinov2k17 Feb 23, 2024
e884f60
Add dx-viewport to auto set theme to body
ivanblinov2k17 Feb 25, 2024
e3d3703
Test if css body is version related
ivanblinov2k17 Feb 25, 2024
ee104e5
Test if theme applying issue is related to 23.2.4 minor or the proble…
ivanblinov2k17 Feb 25, 2024
d0b3449
Add a temporary WA for calculating last stable minor
ivanblinov2k17 Feb 25, 2024
affb36d
Fix missing diagram and gantt styles
ivanblinov2k17 Feb 26, 2024
d438b6d
Fix vue
ivanblinov2k17 Feb 26, 2024
a2b5a30
Working bundle - hand mode
ivanblinov2k17 Feb 29, 2024
d289510
Scheme for bundling all demos (all major issues addresed)
ivanblinov2k17 Feb 29, 2024
0fae57b
Create html template + update angular.json + generate polyfills
ivanblinov2k17 Mar 1, 2024
58016bf
More improvements, localhost with themes working, almost ready
ivanblinov2k17 Mar 1, 2024
aa9189c
Update Demos to be compatible both with build and systemJS
ivanblinov2k17 Mar 1, 2024
0ab284e
Prepare action to publish
ivanblinov2k17 Mar 4, 2024
134b05d
Clean up previous mess
ivanblinov2k17 Mar 4, 2024
d127a5e
Fix incorrect dependency yaml
ivanblinov2k17 Mar 4, 2024
3d5dd96
Fix action
ivanblinov2k17 Mar 4, 2024
b4e2509
Fix workflow + index
ivanblinov2k17 Mar 4, 2024
935228f
fix react and angular.json
ivanblinov2k17 Mar 5, 2024
fc105a1
Fix artifacts copying + some fix
ivanblinov2k17 Mar 5, 2024
dcdabaf
fix yaml tabulation
ivanblinov2k17 Mar 5, 2024
25a1760
Remove extra console.logs
ivanblinov2k17 Mar 5, 2024
a470b49
Fix building for react and vue
ivanblinov2k17 Mar 5, 2024
e0f0e18
Fix convert-to-js error
ivanblinov2k17 Mar 6, 2024
939ba25
Remove individual polyfills and replace them with one
ivanblinov2k17 Mar 6, 2024
4a92c38
Fix tabulation
ivanblinov2k17 Mar 6, 2024
5fb40f2
Fix lint
ivanblinov2k17 Mar 6, 2024
282366a
Make changes in tsconfig to include polyfill in TS Angular projects
ivanblinov2k17 Mar 6, 2024
68f6357
Fix lint
ivanblinov2k17 Mar 6, 2024
b60dd2d
Fix package-lock
ivanblinov2k17 Mar 9, 2024
840b771
Fix some of the Angular test failures
ivanblinov2k17 Mar 11, 2024
8aa4eba
fix html limt
ivanblinov2k17 Mar 11, 2024
f679a60
Fix angular functional tests
ivanblinov2k17 Mar 13, 2024
79766c7
Missed moduleID
ivanblinov2k17 Mar 15, 2024
63a0be7
Merge branch '23_2' into publishing-demo-gh-pages
ivanblinov2k17 Mar 15, 2024
983eb12
Merge branch '23_2' into publishing-demo-gh-pages
ivanblinov2k17 Mar 18, 2024
d952519
Fix jQuery accesibility test
ivanblinov2k17 Mar 20, 2024
3c6eefe
Fix self codereview issues
ivanblinov2k17 Mar 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
91 changes: 87 additions & 4 deletions .github/workflows/publish-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ on:
- 'release-*'

jobs:
publish:
publish-ES:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
- name: Setup Node.js v20
uses: actions/setup-node@v3
with:
node-version: '20'
node-version: 20

- name: Install jq
run: sudo apt-get install -y jq
Expand All @@ -39,8 +39,91 @@ jobs:
- name: Prepare Vue demo bundles
run: npm run make-demos-bundle -- --framework Vue

- name: Save publish-demos directory for ES as an artifact
uses: actions/upload-artifact@v3
with:
name: publish-demos
path: ./publish-demos

publish-angular:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Check generated demos (1/10)
command: CONSTEL=1/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (2/10)
command: CONSTEL=2/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (3/10)
command: CONSTEL=3/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (4/10)
command: CONSTEL=4/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (5/10)
command: CONSTEL=5/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (6/10)
command: CONSTEL=6/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (7/10)
command: CONSTEL=7/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (8/10)
command: CONSTEL=8/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (9/10)
command: CONSTEL=9/10 npm run make-demos-bundle -- --framework Angular
- name: Check generated demos (10/10)
command: CONSTEL=10/10 npm run make-demos-bundle -- --framework Angular
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js v14
uses: actions/setup-node@v3
with:
node-version: 14

- name: Install jq
run: sudo apt-get install -y jq

- name: Read version from package.json and append "-stable"
run: echo echo "STABLE_VERSION=$(jq -r '.version' package.json | awk -F. '{print $1 "." $2}')-stable" >> $GITHUB_ENV

- name: Install Dependencies
run: npm install

- name: Install stable devextreme pacakges
run: npm install devextreme@${{ env.STABLE_VERSION }} devextreme-angular@${{ env.STABLE_VERSION }} devextreme-react@${{ env.STABLE_VERSION }} devextreme-vue@${{ env.STABLE_VERSION }}

- name: Copy metadata
run: npm run make-demos-bundle -- --copy-metadata

- name: Update angular.json
run: npm run update-angular-json

- name: Create angular entryPoints to compile faster
run: npm run launch-ngcc

- name: Prepare Angular demo bundles
run: |
${{ matrix.command }}

- name: Save publish-demos directory for Angular as an artifact
uses: actions/upload-artifact@v3
with:
name: publish-demos
path: ./publish-demos

deploy:
runs-on: ubuntu-latest
needs: [publish-ES, publish-angular]
steps:
- name: Download publish-demos artifact
uses: actions/download-artifact@v3
with:
name: publish-demos
path: ./publish-demos
- name: List files in publish-demos
run: ls -R ./publish-demos
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./publish-demos
publish_dir: ./publish-demos
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
MVCDemos
NetCoreDemos
.github
publish-demos
publish-demos
utils
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
6 changes: 4 additions & 2 deletions JSDemos/Demos/Accordion/Overview/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ import { Company, Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
moduleId: __moduleName,
providers: [Service],
preserveWhitespaces: true,
})
Expand Down
6 changes: 4 additions & 2 deletions JSDemos/Demos/ActionSheet/Basics/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ import notify from 'devextreme/ui/notify';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
moduleId: __moduleName,
styleUrls: ['app.component.css'],
})
export class AppComponent {
commands: { text: string }[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import { Contact, Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
providers: [Service],
})
export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

function isNotEmpty(value: unknown): boolean {
return value !== undefined && value !== null && value !== '';
Expand All @@ -19,8 +20,9 @@ function isNotEmpty(value: unknown): boolean {
@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})

export class AppComponent {
Expand Down
6 changes: 4 additions & 2 deletions JSDemos/Demos/Box/Overview/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ import { DxBoxModule } from 'devextreme-angular';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})
export class AppComponent {
}
Expand Down
6 changes: 4 additions & 2 deletions JSDemos/Demos/Button/Icons/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import notify from 'devextreme/ui/notify';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
preserveWhitespaces: true,
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import notify from 'devextreme/ui/notify';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})

export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import { Alignment, FontStyle, Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
preserveWhitespaces: true,
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import { DxCalendarComponent, DxCalendarModule, DxCalendarTypes } from 'devextre
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})

export class AppComponent {
Expand Down
6 changes: 4 additions & 2 deletions JSDemos/Demos/Calendar/Overview/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import { DxCalendarModule, DxCalendarTypes } from 'devextreme-angular/ui/calenda
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})

export class AppComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ import { Service, Population } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})
export class AppComponent {
@ViewChild(DxPieChartComponent, { static: false }) chart: DxPieChartComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import { Service, CatBreed } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})
export class AppComponent {
catBreedsData: CatBreed[];
Expand Down
6 changes: 4 additions & 2 deletions JSDemos/Demos/Charts/AjaxRequest/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import { DxChartModule } from 'devextreme-angular';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
})
export class AppComponent {
customizeText(arg) {
Expand Down
6 changes: 4 additions & 2 deletions JSDemos/Demos/Charts/Annotation/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import { Data, Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
providers: [Service],
})
export class AppComponent {
Expand Down
6 changes: 4 additions & 2 deletions JSDemos/Demos/Charts/Area/Angular/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ import { Population, Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
providers: [Service],
preserveWhitespaces: true,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import { CostInfo, Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
declare var __moduleName: string;

@Component({
selector: 'demo-app',
templateUrl: 'app/app.component.html',
styleUrls: ['app/app.component.css'],
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
moduleId: __moduleName,
providers: [Service],
})
export class AppComponent {
Expand Down
Loading
Loading