UNPKG

sharec-core

Version:

[![.github/workflows/main.yml](https://github.com/lamartire/sharec/workflows/.github/workflows/main.yml/badge.svg)](https://github.com/lamartire/sharec/actions) [![npm](https://img.shields.io/npm/v/sharec)](https://npmjs.com/sharec) ![MIT License](https:/

55 lines (54 loc) 1.43 kB
export namespace pipes { export const babel: { pipe: Function } export const browserslist: { pipe: Function } export const eslint: { pipe: Function } export const gitignore: { pipe: Function alias: string } export const lintStaged: { pipe: Function } export const npmignore: { pipe: Function alias: string } const _package: { pipe: Function } export { _package as package } export const stylelint: { pipe: Function } export const yaspeller: { pipe: Function } export const prettier: { pipe: Function } } /** * Returns pipe for specific configuration file by its name * If pipe is not exist - tries to resolve default pipe * If default pipe is not exist too - returns null * @param {String} configPath * @returns {Object|null} result * @property {Function} result.processor Configuration processor function * @property {String} [result.alias] Configuration file name after write */ export function getConfigPipe(configPath: string): any | null /** * Trying to find default pipe for given configuration file * If it is not exist - returns null * @param {String} configPath * @returns {Object|null} result * @property {Function} result.processor Configuration processor function * @property {String} [result.alias] Configuration file name after write */ export function getFallbackConfigPipe(configPath: string): any | null