bobflux-gen

0.15.1 • Public • Published

bobflux-gen

Generator for monkey files in bobflux application. Inspired by bobril-build

How To Generate cursors

  1. Install bobflux-gen:
npm i bobflux-gen -g
  1. run generating:
bfg c --appStatePath src/states.ts --appStateName YourRootStateName --parentStateKey prefix.of.your.state.in.global.state --recursively 1
  
  • "-p, --appStatePath " - defines pattren for state files search (default is ./state.ts)
  • "-n, --appStateName " - defines root name of Application state (default is IApplicationState)
  • "-k, --parentStateKey " - defines key of parent state, it's suitable for nested states (default is empty)
  • "-r, --recursively <1/0>" - enables recursively generation for nested states (default is 0)
  • "-d, --debug <1/0>", "enables logging in debug level", /^(true|false|1|0|t|f|y|n)$/i, "0"
  1. just look at all *.cursors.ts

How To Generate functionl cursors

  1. Install bobflux-gen:
npm i bobflux-gen -g
  1. run generation:
bfg fc --appStatePath src/states.ts --appStateName YourRootStateName --parentStateKey prefix.of.your.state.in.global.state --recursively 1
  
  • "-p, --appStatePath " - defines pattren for state files search (default is ./state.ts)
  • "-n, --appStateName " - defines root name of Application state (default is IApplicationState)
  • "-k, --parentStateKey " - defines key of parent state, it's suitable for nested states (default is empty)
  • "-r, --recursively <1/0>" - enables recursively generation for nested states (default is 0)
  1. just look at all *.f.cursors.ts

How To Generate StateBuilders for your tests

  1. Install bobflux-gen:
npm i bobflux-gen -g
  1. run generating:
bfg b --appStatePath src/states.ts --appStateName YourRootStateName --specRelativePath ../spec/ --recursively 1
  • "-p, --appStatePath " - defines pattren for state files search (default is ./state.ts)
  • "-n, --appStateName " - defines root name of Application state (default is IApplicationState)
  • "-s, --specRelativePath " - defines spec directory relative path from appStatePath (default is next to states)
  • "-k, --parentStateKey " - defines key of parent state, it's suitable for nested states (default is empty)
  • "-r, --recursively <1/0>" - enables recursively generation for nested states (default is 0)
  • "-d, --debug <1/0>", "enables logging in debug level", /^(true|false|1|0|t|f|y|n)$/i, "0"
  1. just look at all *.builders.ts

How To Generate OData Api

  1. Install bobflux-gen:
npm i bobflux-gen -g
  1. run generating:
bfg o -u http://localhost:8097/api/odata/$metadata -f ./axiosApi.ts
  • "-u, --metadataUlr ", "defines odata metadata url
  • "-f, --targetFile ", "defines target file where will be odata api generated
  • "-d, --debug <1/0>", "enables logging in debug level", /^(true|false|1|0|t|f|y|n)$/i, "0"
  1. just look into ./axiosApi.ts

Package Sidebar

Install

npm i bobflux-gen

Weekly Downloads

1

Version

0.15.1

License

MIT

Unpacked Size

192 kB

Total Files

58

Last publish

Collaborators

  • k.steinmetz