UNPKG

@kudobuzz/kbscripts

Version:

Configuration and scripts for kudobuzz projects

28 lines (22 loc) 599 B
'use strict' const { getPathToGlobalCommand, resolveKbScripts, resolveExecutable } = require('../common/utils') const kbScripts = resolveKbScripts() const executable = 'doctoc' const resolveParams = { pathToGlobalCommand: getPathToGlobalCommand(executable), moduleName: executable, cwd: process.cwd() } const doctoc = resolveExecutable('doctoc', resolveParams) module.exports = { name: 'good', concurrent: false, config: { 'README.md': [`${doctoc} --maxlevel 3 --notitle`, 'git add README.md'], '**/*.js': [`${kbScripts} format`, `${kbScripts} lint`, 'git add'] } }