Skip to content

Instantly share code, notes, and snippets.

{
"name": "@company/name",
"version": "1.0.0",
"private": true,
"dependencies": {
"@angular/animations": "17.0.2",
"@angular/cdk": "17.0.0",
"@angular/common": "17.0.2",
"@angular/compiler": "17.0.2",
"@angular/core": "17.0.2",
@minijus
minijus / index.js
Last active January 31, 2023 08:55
Wrapping @nrwl/nx-cloud task runner to add caFile support
const { default: nxCloudTasksRunner } = require('@nrwl/nx-cloud');
const { Agent } = require('https');
const { readFileSync } = require('fs');
// axios could/should be required within try/catch - first checking nested dependency then fallback to deduped
const axios = require('@nrwl/nx-cloud/node_modules/axios');
const taskRunner = (tasks, options, context) => {
/**
* Using Nx Private Cloud with self-signed certificate
* Setting axios defaults to include CA for self-signed certificate
#!/usr/bin/env node
/**
* Wrapper around 'nx print-affected'
* It allows usage of 'print-affected' from globally installed @nrwl/workspace
*/
const child_process = require('child_process');
const { join } = require('path');