Skip to content
This repository was archived by the owner on Feb 26, 2018. It is now read-only.

Commit a1fea6f

Browse files
committed
feat: implementation of up command identical to graphql-up
1 parent fce0e51 commit a1fea6f

File tree

11 files changed

+6103
-1
lines changed

11 files changed

+6103
-1
lines changed

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/graphql-cli-up
5+
docker:
6+
- image: circleci/node:latest
7+
steps:
8+
- checkout
9+
- run:
10+
name: update-npm
11+
command: 'sudo npm install -g yarn@latest'
12+
- restore_cache:
13+
key: dependency-cache-{{ checksum "package.json" }}
14+
- run:
15+
name: install-yarn
16+
command: yarn install
17+
- save_cache:
18+
key: dependency-cache-{{ checksum "package.json" }}
19+
paths:
20+
- ./node_modules
21+
- run:
22+
name: release
23+
command: yarn semantic-release || true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src
2+
.circleci
3+
renovate.json

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 SuperGraph
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
1-
graphql-cli-up
1+
# graphql-cli-up [![npm](https://img.shields.io/npm/v/graphql-cli-up.svg?style=flat-square)](https://www.npmjs.com/package/graphql-cli-up)
2+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)[![CircleCI](https://img.shields.io/circleci/project/github/supergraphql/graphql-cli-up.svg?style=flat-square)](https://circleci.com/gh/supergraphql/graphql-cli-up)[![Greenkeeper badge](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square)](https://renovateapp.com/)[![Code Climate](https://img.shields.io/codeclimate/maintainability/supergraphql/graphql-cli-up.svg?style=flat-square)](https://codeclimate.com/github/supergraphql/graphql-cli-up)
3+
Plugin for [`graphql-cli`](https://github.com/graphql-cli/graphql-cli) to get a ready-to-use GraphQL API for your schema.
4+
5+
## Installation
6+
7+
Install `graphql-cli-up` either globally (recommended) or locally using your favorite package manager:
8+
```shell
9+
$ yarn [global] add graphql-cli-up
10+
$ npm install graphql-cli-up [--global]
11+
```
12+
13+
## Usage
14+
```
15+
graphql up <schema>
16+
17+
Get a ready-to-use GraphQL API for your schema
18+
19+
Options:
20+
--minimal, -m Only print URLs of created APIs [boolean]
21+
-h, --help Show help [boolean]
22+
-v, --version Show version number [boolean]
23+
```
24+
## More information
25+
26+
For more information, see: [https://github.com/graphcool/graphql-up](https://github.com/graphcool/graphql-up#readme)
27+
28+
<hr>
29+
<p align="center">
30+
<img src="https://img.shields.io/badge/built-with_love-blue.svg?style=for-the-badge"/><a href="https://github.com/kbrandwijk" target="-_blank"><img src="https://img.shields.io/badge/by-kim_brandwijk-blue.svg?style=for-the-badge"/></a>
31+
</p>
32+

0 commit comments

Comments
 (0)