# stubby-simply

> Stubby with simple configuration and multiples mocks files instead of 1 file

Latest version **0.2.8** (published 2018-11-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install stubby-simply
pnpm add stubby-simply
yarn add stubby-simply
bun add stubby-simply
```

Provides the command `stubby-simply`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.8 |
| Published | 2018-11-27 |
| First published | 2017-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 49.7 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | arnogues |
| Maintainers | arnogues |
| Keywords | CLI, Node, nconf, winston, inquirer, babel, es5, es6 |

## Links

- npm: https://www.npmjs.com/package/stubby-simply
- Repository: https://github.com/arnogues/stubby-simply
- Homepage: https://github.com/arnogues/stubby-simply#readme
- Issues: https://github.com/arnogues/stubby-simply/issues
- npm.io page: https://npm.io/package/stubby-simply

## Dependencies (7)

- [tmp](https://npm.io/package/tmp.md) 0.0.33
- [stubby](https://npm.io/package/stubby.md) ^4.0.0
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.10.0
- [nquirer](https://npm.io/package/nquirer.md) 0.1.8
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [winston](https://npm.io/package/winston.md) ^3.1.0
- [node-watch](https://npm.io/package/node-watch.md) ^0.5.5

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

- 0.2.8 (latest) — 2018-11-27
- 0.2.6 — 2018-09-17
- 0.2.5 — 2018-04-12
- 0.2.4 — 2018-04-12
- 0.2.3 — 2018-04-12
- 0.1.6 — 2017-09-29

## README

# stubby-simply

## Install

```bash
npm install stubby-simply --save-dev
npm install npm-run-all --save
```

## Configure your `package.json`

### Api redirect conf

If you use Create-react-app
Add this in your `package.json` :

```json
"proxy": {
    "/api/": {
      "target": "http://localhost:8882",
      "ws": true,
      "autoRewrite": true,
      "hostRewrite": true
    }
},
```

All calls on /api/ will be redirect to the stubby server default config.

### Npm scripts

Add rename some scripts in the npm scripts part in `package.json`

```diff
   "scripts": {
-    "start": "react-scripts start",
+    "start-js": "react-scripts start",
+    "start": "npm-run-all -p stubby start-js",
+    "stubby": "stubby-simply --mocks mocks",
   }
```

Beware about the `-p` it is used to launch all scripts in parallel

## Contribution

Contribution documentation can be found in [contributing file](CONTRIBUTING.md).

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