This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
joinPathFragments, | |
normalizePath, | |
NX_VERSION, | |
ProjectGraphExternalNode, | |
ProjectGraphProjectNode, readCachedProjectGraph, | |
workspaceRoot | |
} from '@nx/devkit'; | |
import { isRelativePath } from 'nx/src/utils/fileutils'; | |
import { ESLintUtils } from '@typescript-eslint/utils'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createProjectGraphAsync } from '@nx/devkit'; | |
import { execSync } from 'node:child_process'; | |
export async function churnGenerator( | |
) { | |
const graph = await createProjectGraphAsync(); | |
const projects: Record<string, { ancestors: number; affected: number }> = {}; | |
console.log('Calculating ancestors'); | |
for (const project in graph.dependencies) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Tree, | |
formatFiles, | |
generateFiles, | |
joinPathFragments, | |
} from '@nrwl/devkit'; | |
import { libraryGenerator } from '@nrwl/workspace/generators'; | |
import { execSync } from 'child_process'; | |
export default async function (tree: Tree, schema: any) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as yargs from 'yargs'; | |
import { createProjectGraphAsync } from '@nrwl/workspace/src/core/project-graph'; | |
async function main() { | |
const graph = await createProjectGraphAsync(); | |
const libToFind = yargs.argv._[0]; | |
console.log(`These projects depend on ${libToFind}`); | |
Object.values(graph.dependencies).forEach((deps) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR Error: Document file not found at 'api/forms/ControlContainer' | |
Angular 20 | |
getFileNotFoundDoc | |
fetchDocument | |
error | |
_error | |
error | |
_error | |
error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "nx-migrate-angularjs", | |
"version": "0.0.0", | |
"license": "MIT", | |
"scripts": { | |
"ng": "ng", | |
"nx": "nx", | |
"start": "ng serve", | |
"build": "ng build", | |
"test": "ng test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ap.po.ts | |
import { browser, by, element } from 'protractor'; | |
export class AppPage { | |
navigateTo(): Promise<unknown> { | |
return browser.get(browser.baseUrl) as Promise<unknown>; | |
} | |
getTitleText(): Promise<string> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app.e2e-spec.ts | |
import { AppPage } from './app.po'; | |
import { browser, logging } from 'protractor'; | |
describe('workspace-project App', () => { | |
let page: AppPage; | |
beforeEach(() => { | |
page = new AppPage(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import articleModule from './index'; | |
beforeEach(() => { | |
// Create the module where our functionality can attach to | |
angular.mock.module('ui.router'); | |
angular.mock.module(articleModule.name); | |
}); | |
let component; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Karma configuration file, see link for more information | |
// https://karma-runner.github.io/1.0/config/configuration-file.html | |
// reuse webpack config | |
const webpack = require('./webpack.config'); | |
const getBaseKarmaConfig = require('../../karma.conf'); | |
module.exports = function(config) { | |
const baseConfig = getBaseKarmaConfig(); | |
config.set({ | |
...baseConfig, |
NewerOlder