An open API service indexing awesome lists of open source software.

https://github.com/echobind/eb-scripts

Echobind's scripts
https://github.com/echobind/eb-scripts

cli node oclif scripts typescript

Last synced: about 1 month ago
JSON representation

Echobind's scripts

Awesome Lists containing this project

README

          

# eb-scripts

[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors)

A CLI and scripts used at Echobind

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/eb-scripts.svg)](https://npmjs.org/package/eb-scripts)
[![Downloads/week](https://img.shields.io/npm/dw/eb-scripts.svg)](https://npmjs.org/package/eb-scripts)
[![License](https://img.shields.io/npm/l/eb-scripts.svg)](https://github.com/echobind/eb-scripts/blob/master/package.json)

* [eb-scripts](#eb-scripts)
* [Quickstart](#quickstart)
* [Usage](#usage)
* [Commands](#commands)
* [Contributing](#contributing)

# Quickstart

To get started quickly, from the root of your project run:

```shell
npx eb-scripts init (react|react-typescript|react-native-typescript)
```

This will install `eb-scripts` as a `devDependency` and add a few helpful `hygen` scripts to your `package.json`.

# Usage

```sh-session
$ npm install -g eb-scripts
$ eb-scripts COMMAND
running command...
$ eb-scripts (-v|--version|version)
eb-scripts/2.0.6 linux-x64 node-v13.1.0
$ eb-scripts --help [COMMAND]
USAGE
$ eb-scripts COMMAND
...
```

# Commands

* [`eb-scripts generate TEMPLATENAME`](#eb-scripts-generate-templatename)
* [`eb-scripts help [COMMAND]`](#eb-scripts-help-command)
* [`eb-scripts init PROJECT`](#eb-scripts-init-project)

## `eb-scripts generate TEMPLATENAME`

generates new files

```
USAGE
$ eb-scripts generate TEMPLATENAME

ARGUMENTS
TEMPLATENAME (react-component|react-typescript-component|react-native-typescript-component|react-native-typescript-sc
reen|react-native-e2e|util-typescript) the template you want to use

OPTIONS
-h, --help show CLI help
-n, --name=name [default: MyNewComponent] name to print
-p, --path=path path to where you want the files to go

EXAMPLE
$ eb-scripts generate react-component -n MyNewComponent -p src/components
Loaded templates: _templates
added: src/MyNewComponent.js
```

_See code: [src/commands/generate.ts](https://github.com/echobind/eb-scripts/blob/v2.0.6/src/commands/generate.ts)_

## `eb-scripts help [COMMAND]`

display help for eb-scripts

```
USAGE
$ eb-scripts help [COMMAND]

ARGUMENTS
COMMAND command to show help for

OPTIONS
--all see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.1/src/commands/help.ts)_

## `eb-scripts init PROJECT`

initializes project by installing `eb-scripts` and adding scripts to `package.json`

```
USAGE
$ eb-scripts init PROJECT

ARGUMENTS
PROJECT (react|react-typescript|react-native-typescript) The language or framework of the project.
Valid options: react,react-typescript,react-native-typescript

OPTIONS
-h, --help show CLI help

EXAMPLE
$ npx eb-scripts init react
```

_See code: [src/commands/init.ts](https://github.com/echobind/eb-scripts/blob/v2.0.6/src/commands/init.ts)_

# Contributing

If you're interested in contributing, please read our [CONTRIBUTING](https://github.com/echobind/eb-scripts/blob/master/CONTRIBUTING.md) guide.

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):


JavaScript Joe
JavaScript Joe

💻 📖 💡 🚧
Jenn
Jenn

👀 💻
Alvin Crespo
Alvin Crespo

💻 📖 ⚠️ 👀
Chris Ball
Chris Ball

🚇 🤔 👀
Jeffrey Zhen
Jeffrey Zhen

👀

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!