Skip to content

Instantly share code, notes, and snippets.

View wickstargazer's full-sized avatar

Wick wickstargazer

View GitHub Profile
@wickstargazer
wickstargazer / affected-libs.ts
Created March 15, 2020 20:40
Build affected libraries within nx workspace
import { createProjectGraph, ProjectType, ProjectGraphNode } from '@nrwl/workspace/src/core/project-graph';
import { calculateFileChanges, readEnvironment } from '@nrwl/workspace/src/core/file-utils';
import { output } from '@nrwl/workspace';
import { filterAffected } from '@nrwl/workspace/src/core/affected-project-graph';
import { parseFiles } from '@nrwl/workspace/src/command-line/shared';
import { projectHasTargetAndConfiguration } from '@nrwl/workspace/src/utils/project-has-target-and-configuration'
import { runMany } from '@nrwl/workspace/src/command-line/run-many'
import { copySync, removeSync } from 'fs-extra';
import * as yargs from 'yargs';
import { runCommand } from '@nrwl/workspace/src/tasks-runner/run-command';
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@wickstargazer
wickstargazer / machine.js
Created October 11, 2020 05:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)