Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
efcdcf4
chore: add Dependabot configuration for npm and GitHub Actions updates
borisonekenobi Oct 4, 2026
a698629
test: update expected repository path in engine.spec.ts
borisonekenobi Oct 4, 2026
46744f4
build(deps): bump actions/download-artifact from 4 to 8
dependabot[bot] Oct 4, 2026
5d38835
build(deps): bump actions/upload-artifact from 4 to 7
dependabot[bot] Oct 4, 2026
0ff1348
build(deps): bump actions/checkout from 4 to 7
dependabot[bot] Oct 4, 2026
7c42b37
build(deps): bump actions/setup-node from 4 to 7
dependabot[bot] Oct 4, 2026
c016ed8
build(deps-dev): bump json-schema-to-typescript in /src
dependabot[bot] Oct 4, 2026
0756f49
build(deps): bump @angular-devkit/schematics in /src
dependabot[bot] Oct 4, 2026
2fb249a
chore: group Angular dependencies in Dependabot configuration
borisonekenobi Oct 4, 2026
b8d4f2e
build(deps-dev): bump rimraf from 5.0.10 to 6.1.3 in /src
dependabot[bot] Oct 4, 2026
3098ce0
build(deps-dev): bump vitest from 3.2.6 to 5.0.3 in /src
dependabot[bot] Oct 4, 2026
57d6a8a
test: refactor mock implementation for Git class in gh-pages integrat…
borisonekenobi Oct 4, 2026
55e5162
build(deps): bump undici from 6.26.0 to 6.29.0 in /src
dependabot[bot] Oct 4, 2026
c67a144
build(deps): bump ip-address from 10.2.0 to 10.7.3 in /src
dependabot[bot] Oct 4, 2026
1e222be
build(deps): bump fast-uri from 3.1.2 to 3.1.8 in /src
dependabot[bot] Oct 4, 2026
20b9a4c
build(deps): bump hono from 4.12.24 to 4.13.13 in /src
dependabot[bot] Oct 4, 2026
3fde503
build(deps): bump the angular group across 1 directory with 2 updates
dependabot[bot] Oct 4, 2026
af15032
fix: cast project key to string in ng-add.ts and update @angular-devk…
borisonekenobi Oct 4, 2026
f4d2d61
build(deps): bump brace-expansion in /src
dependabot[bot] Oct 4, 2026
8e5cce8
build(deps): bump qs from 6.15.2 to 6.16.0 in /src
dependabot[bot] Oct 4, 2026
fe7de46
build(deps): bump pacote and @angular/cli in /src
dependabot[bot] Oct 4, 2026
ec6855e
build(deps-dev): bump typescript from 5.2.2 to 7.0.2 in /src
dependabot[bot] Oct 4, 2026
2759c0b
fix: update module and moduleResolution to node16 in tsconfig.json
borisonekenobi Oct 4, 2026
85a6cdd
fix: update beforeAdd type to use GhPagesGit in interfaces.ts
borisonekenobi Oct 4, 2026
2a3f199
build(deps-dev): bump @types/node from 24.13.1 to 26.6.3 in /src
dependabot[bot] Oct 4, 2026
010ebf5
Revert "test: update expected repository path in engine.spec.ts"
borisonekenobi Oct 4, 2026
caff4bb
chore: update Dependabot schedule to monthly and change timezone to E…
borisonekenobi Oct 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "npm"
directory: "/src/"
schedule:
interval: "monthly"
time: "09:00"
timezone: "Europe/Berlin"
versioning-strategy: increase
groups:
angular:
patterns:
- "@angular*"
- "@angular-devkit*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
time: "09:00"
timezone: "Europe/Berlin"
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
Expand All @@ -28,7 +28,7 @@ jobs:
npm run test

- name: Upload build artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: dist
path: src/dist
Expand All @@ -46,9 +46,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
Expand All @@ -64,7 +64,7 @@ jobs:
git config --global user.email "ci@test.local"

- name: Download build artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: dist
path: src/dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
environment: npm-publish

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
Expand Down
16 changes: 11 additions & 5 deletions src/engine/engine.gh-pages-integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ vi.mock('../utils', async () => ({
}));

// Mock Git class from gh-pages to avoid spawning actual git processes
vi.mock('gh-pages/lib/git', () => ({
default: vi.fn().mockImplementation(() => ({
getRemoteUrl: vi.fn().mockResolvedValue('https://github.com/test/repo.git')
}))
}));
vi.mock('gh-pages/lib/git', () => {
class MockGit {
getRemoteUrl = vi.fn().mockResolvedValue(
'https://github.com/test/repo.git'
);
}

return {
default: MockGit
};
});

describe('engine - gh-pages integration', () => {
const logger = new logging.NullLogger();
Expand Down
4 changes: 3 additions & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type {GhPagesGit} from './engine/engine.prepare-options-helpers';

/**
* Angular outputPath configuration
* Can be either a string (path) or an object with base + browser properties
Expand Down Expand Up @@ -65,7 +67,7 @@ export interface PublishOptions {
cname?: string;
add?: boolean;
git?: string;
beforeAdd?: (git: unknown) => void | Promise<void>;
beforeAdd?: (git: GhPagesGit) => void | Promise<void>;
[key: string]: unknown; // Allow additional gh-pages options
}

Expand Down
2 changes: 1 addition & 1 deletion src/ng-add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ngAdd = (options: NgAddOptions) => async (
if (!options.project) {
if (workspace.projects.size === 1) {
// If there is only one project, return that one.
options.project = Array.from(workspace.projects.keys())[0];
options.project = Array.from(workspace.projects.keys())[0] as string;
} else {
throw new SchematicsException(
'There is more than one project in your workspace. Please select it manually by using the --project argument.'
Expand Down
Loading