@igniteui/angular-templates 18.2.1420-beta.1 → 18.2.1420-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,13 +29,20 @@ jobs:
29
29
  - run: npm i # replace with 'npm ci' after committing lock file from first install
30
30
  - name: Set project name
31
31
  run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
32
+ - name: Determine if project is standalone and set build path
33
+ run: |
34
+ if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].schematics[\"@schematics/angular:application\"].standalone == false" angular.json > /dev/null; then
35
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
36
+ else
37
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
38
+ fi
32
39
  - name: Build project with dynamic base-href
33
40
  run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
34
41
  - name: Update Resource Paths
35
- 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" {} +
42
+ 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" {} +
36
43
  - name: Upload build artifact to GitHub Pages
37
44
  uses: actions/upload-pages-artifact@v1
38
45
  with:
39
- path: ./dist/${{ env.PROJECT_NAME }}
46
+ path: ${{ env.BUILD_PATH }}
40
47
  - name: Deploy to GitHub Pages
41
48
  uses: actions/deploy-pages@v1
@@ -29,13 +29,20 @@ jobs:
29
29
  - run: npm i # replace with 'npm ci' after committing lock file from first install
30
30
  - name: Set project name
31
31
  run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
32
+ - name: Determine if project is standalone and set build path
33
+ run: |
34
+ if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].schematics[\"@schematics/angular:application\"].standalone == false" angular.json > /dev/null; then
35
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
36
+ else
37
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
38
+ fi
32
39
  - name: Build project with dynamic base-href
33
40
  run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
34
41
  - name: Update Resource Paths
35
- 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" {} +
42
+ 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" {} +
36
43
  - name: Upload build artifact to GitHub Pages
37
44
  uses: actions/upload-pages-artifact@v1
38
45
  with:
39
- path: ./dist/${{ env.PROJECT_NAME }}
46
+ path: ${{ env.BUILD_PATH }}
40
47
  - name: Deploy to GitHub Pages
41
48
  uses: actions/deploy-pages@v1
@@ -29,13 +29,20 @@ jobs:
29
29
  - run: npm i # replace with 'npm ci' after committing lock file from first install
30
30
  - name: Set project name
31
31
  run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
32
+ - name: Determine if project is standalone and set build path
33
+ run: |
34
+ if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].schematics[\"@schematics/angular:application\"].standalone == false" angular.json > /dev/null; then
35
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
36
+ else
37
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
38
+ fi
32
39
  - name: Build project with dynamic base-href
33
40
  run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
34
41
  - name: Update Resource Paths
35
- 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" {} +
42
+ 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" {} +
36
43
  - name: Upload build artifact to GitHub Pages
37
44
  uses: actions/upload-pages-artifact@v1
38
45
  with:
39
- path: ./dist/${{ env.PROJECT_NAME }}
46
+ path: ${{ env.BUILD_PATH }}
40
47
  - name: Deploy to GitHub Pages
41
48
  uses: actions/deploy-pages@v1
@@ -29,13 +29,20 @@ jobs:
29
29
  - run: npm i # replace with 'npm ci' after committing lock file from first install
30
30
  - name: Set project name
31
31
  run: echo "PROJECT_NAME=$(jq -r '.name' package.json)" >> $GITHUB_ENV
32
+ - name: Determine if project is standalone and set build path
33
+ run: |
34
+ if jq -e ".projects[\"${{ env.PROJECT_NAME }}\"].schematics[\"@schematics/angular:application\"].standalone == false" angular.json > /dev/null; then
35
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}" >> $GITHUB_ENV
36
+ else
37
+ echo "BUILD_PATH=./dist/${{ env.PROJECT_NAME }}/browser" >> $GITHUB_ENV
38
+ fi
32
39
  - name: Build project with dynamic base-href
33
40
  run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
34
41
  - name: Update Resource Paths
35
- 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" {} +
42
+ 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" {} +
36
43
  - name: Upload build artifact to GitHub Pages
37
44
  uses: actions/upload-pages-artifact@v1
38
45
  with:
39
- path: ./dist/${{ env.PROJECT_NAME }}
46
+ path: ${{ env.BUILD_PATH }}
40
47
  - name: Deploy to GitHub Pages
41
48
  uses: actions/deploy-pages@v1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igniteui/angular-templates",
3
- "version": "18.2.1420-beta.1",
3
+ "version": "18.2.1420-beta.2",
4
4
  "description": "Templates for Ignite UI for Angular projects and components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "author": "Infragistics",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@igniteui/cli-core": "~14.2.0-beta.1",
15
+ "@igniteui/cli-core": "~14.2.0-beta.2",
16
16
  "typescript": "~5.5.4"
17
17
  }
18
18
  }