0.15.1 • Published 6 years ago

bobflux-gen v0.15.1

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

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
  2. 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
  2. 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
  2. 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
  2. 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
0.15.1

6 years ago

0.15.0

7 years ago

0.14.1

7 years ago

0.14.0

7 years ago

0.13.0

7 years ago

0.11.0

8 years ago

0.10.1

8 years ago

0.10.0

8 years ago

0.9.0

8 years ago

0.7.4

8 years ago

0.6.4

8 years ago

0.6.3

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.23

8 years ago

0.1.22

8 years ago

0.1.21

8 years ago

0.1.20

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago