Skip to content

Commit 071df46

Browse files
authored
Merge branch 'master' into bpenkov/ig-upgrade-fixes
2 parents 1a049ed + 19241ab commit 071df46

File tree

12 files changed

+50
-58
lines changed

12 files changed

+50
-58
lines changed

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "igniteui-cli",
3-
"version": "14.3.0",
3+
"version": "14.3.1-beta.1",
44
"description": "CLI tool for creating Ignite UI projects",
55
"keywords": [
66
"CLI",
@@ -78,8 +78,8 @@
7878
"all": true
7979
},
8080
"dependencies": {
81-
"@igniteui/angular-templates": "~19.0.1430",
82-
"@igniteui/cli-core": "~14.3.0",
81+
"@igniteui/angular-templates": "~19.0.1431-beta.1",
82+
"@igniteui/cli-core": "~14.3.1-beta.1",
8383
"@inquirer/prompts": "^5.4.0",
8484
"@types/yargs": "^17.0.33",
8585
"chalk": "^5.3.0",

packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches: [ $(yamlDefaultBranch) ]
6-
pull_request:
7-
branches: [ $(yamlDefaultBranch) ]
6+
workflow_dispatch: {}
87

98
jobs:
109
build-and-deploy:
@@ -38,6 +37,8 @@ jobs:
3837
run: find ./dist/assets -name "*.js" -exec sed -i 's|src/assets|${{ github.event.repository.name }}/assets|g' {} +
3938
- name: Copy Resources to dist
4039
run: mkdir -p ./dist/assets && cp -R ./src/assets/* ./dist/assets/
40+
- name: SPA routing handling
41+
run: cp .dist/index.html .dist/404.html
4142
- name: Upload build artifact to GitHub Pages
4243
uses: actions/upload-pages-artifact@v1
4344
with:

packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches: [ $(yamlDefaultBranch) ]
6-
pull_request:
7-
branches: [ $(yamlDefaultBranch) ]
6+
workflow_dispatch: {}
87

98
jobs:
109
build-and-deploy:
@@ -40,6 +39,8 @@ jobs:
4039
run: cp ./ig-theme.css ./dist/
4140
- name: Update href Paths for ig-theme.css
4241
run: find ./dist -type f -exec sed -i "s|href=\"../../ig-theme.css\"|href=\"../../${{ github.event.repository.name }}/ig-theme.css\"|g" {} +
42+
- name: SPA routing handling
43+
run: cp .dist/index.html .dist/404.html
4344
- name: Upload build artifact to GitHub Pages
4445
uses: actions/upload-pages-artifact@v1
4546
with:

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@igniteui/cli-core",
3-
"version": "14.3.0",
3+
"version": "14.3.1-beta.1",
44
"description": "Base types and functionality for Ignite UI CLI",
55
"repository": {
66
"type": "git",

packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__github/workflows/github-pages.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches: [ <%=yamlDefaultBranch%> ]
6-
pull_request:
7-
branches: [ <%=yamlDefaultBranch%> ]
6+
workflow_dispatch: {}
87

98
jobs:
109
build-and-deploy:
@@ -33,20 +32,15 @@ jobs:
3332
- run: npm i # replace with 'npm ci' after committing lock file from first install
3433
- name: Set project name
3534
run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
36-
- name: Determine if project is standalone and set build path
37-
run: |
38-
if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].architect.build.builder == \"@angular-devkit/build-angular:application\"" angular.json > /dev/null; then
39-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
40-
else
41-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
42-
fi
4335
- name: Build project with dynamic base-href
4436
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
4537
- name: Update Resource Paths
46-
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
38+
run: find ./dist/${{ env.PROJECT_NAME }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
39+
- name: SPA routing handling
40+
run: cp ./dist/${{ env.PROJECT_NAME }}/index.html ./dist/${{ env.PROJECT_NAME }}/404.html
4741
- name: Upload build artifact to GitHub Pages
4842
uses: actions/upload-pages-artifact@v1
4943
with:
50-
path: ${{ env.BUILD_PATH }}
44+
path: ./dist/${{ env.PROJECT_NAME }}
5145
- name: Deploy to GitHub Pages
5246
uses: actions/deploy-pages@v1

packages/igx-templates/igx-ts-legacy/projects/_base/files/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@
2424
"minireset.css": "~0.0.7",
2525
"rxjs": "~7.8.0",
2626
"tslib": "~2.3.0",
27-
"zone.js": "~0.14.3"
27+
"zone.js": "~0.15.0"
28+
},
29+
"overrides": {
30+
"igniteui-angular-charts": {
31+
"@angular/core": "^19.0.0",
32+
"@angular/common": "^19.0.0",
33+
"@angular/compiler": "^19.0.0"
34+
}
2835
},
2936
"devDependencies": {
3037
"@angular-devkit/build-angular": "~19.0.0",

packages/igx-templates/igx-ts-legacy/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
6+
workflow_dispatch: {}
87

98
jobs:
109
build-and-deploy:
@@ -33,20 +32,15 @@ jobs:
3332
- run: npm i # replace with 'npm ci' after committing lock file from first install
3433
- name: Set project name
3534
run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
36-
- name: Determine if project is standalone and set build path
37-
run: |
38-
if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].architect.build.builder == \"@angular-devkit/build-angular:application\"" angular.json > /dev/null; then
39-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
40-
else
41-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
42-
fi
4335
- name: Build project with dynamic base-href
4436
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
4537
- name: Update Resource Paths
46-
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
38+
run: find ./dist/${{ env.PROJECT_NAME }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
39+
- name: SPA routing handling
40+
run: cp ./dist/${{ env.PROJECT_NAME }}/index.html ./dist/${{ env.PROJECT_NAME }}/404.html
4741
- name: Upload build artifact to GitHub Pages
4842
uses: actions/upload-pages-artifact@v1
4943
with:
50-
path: ${{ env.BUILD_PATH }}
44+
path: ./dist/${{ env.PROJECT_NAME }}
5145
- name: Deploy to GitHub Pages
5246
uses: actions/deploy-pages@v1

packages/igx-templates/igx-ts/projects/_base/files/__dot__github/workflows/github-pages.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches: [ <%=yamlDefaultBranch%> ]
6-
pull_request:
7-
branches: [ <%=yamlDefaultBranch%> ]
6+
workflow_dispatch: {}
87

98
jobs:
109
build-and-deploy:
@@ -33,20 +32,15 @@ jobs:
3332
- run: npm i # replace with 'npm ci' after committing lock file from first install
3433
- name: Set project name
3534
run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
36-
- name: Determine if project is standalone and set build path
37-
run: |
38-
if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].architect.build.builder == \"@angular-devkit/build-angular:application\"" angular.json > /dev/null; then
39-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
40-
else
41-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
42-
fi
4335
- name: Build project with dynamic base-href
4436
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
4537
- name: Update Resource Paths
46-
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
38+
run: find ./dist/${{ env.PROJECT_NAME }}/browser -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
39+
- name: SPA routing handling
40+
run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html
4741
- name: Upload build artifact to GitHub Pages
4842
uses: actions/upload-pages-artifact@v1
4943
with:
50-
path: ${{ env.BUILD_PATH }}
44+
path: ./dist/${{ env.PROJECT_NAME }}/browser
5145
- name: Deploy to GitHub Pages
5246
uses: actions/deploy-pages@v1

packages/igx-templates/igx-ts/projects/_base/files/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
"tslib": "~2.3.0",
2727
"zone.js": "~0.15.0"
2828
},
29+
"overrides": {
30+
"igniteui-angular-charts": {
31+
"@angular/core": "^19.0.0",
32+
"@angular/common": "^19.0.0",
33+
"@angular/compiler": "^19.0.0"
34+
}
35+
},
2936
"devDependencies": {
3037
"@angular-devkit/build-angular": "~19.0.0",
3138
"@angular-eslint/builder": "~19.0.0-alpha.1",

packages/igx-templates/igx-ts/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches: [ <%=yamlDefaultBranch%> ]
6-
pull_request:
7-
branches: [ <%=yamlDefaultBranch%> ]
6+
workflow_dispatch: {}
87

98
jobs:
109
build-and-deploy:
@@ -33,20 +32,15 @@ jobs:
3332
- run: npm i # replace with 'npm ci' after committing lock file from first install
3433
- name: Set project name
3534
run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
36-
- name: Determine if project is standalone and set build path
37-
run: |
38-
if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].architect.build.builder == \"@angular-devkit/build-angular:application\"" angular.json > /dev/null; then
39-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
40-
else
41-
echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
42-
fi
4335
- name: Build project with dynamic base-href
4436
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
4537
- name: Update Resource Paths
46-
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
38+
run: find ./dist/${{ env.PROJECT_NAME }}/browser -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
39+
- name: SPA routing handling
40+
run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html
4741
- name: Upload build artifact to GitHub Pages
4842
uses: actions/upload-pages-artifact@v1
4943
with:
50-
path: ${{ env.BUILD_PATH }}
44+
path: ./dist/${{ env.PROJECT_NAME }}/browser
5145
- name: Deploy to GitHub Pages
5246
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)