Giter Site home page Giter Site logo

bab-cli's Introduction

bab-cli

CLI to create custom boilerplate code

Installation

npm install -g bab-cli

Settings

On first use the CLI will prompt a form asking you to setup the following settings

  • base_folder { string } : starting from active directory in terminal, it will look for and create (if not present) base folder to execute commands such as generate. ( default: "/" ) example:

     base_folder = src/app
     babcli g components/my-component
    
     ==> creates element in current-location/src/app/components/my-component
    
  • test_folder { boolean } : determines if there is another separate test folder inside the new directory or not ( default:true )

  • test_folder_name { string } : if test_folder is set to true, represents the name of the test directory that will be created ( default: "__test__")

  • template_path { string } : Path to templates folder, an example can be found here

Commands

Currently only two commands exists, if needed others will come.

config

Command to change the default configuration

Usage

babcli config

Options

  • --custom=true: Show options to create or modify a custom configuration, defaults values are those of the default configuration

generate ( short: g )

Command to create scaffolding code according to a specific configuration, defaults to initial configuration

Usage

babcli generate path/to/folder/test-name
babcli g path/to/folder/test-name

Options

  • --custom=test: Creates files according to specific set of settings, in this case it looks for the settings saved as test

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.