Skip to content

Commit 24d23a5

Browse files
Hristo HristovHristo Hristov
authored andcommitted
fix: disable standalone lint check for modules and fix paths in github pages yaml
1 parent cdf8f4b commit 24d23a5

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"prefix": "app",
3535
"style": "kebab-case"
3636
}
37-
]
37+
],
38+
"@angular-eslint/prefer-standalone": "off"
3839
}
3940
},
4041
{

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
- name: Build project with dynamic base-href
3636
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
3737
- name: Update Resource Paths
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" {} +
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" {} +
3939
- name: SPA routing handling
40-
run: cp ./dist/${{ env.PROJECT_NAME }}/index.html ./dist/${{ env.PROJECT_NAME }}/404.html
40+
run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html
4141
- name: Upload build artifact to GitHub Pages
4242
uses: actions/upload-pages-artifact@v1
4343
with:
44-
path: ./dist/${{ env.PROJECT_NAME }}
44+
path: ./dist/${{ env.PROJECT_NAME }}/browser
4545
- name: Deploy to GitHub Pages
4646
uses: actions/deploy-pages@v1

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
- name: Build project with dynamic base-href
3636
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
3737
- name: Update Resource Paths
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" {} +
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" {} +
3939
- name: SPA routing handling
40-
run: cp ./dist/${{ env.PROJECT_NAME }}/index.html ./dist/${{ env.PROJECT_NAME }}/404.html
40+
run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html
4141
- name: Upload build artifact to GitHub Pages
4242
uses: actions/upload-pages-artifact@v1
4343
with:
44-
path: ./dist/${{ env.PROJECT_NAME }}
44+
path: ./dist/${{ env.PROJECT_NAME }}/browser
4545
- name: Deploy to GitHub Pages
4646
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)