Skip to content

Commit

Permalink
feature: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippHeuer committed Dec 17, 2018
0 parents commit 4766147
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 0 deletions.
125 changes: 125 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
##
# Handle line endings automatically for files detected as text
##
* text=auto

##
# The above will handle all files NOT found below
##

# These files are text and should be normalized (Convert crlf => lf)
.gitignore text
.gitattributes text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.sql text
*.md text
*.css text
*.df text
*.htm text
*.html text
*.java text
*.js text
*.json text
*.jsp text
*.jspf text
*.jspx text
*.properties text
*.sh text
*.tld text
*.txt text
*.tag text
*.tagx text
*.xml text
*.yml text

# These files are binary and should be left untouched (binary is a macro for -text -diff)
*.class binary
*.dll binary
*.ear binary
*.gif binary
*.ico binary
*.jar binary
*.jpg binary
*.jpeg binary
*.png binary
*.so binary
*.war binary

# Documents
*.doc diff=astextplain
*.docx diff=astextplain
*.dot diff=astextplain
*.pdf diff=astextplain
*.rtf diff=astextplain

# Linux
*.sh text eol=lf
*.bash text eol=lf

# Visual Studio
*.sln text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.vcxproj text eol=crlf
*.vcproj text eol=crlf
*.dbproj text eol=crlf
*.fsproj text eol=crlf
*.lsproj text eol=crlf
*.wixproj text eol=crlf
*.modelproj text eol=crlf
*.sqlproj text eol=crlf
*.wmaproj text eol=crlf
*.xproj text eol=crlf
*.props text eol=crlf
*.filters text eol=crlf
*.vcxitems text eol=crlf

# Language specific diff implementation # https://github.com/git/git/blob/master/userdiff.c #

# HTML
*.htm diff=html
*.html diff=html

# Java
*.htm diff=java

# Objective-C
*.c diff=objc

# Perl
*.pl diff=perl

# PHP
*.php diff=php
*.php4 diff=php
*.php5 diff=php
*.php7 diff=php

# Python
*.py diff=python
*.py2 diff=python
*.py3 diff=python

# Ruby
*.rb diff=ruby

# Bibtex
*.bibtex diff=bibtex

# Tex
*.tex diff=tex

# CPP
*.h diff=cpp
*.cpp diff=cpp

# C-Sharp
*.cs diff=csharp

# CSS
*.css diff=css
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
############################################################
# Dockerfile
############################################################

# Set the base image
FROM node:11-alpine

############################################################
# Configuration
############################################################
ENV VERSION "2.1.0"

############################################################
# Installation
############################################################

RUN apk --no-cache add bash curl &&\
npm install -g get-graphql-schema@${VERSION}

############################################################
# Execution
############################################################
CMD [ "get-graphql-schema" ]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Philipp Heuer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Docker Container - Get GraphQL Schema

Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)
5 changes: 5 additions & 0 deletions updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Upstream Repository
---
repositoryNamespace: prisma
repositoryName: get-graphql-schema
pattern: "(master|develop|v(?<VERSION>[0-9]+.[0-9]+.[0-9]+))"

0 comments on commit 4766147

Please sign in to comment.