Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions docs/README_contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [Advanced: Angular Builder Integration](#advanced-angular-builder-integration)
- [Dependency on gh-pages Internal API](#dependency-on-gh-pages-internal-api)
- [Remote URL Discovery](#remote-url-discovery)
- [Supporting a new Angular version](#supporting-a-new-angular-version)
- [Keeping track of all the forks](#keeping-track-of-all-the-forks)

## How to start
Expand Down
69 changes: 0 additions & 69 deletions src/__snapshots__/ng-add.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -68,72 +68,3 @@ exports[`ng-add > generating files > overrides existing files 1`] = `
}
}"
`;

exports[`ng-add generating files generates new files if starting from scratch 1`] = `
"{
"version": 1,
"projects": {
"THEPROJECT": {
"projectType": "application",
"root": "PROJECTROOT",
"architect": {
"build": {
"options": {
"outputPath": "dist/THEPROJECT"
}
},
"deploy": {
"builder": "angular-cli-ghpages:deploy"
}
}
},
"OTHERPROJECT": {
"projectType": "application",
"root": "PROJECTROOT",
"architect": {
"build": {
"options": {
"outputPath": "dist/OTHERPROJECT"
}
}
}
}
}
}"
`;

exports[`ng-add generating files overrides existing files 1`] = `
"{
"version": 1,
"projects": {
"THEPROJECT": {
"projectType": "application",
"root": "PROJECTROOT",
"architect": {
"build": {
"options": {
"outputPath": "dist/THEPROJECT"
}
},
"deploy": {
"builder": "angular-cli-ghpages:deploy"
}
}
},
"OTHERPROJECT": {
"projectType": "application",
"root": "PROJECTROOT",
"architect": {
"build": {
"options": {
"outputPath": "dist/OTHERPROJECT"
}
},
"deploy": {
"builder": "angular-cli-ghpages:deploy"
}
}
}
}
}"
`;
2 changes: 2 additions & 0 deletions src/commander-fork/test/test.fork-fixes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { MockInstance } from 'vitest';

const commander = require('../');

// Fork Fix 1 (tightened negate-detection regex) is implicitly covered by
// test.options.bool.no.spec.ts — no dedicated tests needed here.

describe('Fork Fix 2: Version short-only and custom flags', () => {
describe('version() with short-only flag', () => {
Expand Down
1 change: 1 addition & 0 deletions src/engine/engine.gh-pages-integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

import { logging } from '@angular-devkit/core';
import { Mock, MockInstance } from 'vitest';

import * as engine from './engine';
import { cleanupMonkeypatch } from './engine.prepare-options-helpers';
Expand Down
2 changes: 2 additions & 0 deletions src/engine/engine.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { logging } from '@angular-devkit/core';

import { Mock, MockInstance } from 'vitest';

import * as engine from './engine';
import { cleanupMonkeypatch } from './engine.prepare-options-helpers';

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface PublishOptions {
cname?: string;
add?: boolean;
git?: string;
beforeAdd?: (git: any) => void | Promise<void>;
beforeAdd?: (git: unknown) => void | Promise<void>;
[key: string]: unknown; // Allow additional gh-pages options
}

Expand Down
1 change: 1 addition & 0 deletions src/ng-add.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SchematicContext, Tree } from '@angular-devkit/schematics';
import { Mock } from 'vitest';

import { ngAdd } from './ng-add';

Expand Down
3 changes: 2 additions & 1 deletion src/parameter-tests/builder-integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { JsonObject, logging } from '@angular-devkit/core';
import { BuildTarget, PublishOptions } from '../interfaces';
import { Schema } from '../deploy/schema';
import { cleanupMonkeypatch } from '../engine/engine.prepare-options-helpers';
import { Mock } from 'vitest';

/**
* ANGULAR BUILDER INTEGRATION TESTS
Expand Down Expand Up @@ -77,7 +78,7 @@ describe('Angular Builder Integration Tests', () => {
if (callback) {
callback(null);
}
return Promise.resolve() as any;
return Promise.resolve();
}
);
});
Expand Down
1 change: 1 addition & 0 deletions src/test-fixtures/angular-versions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { SchematicContext, Tree } from '@angular-devkit/schematics';
import fs from 'fs';
import path from 'path';
import { Mock } from 'vitest';
import { ngAdd } from '../ng-add';

// Mock context with logger - only the methods we actually use
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"lib": ["es2022"],
"skipLibCheck": true,
"esModuleInterop": true,
"types": ["vitest/globals"]
"types": ["vitest/globals", "node"]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
Expand Down
Loading