# bab-cli

> CLI for creating boilerplate files

Latest version **2.0.0** (published 2019-04-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install bab-cli
pnpm add bab-cli
yarn add bab-cli
bun add bab-cli
```

Provides the command `babcli`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-04-29 |
| First published | 2019-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 39.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Braulio Barahona |
| Maintainers | bab2683 |
| Keywords | CLI, Boilperplate, File creation |

## Links

- npm: https://www.npmjs.com/package/bab-cli
- Repository: https://github.com/bab2683/bab-cli
- Homepage: https://github.com/bab2683/bab-cli#readme
- Issues: https://github.com/bab2683/bab-cli/issues
- npm.io page: https://npm.io/package/bab-cli

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [clear](https://npm.io/package/clear.md) ^0.1.0
- [figlet](https://npm.io/package/figlet.md) ^1.2.1
- [inquirer](https://npm.io/package/inquirer.md) ^6.3.1
- [user-settings](https://npm.io/package/user-settings.md) ^0.2.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2019-04-29
- 1.1.0 — 2019-04-25
- 1.0.0 — 2019-04-25

## README

# 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](./template_examples/angular_custom.js)


## 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_**

---
_Source: https://npm.io/package/bab-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
