UNPKG

@storybook/react-native

Version:

A better way to develop React Native Components for your app

21 lines (16 loc) 636 B
function getArguments() { const { program } = require('commander'); program .description('Generator for the storybook.requires file used in react native storybook') .option( '-c, --config-path <path>', 'The path to your config folder relative to your project-dir', './.rnstorybook' ) .option('-js, --use-js', 'Use a js file for storybook.requires') .option('-D, --no-doc-tools', 'Do not include doc tools in the storybook.requires file') .option('-a, --absolute', 'Use absolute paths for story imports'); program.parse(); return program.opts(); } module.exports = { getArguments };