UNPKG

build-scripts

Version:
27 lines (26 loc) 748 B
export const USER_CONFIG_FILE = ['build.json', 'build.config.(js|ts|mjs|mts|cjs|cts)']; export const PLUGIN_CONTEXT_KEY = [ 'command', 'commandArgs', 'rootDir', 'userConfig', 'originalUserConfig', 'pkg', 'extendsPluginAPI', 'configFilePath', ]; export const VALIDATION_MAP = { string: 'isString', number: 'isNumber', array: 'isArray', object: 'isObject', boolean: 'isBoolean', function: 'isFunction', }; export const BUILTIN_CLI_OPTIONS = [ { name: 'port', commands: ['start'] }, { name: 'host', commands: ['start'] }, { name: 'disableAsk', commands: ['start'] }, { name: 'config', commands: ['start', 'build', 'test'] }, ]; export const IGNORED_USE_CONFIG_KEY = ['plugins'];