Skip to content

Instantly share code, notes, and snippets.

@radekwarisch
Last active February 9, 2021 17:36
Show Gist options
  • Save radekwarisch/e4f570c0e1d696759f8f7588c0879372 to your computer and use it in GitHub Desktop.
Save radekwarisch/e4f570c0e1d696759f8f7588c0879372 to your computer and use it in GitHub Desktop.
Merge files plugins
import {
noop,
externalSchematic,
} from '@angular-devkit/schematics';
import {compose, toPairs} from 'ramda'
export const lint = <TInputType>({
config,
}: TInputType) => compose(lint(config));
export const maybeInjectIntoFacadeChainable = <TInputType>({options}: TInputType) => {
const {parentPath} = options;
return facadePath
? externalSchematic('brainly-cli', 'inject-component', {
'parent-path': parentPath,
'component-options-entries': toPairs(options),
})
: noop();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment