From 074b85f64c6e66b449a73db66d977e947e300a60 Mon Sep 17 00:00:00 2001 From: Brandon Herman Date: Fri, 13 Mar 2020 16:22:11 -0500 Subject: [PATCH] Remove avant, delete appveyor --- Changelog.md | 72 ++++++++++++++++---------------- Readme.md | 7 ++-- appveyor.yml | 32 -------------- package.json | 5 ++- packages/from-query/src/index.ts | 2 +- packages/types/package.json | 8 ++-- packages/util/package.json | 6 +-- 7 files changed, 51 insertions(+), 81 deletions(-) delete mode 100644 appveyor.yml diff --git a/Changelog.md b/Changelog.md index 803b8cc..81482a2 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,48 +2,48 @@ ## 1.10.1 -- Fix regression in TypeMap support (thanks [@mikfoo](https://github.com/mikfoo)) [PR #235](https://github.com/avantcredit/gql2ts/pull/235) +- Fix regression in TypeMap support (thanks [@mikfoo](https://github.com/mikfoo)) [PR #235](https://github.com/amount/gql2ts/pull/235) ## 1.10.0 -- Fix nullable arrays in `@gql2ts/from-schema` (thanks [@mikfoo](https://github.com/mikfoo)) [Issue #197](https://github.com/avantcredit/gql2ts/issues/197) [PR #230](https://github.com/avantcredit/gql2ts/pull/230) +- Fix nullable arrays in `@gql2ts/from-schema` (thanks [@mikfoo](https://github.com/mikfoo)) [Issue #197](https://github.com/amount/gql2ts/issues/197) [PR #230](https://github.com/amount/gql2ts/pull/230) ## 1.9.0 -- Support `graphql@^14` [PR #222](https://github.com/avantcredit/gql2ts/pull/222) +- Support `graphql@^14` [PR #222](https://github.com/amount/gql2ts/pull/222) ## 1.8.2 -- Remove dependency on Typescript for `@gql2ts/language-typescript` [PR #209](https://github.com/avantcredit/gql2ts/pull/209) +- Remove dependency on Typescript for `@gql2ts/language-typescript` [PR #209](https://github.com/amount/gql2ts/pull/209) ## 1.8.1 -- Export enums as consts in `@gql2ts/from-schema` so they are available to the Typescript compiler. [Issue #179](https://github.com/avantcredit/gql2ts/issues/179) [PR #202](https://github.com/avantcredit/gql2ts/pull/202) +- Export enums as consts in `@gql2ts/from-schema` so they are available to the Typescript compiler. [Issue #179](https://github.com/amount/gql2ts/issues/179) [PR #202](https://github.com/amount/gql2ts/pull/202) -- Only append a semicolon to 'enums' when they are declared as union types and not Typescript `enum` types. [Issue #179](https://github.com/avantcredit/gql2ts/issues/179) [PR #202](https://github.com/avantcredit/gql2ts/pull/202) +- Only append a semicolon to 'enums' when they are declared as union types and not Typescript `enum` types. [Issue #179](https://github.com/amount/gql2ts/issues/179) [PR #202](https://github.com/amount/gql2ts/pull/202) ## 1.8.0 -- Add specific `__typename` value for `@gql2ts/from-query` [Issue #165](https://github.com/avantcredit/gql2ts/issues/165) [PR #168](https://github.com/avantcredit/gql2ts/pull/168) +- Add specific `__typename` value for `@gql2ts/from-query` [Issue #165](https://github.com/amount/gql2ts/issues/165) [PR #168](https://github.com/amount/gql2ts/pull/168) -- Import TypeMap from language packages [PR #175](https://github.com/avantcredit/gql2ts/pull/175) [PR #176](https://github.com/avantcredit/gql2ts/pull/176) +- Import TypeMap from language packages [PR #175](https://github.com/amount/gql2ts/pull/175) [PR #176](https://github.com/amount/gql2ts/pull/176) ## 1.7.2 -- Fix fragment spread inside of inline fragment for `@gql2ts/from-query` [Issue #76](https://github.com/avantcredit/gql2ts/issues/76) [PR #162](https://github.com/avantcredit/gql2ts/issues/162) +- Fix fragment spread inside of inline fragment for `@gql2ts/from-query` [Issue #76](https://github.com/amount/gql2ts/issues/76) [PR #162](https://github.com/amount/gql2ts/issues/162) ## 1.7.1 -- Run default fields (`IGraphQLRootResponse`, etc.) through provided formatters [#159](https://github.com/avantcredit/gql2ts/pull/159) +- Run default fields (`IGraphQLRootResponse`, etc.) through provided formatters [#159](https://github.com/amount/gql2ts/pull/159) ## 1.7.0 -- Use native enums in Typescript instead of union type [#116](https://github.com/avantcredit/gql2ts/pull/116) +- Use native enums in Typescript instead of union type [#116](https://github.com/amount/gql2ts/pull/116) ## 1.6.0 -- Improve documentation generation [#154](https://github.com/avantcredit/gql2ts/pull/154) -- Add new line in between Argument Interfaces [#157](https://github.com/avantcredit/gql2ts/pull/157) +- Improve documentation generation [#154](https://github.com/amount/gql2ts/pull/154) +- Add new line in between Argument Interfaces [#157](https://github.com/amount/gql2ts/pull/157) ## 1.5.2 @@ -51,11 +51,11 @@ ## 1.5.1 -- Move graphql to peer-dependency [#156](https://github.com/avantcredit/gql2ts/pull/156) +- Move graphql to peer-dependency [#156](https://github.com/amount/gql2ts/pull/156) ## 1.5.0 -- Generate Argument Interfaces in `@gql2ts/from-schema` [#148](https://github.com/avantcredit/gql2ts/pull/148) +- Generate Argument Interfaces in `@gql2ts/from-schema` [#148](https://github.com/amount/gql2ts/pull/148) For example: @@ -74,11 +74,11 @@ interface ITestOnQueryArguments { } ``` -- Only warn about prettier once in `@gql2ts/language-typescript` [#147](https://github.com/avantcredit/gql2ts/pull/147) +- Only warn about prettier once in `@gql2ts/language-typescript` [#147](https://github.com/amount/gql2ts/pull/147) ## 1.4.4 -- Loosen `graphql` version restriction to `< 1.0.0` [#152](https://github.com/avantcredit/gql2ts/pull/152) +- Loosen `graphql` version restriction to `< 1.0.0` [#152](https://github.com/amount/gql2ts/pull/152) ## 1.4.3 @@ -86,18 +86,18 @@ interface ITestOnQueryArguments { ## 1.4.2 -- [#137](https://github.com/avantcredit/gql2ts/pull/137) +- [#137](https://github.com/amount/gql2ts/pull/137) - Remove Typescript 2.7.0 lock - Add optional [`prettier`](https://github.com/prettier/prettier) integration to typescript package to pretty-print code - Remove custom Typescript formatter ## 1.4.1 -- Lock Typescript to <2.7.0 [#132](https://github.com/avantcredit/gql2ts/pull/132) +- Lock Typescript to <2.7.0 [#132](https://github.com/amount/gql2ts/pull/132) ## 1.4.0 -- Allow custom `TypeMap` in `@gql2ts/from-schema`, similar to `@gql2ts/from-query` [#109](https://github.com/avantcredit/gql2ts/pull/109) +- Allow custom `TypeMap` in `@gql2ts/from-schema`, similar to `@gql2ts/from-query` [#109](https://github.com/amount/gql2ts/pull/109) ## 1.3.0 @@ -105,19 +105,19 @@ interface ITestOnQueryArguments { ## 1.2.2 -- Fix Default Export / CommonJS for `-e` flag on CLI [#99](https://github.com/avantcredit/gql2ts/pull/99) -- Add description JSDoc to individual fields [#96](https://github.com/avantcredit/gql2ts/pull/96) -- Update Some DevDependencies [#94](https://github.com/avantcredit/gql2ts/pull/94) +- Fix Default Export / CommonJS for `-e` flag on CLI [#99](https://github.com/amount/gql2ts/pull/99) +- Add description JSDoc to individual fields [#96](https://github.com/amount/gql2ts/pull/96) +- Update Some DevDependencies [#94](https://github.com/amount/gql2ts/pull/94) ## 1.2.1 -- Pin version of `graphql` to `^0.10.5` in all packages [#89](https://github.com/avantcredit/gql2ts/pull/89) +- Pin version of `graphql` to `^0.10.5` in all packages [#89](https://github.com/amount/gql2ts/pull/89) ## 1.2.0 ### Breaking Changes -- Use string literal for `__typename` [#87](https://github.com/avantcredit/gql2ts/pull/87), for instance: +- Use string literal for `__typename` [#87](https://github.com/amount/gql2ts/pull/87), for instance: ```ts interface IWhatever { @@ -127,11 +127,11 @@ interface IWhatever { ## 1.1.3 -- Fix [Issue #85](https://github.com/avantcredit/gql2ts/issues/85) [#86](https://github.com/avantcredit/gql2ts/pull/86) +- Fix [Issue #85](https://github.com/amount/gql2ts/issues/85) [#86](https://github.com/amount/gql2ts/pull/86) ## 1.1.2 -- Expose `ignoreTypeNameDeclaration` in the CLI. Use `--ignore-type-name-declaration` to enable it [#81](https://github.com/avantcredit/gql2ts/pull/81) +- Expose `ignoreTypeNameDeclaration` in the CLI. Use `--ignore-type-name-declaration` to enable it [#81](https://github.com/amount/gql2ts/pull/81) ## 1.1.1 @@ -141,7 +141,7 @@ interface IWhatever { ### @gql2ts/from-schema -- Add option `ignoreTypeNameDeclaration` to not add `__typename` to all fields (thanks [@epicallan](https://github.com/epicallan)) [#72](https://github.com/avantcredit/gql2ts/pull/72) +- Add option `ignoreTypeNameDeclaration` to not add `__typename` to all fields (thanks [@epicallan](https://github.com/epicallan)) [#72](https://github.com/amount/gql2ts/pull/72) ## 1.0.3 @@ -153,7 +153,7 @@ interface IWhatever { ## 1.0.1 -- Fix `@gql2ts/from-schema` not handling Unions properly [#66](https://github.com/avantcredit/gql2ts/pull/66) +- Fix `@gql2ts/from-schema` not handling Unions properly [#66](https://github.com/amount/gql2ts/pull/66) ## 1.0.0 @@ -186,33 +186,33 @@ interface IWhatever { ## 0.5.1 -- Add `tslint:disable` to generated files - [@AdirAmsalem](https://github.com/AdirAmsalem) [#38](https://github.com/avantcredit/gql2ts/pull/38) -- Update `graphql` dependency [#29](https://github.com/avantcredit/gql2ts/pull/29) +- Add `tslint:disable` to generated files - [@AdirAmsalem](https://github.com/AdirAmsalem) [#38](https://github.com/amount/gql2ts/pull/38) +- Update `graphql` dependency [#29](https://github.com/amount/gql2ts/pull/29) ## 0.5.0 -- Adds support for nullability attributes inside derived interfaces - [@neelance](https://github.com/neelance) [@orta](https://github.com/orta) [#34](https://github.com/avantcredit/gql2ts/pull/34). +- Adds support for nullability attributes inside derived interfaces - [@neelance](https://github.com/neelance) [@orta](https://github.com/orta) [#34](https://github.com/amount/gql2ts/pull/34). - Note that for older versions of TypeScript, you can use the CLI flag `--legacy` to get output without nullability references. ## 0.4.0 -- Stop extending `GraphQLInterface`s with their possible types. (thanks [@tomaba](https://github.com/tomaba)) [#25](https://github.com/avantcredit/gql2ts/pull/25) +- Stop extending `GraphQLInterface`s with their possible types. (thanks [@tomaba](https://github.com/tomaba)) [#25](https://github.com/amount/gql2ts/pull/25) - Previously, if two possible types implement a similar field, but with a different type it will cause an error ## 0.3.1 -- Accept `__schema` at the top level [#20](https://github.com/avantcredit/gql2ts/pull/20) +- Accept `__schema` at the top level [#20](https://github.com/amount/gql2ts/pull/20) ## 0.3.0 ### Breaking Changes -- Change from `module` to `namespace` [#14](https://github.com/avantcredit/gql2ts/pull/14) +- Change from `module` to `namespace` [#14](https://github.com/amount/gql2ts/pull/14) - Removed `-m`/`--module-name` flag in favor of `-n`/`--namespace` ### Patches -- Fix for `Int` Scalar Type (thanks [@valorize](https://github.com/valorize)) [#15](https://github.com/avantcredit/gql2ts/pull/15) +- Fix for `Int` Scalar Type (thanks [@valorize](https://github.com/valorize)) [#15](https://github.com/amount/gql2ts/pull/15) ## 0.2.1 diff --git a/Readme.md b/Readme.md index 081a323..b05447e 100644 --- a/Readme.md +++ b/Readme.md @@ -1,10 +1,9 @@ # GQL2TS -[![Greenkeeper badge](https://badges.greenkeeper.io/avantcredit/gql2ts.svg)](https://greenkeeper.io/) +[![Greenkeeper badge](https://badges.greenkeeper.io/amount/gql2ts.svg)](https://greenkeeper.io/) [![npm version](https://badge.fury.io/js/gql2ts.svg)](https://badge.fury.io/js/gql2ts) -[![TravisCI Build Status](https://travis-ci.org/avantcredit/gql2ts.svg?branch=master)](https://travis-ci.org/avantcredit/gql2ts) -[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/kfa00svxkiqfb4yh/branch/master?svg=true)](https://ci.appveyor.com/project/brettjurgens/gql2ts/branch/master) -[![Coveralls Coverage](https://coveralls.io/repos/github/avantcredit/gql2ts/badge.svg)](https://coveralls.io/github/avantcredit/gql2ts) +[![TravisCI Build Status](https://travis-ci.org/amount/gql2ts.svg?branch=master)](https://travis-ci.org/amount/gql2ts) +[![Coveralls Coverage](https://coveralls.io/repos/github/amount/gql2ts/badge.svg)](https://coveralls.io/github/amount/gql2ts) [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) Generate TypeScript and Flow type interfaces from GraphQL types and query definitions. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 77159be..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,32 +0,0 @@ -# Test against the latest version of this Node.js version -environment: - matrix: - # node.js - - nodejs_version: "6" - - nodejs_version: "8" - - nodejs_version: "10" - -platform: - - x86 - - x64 - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - yarn - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - node --version - - npm --version - # run tests - - npm test - -# Don't actually build. -build: off -cache: - - node_modules - - "%LOCALAPPDATA%\\Yarn" diff --git a/package.json b/package.json index a98a86d..380bfcb 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,11 @@ "graphql" ], "author": "Brett Jurgens (https://www.avant.com)", + "contributors": [ + "Brandon Herman (https://www.amount.com)" + ], "license": "MIT", - "repository": "avantcredit/gql2ts", + "repository": "amount/gql2ts", "bin": { "gql2ts": "./index.js" }, diff --git a/packages/from-query/src/index.ts b/packages/from-query/src/index.ts index a66ec43..273cccc 100644 --- a/packages/from-query/src/index.ts +++ b/packages/from-query/src/index.ts @@ -304,7 +304,7 @@ const doIt: FromQuerySignature = (schema, query, typeMap = {}, providedOptions = * @TODO need to handle fragments of fragments better * An example of a previously unsupported fragment can be found in the __tests__ directory * `fragmentSelections.length` is definitely a hack and a proper solution should be investigated - * See: https://github.com/avantcredit/gql2ts/issues/76 + * See: https://github.com/amount/gql2ts/issues/76 */ if (!fragmentSelections.length && anon) { let joinSelections: string = filterAndJoinArray(selections.map(s => s.iface), '\n'); diff --git a/packages/types/package.json b/packages/types/package.json index ff071d4..ed1d558 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -14,19 +14,19 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/avantcredit/gql2ts.git" + "url": "git+https://github.com/amount/gql2ts.git" }, "keywords": [ "gql2ts", "graphql", "typescript" ], - "author": "Brett Jurgens (https://www.avant.com)", + "author": "Brett Jurgens (https://www.amount.com)", "license": "ISC", "bugs": { - "url": "https://github.com/avantcredit/gql2ts/issues" + "url": "https://github.com/amount/gql2ts/issues" }, - "homepage": "https://github.com/avantcredit/gql2ts#readme", + "homepage": "https://github.com/amount/gql2ts#readme", "dependencies": { "@gql2ts/util": "^1.9.0" } diff --git a/packages/util/package.json b/packages/util/package.json index c2150f9..03c917e 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/avantcredit/gql2ts.git" + "url": "git+https://github.com/amount/gql2ts.git" }, "keywords": [ "gql2ts", @@ -24,9 +24,9 @@ "author": "Brett Jurgens (https://www.avant.com)", "license": "ISC", "bugs": { - "url": "https://github.com/avantcredit/gql2ts/issues" + "url": "https://github.com/amount/gql2ts/issues" }, - "homepage": "https://github.com/avantcredit/gql2ts#readme", + "homepage": "https://github.com/amount/gql2ts#readme", "devDependencies": { "graphql": ">= 0.10 <15" },