Code Monkey home page Code Monkey logo

bobflux-gen's Introduction

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

bobflux-gen's People

Contributors

karelsteinmetz avatar svatal avatar kozaksergii avatar

Stargazers

 avatar Boris Letocha avatar

Watchers

Boris Letocha avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.