# @atto-byte/yoga

> ![npm](https://img.shields.io/npm/v/@atto-byte/yoga.svg?style=flat-square) ![npm](https://img.shields.io/npm/dm/@atto-byte/yoga.svg?style=flat-square) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/atto-byte/yoga2/master.svg?styl

Latest version **0.7.0** (published 2019-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @atto-byte/yoga
pnpm add @atto-byte/yoga
yarn add @atto-byte/yoga
bun add @atto-byte/yoga
```

Provides the command `yoga`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2019-11-07 |
| First published | 2019-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 31 |
| Unpacked size | 343.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | William LUKE |
| Maintainers | williamluke4 |

## Links

- npm: https://www.npmjs.com/package/@atto-byte/yoga
- Repository: https://github.com/atto-byte/yoga2
- Homepage: https://github.com/atto-byte/yoga2#readme
- Issues: https://github.com/atto-byte/yoga2/issues
- npm.io page: https://npm.io/package/@atto-byte/yoga

## Dependencies (31)

- [ora](https://npm.io/package/ora.md) ^4.0.2
- [tar](https://npm.io/package/tar.md) ^5.0.5
- [meow](https://npm.io/package/meow.md) ^5.0.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [execa](https://npm.io/package/execa.md) ^3.2.0
- [nexus](https://npm.io/package/nexus.md) 0.11.7
- [yargs](https://npm.io/package/yargs.md) ^14.2.0
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [decache](https://npm.io/package/decache.md) ^4.5.1
- [express](https://npm.io/package/express.md) ^4.17.1
- [graphql](https://npm.io/package/graphql.md) ^0.12.0 || ^0.13.0 || ^14.0.0
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.13.1
- [pkginfo](https://npm.io/package/pkginfo.md) ^0.4.1
- [request](https://npm.io/package/request.md) ^2.88.0
- [ts-node](https://npm.io/package/ts-node.md) ^8.4.1
- [inquirer](https://npm.io/package/inquirer.md) ^6.5.0
- [prettier](https://npm.io/package/prettier.md) ^1.18.2
- [pluralize](https://npm.io/package/pluralize.md) ^8.0.0
- [node-watch](https://npm.io/package/node-watch.md) ^0.6.3
- [typescript](https://npm.io/package/typescript.md) 3.7.2
- [nexus-prisma](https://npm.io/package/nexus-prisma.md) 0.3.5
- [pretty-error](https://npm.io/package/pretty-error.md) 2.1.1
- [inquirer-path](https://npm.io/package/inquirer-path.md) ^1.0.0-beta5
- [graphql-shield](https://npm.io/package/graphql-shield.md) ^7.0.0
- [graphql-upload](https://npm.io/package/graphql-upload.md) ^8.1.0
- [parse-github-url](https://npm.io/package/parse-github-url.md) ^1.0.2
- [prisma-datamodel](https://npm.io/package/prisma-datamodel.md) ^1.34.10
- [graphql-middleware](https://npm.io/package/graphql-middleware.md) ^4.0.1
- [prisma-json-schema](https://npm.io/package/prisma-json-schema.md) ^0.1.3
- [apollo-server-express](https://npm.io/package/apollo-server-express.md) ^2.9.7
- [prisma-generate-schema](https://npm.io/package/prisma-generate-schema.md) ^1.34.10

## Recent versions

- 0.7.0 (latest) — 2019-11-07
- 0.6.8 — 2019-11-01
- 0.1.1 — 2019-11-01
- 0.6.7 — 2019-11-01
- 0.6.6 — 2019-08-20
- 0.6.5 — 2019-04-30
- 0.6.4 — 2019-04-30
- 0.6.3 — 2019-04-30
- 0.6.2 — 2019-04-30
- 0.6.1 — 2019-04-30
- 0.6.0 — 2019-04-23
- 0.5.0 — 2019-04-21
- 0.4.2 — 2019-04-21
- 0.4.1 — 2019-04-21
- 0.4.0 — 2019-04-21
- … 9 more at https://npm.io/package/@atto-byte/yoga/versions

## README

# Yoga 2 - Forked

![npm](https://img.shields.io/npm/v/@atto-byte/yoga.svg?style=flat-square)
![npm](https://img.shields.io/npm/dm/@atto-byte/yoga.svg?style=flat-square)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/atto-byte/yoga2/master.svg?style=flat-square)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![Build Status](https://travis-ci.org/atto-byte/yoga2.svg?branch=master)](https://travis-ci.org/atto-byte/yoga2)

## Install

```bash
  npm install -g @atto-byte/yoga
```

## CLI - Commands

```

Commands:
  yoga new       Create new yoga project from template
  yoga start     Start the server
  yoga dev       Start the server in dev mode
  yoga scaffold  Scaffold a new GraphQL type
  yoga build     Build a yoga server
  yoga eject     Eject your project

Options:
  --env, -e  Pass a custom NODE_ENV variable
  --help     Show help
  --version  Show version number
```

### Passing ENVs

If you have to following env file `.env.staging` then you can pass it to Yoga using the commands below

- **dev**: `yoga dev -e staging`
- **start**: `yoga start -e staging`

## Roadmap

- [ ] Remove Unnecessary Abstraction
- [x] Add GraphQL Shield Integration
- [x] Add Examples
  - [x] GraphQL Shield
  - [x] Express Middleware
- [ ] Add Tests **Help Wanted**
- [ ] Serverless?

## Local Development

- **Warning** Any changes to `./examples` will not work as these are pulled from the master repo on github when running `yoga new`

```bash
git clone https://github.com/atto-byte/yoga2.git
npm install
npm link
```

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