From ef8a36bf637e638f277179a881778ac5e15251c4 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 14 Dec 2024 14:48:10 +0530 Subject: [PATCH] matching default project name to github repo for github pages --- .github/workflows/deploy.yml | 6 +++--- angular.json | 12 ++++++------ karma.conf.js | 2 +- package-lock.json | 4 ++-- package-old-cg-lock.json | 4 ++-- package.json | 2 +- src/app/app.component.spec.ts | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 107a9a5..fc919db 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,7 +40,7 @@ jobs: run: npm ci - name: Build Angular app - run: npm run build -- --base-href "/angular-cop/" + run: npm run build -- --base-href "/angular-local-stenciljs/" #base-href in an Angular app defines the root path for resolving relative URLs to assets (CSS, JS, etc.). #By default, Angular apps assume they are hosted at the root (/). #The trailing slash at the end of base-href is important. @@ -48,10 +48,10 @@ jobs: uses: actions/upload-pages-artifact@v3 with: name: github-pages - path: ./dist/angular-cop + path: ./dist/angular-local-stenciljs #Check outputPath in angular.json file - name: Deploy to GitHub Pages uses: actions/deploy-pages@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist/angular-cop + publish_dir: ./dist/angular-local-stenciljs diff --git a/angular.json b/angular.json index 22a704f..cc33b80 100644 --- a/angular.json +++ b/angular.json @@ -3,7 +3,7 @@ "version": 1, "newProjectRoot": "projects", "projects": { - "angular-cop": { + "angular-local-stenciljs": { "projectType": "application", "schematics": { "@schematics/angular:component": { @@ -20,7 +20,7 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "outputPath": "dist/angular-cop", + "outputPath": "dist/angular-local-stenciljs", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", @@ -72,10 +72,10 @@ "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "angular-cop:build:production" + "browserTarget": "angular-local-stenciljs:build:production" }, "development": { - "browserTarget": "angular-cop:build:development" + "browserTarget": "angular-local-stenciljs:build:development" } }, "defaultConfiguration": "development" @@ -83,7 +83,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "angular-cop:build" + "browserTarget": "angular-local-stenciljs:build" } }, "test": { @@ -107,5 +107,5 @@ } } }, - "defaultProject": "angular-cop" + "defaultProject": "angular-local-stenciljs" } diff --git a/karma.conf.js b/karma.conf.js index 957616a..c75a949 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -25,7 +25,7 @@ module.exports = function (config) { suppressAll: true // removes the duplicated traces }, coverageReporter: { - dir: require('path').join(__dirname, './coverage/angular-cop'), + dir: require('path').join(__dirname, './coverage/angular-local-stenciljs'), subdir: '.', reporters: [ { type: 'html' }, diff --git a/package-lock.json b/package-lock.json index c3ddbee..da6bd4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "angular-cop", + "name": "angular-local-stenciljs", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "angular-cop", + "name": "angular-local-stenciljs", "version": "0.0.0", "dependencies": { "@angular/animations": "~12.1.2", diff --git a/package-old-cg-lock.json b/package-old-cg-lock.json index 54fe6db..deee291 100644 --- a/package-old-cg-lock.json +++ b/package-old-cg-lock.json @@ -1,11 +1,11 @@ { - "name": "angular-cop", + "name": "angular-local-stenciljs", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "angular-cop", + "name": "angular-local-stenciljs", "version": "0.0.0", "dependencies": { "@angular/animations": "~12.1.2", diff --git a/package.json b/package.json index e9f76d9..4452281 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "angular-cop", + "name": "angular-local-stenciljs", "version": "0.0.0", "scripts": { "ng": "ng", diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 6537519..a52581f 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -16,16 +16,16 @@ describe('AppComponent', () => { expect(app).toBeTruthy(); }); - // it(`should have as title 'angular-cop'`, () => { + // it(`should have as title 'angular-local-stenciljs'`, () => { // const fixture = TestBed.createComponent(AppComponent); // const app = fixture.componentInstance; - // expect(app.title).toEqual('angular-cop'); + // expect(app.title).toEqual('angular-local-stenciljs'); // }); it('should render title', () => { const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); const compiled = fixture.nativeElement as HTMLElement; - expect(compiled.querySelector('.content span')?.textContent).toContain('angular-cop app is running!'); + expect(compiled.querySelector('.content span')?.textContent).toContain('angular-local-stenciljs app is running!'); }); });