Last active
February 9, 2021 17:36
-
-
Save radekwarisch/e4f570c0e1d696759f8f7588c0879372 to your computer and use it in GitHub Desktop.
Merge files plugins
This file contains 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 { | |
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