Skip to content

Commit 2f20ce2

Browse files
authored
Merge pull request #1 from relay-tools/import-vscode-apollo-relay
2 parents d21dcca + 1244d21 commit 2f20ce2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+10487
-0
lines changed

.changesets/config,json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"changelog": [
3+
"@changesets/changelog-github",
4+
{ "repo": "relay-tools/relay-graphql-js" }
5+
],
6+
"commit": false,
7+
"access": "public"
8+
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
max_line_length = 120
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text eol=lf
2+
*.png binary

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
release:
7+
name: CI Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Repo
11+
uses: actions/checkout@master
12+
with:
13+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
14+
fetch-depth: 0
15+
16+
17+
- name: Setup Node.js 12.x
18+
uses: actions/setup-node@master
19+
with:
20+
node-version: 12.x
21+
22+
- name: Install Dependencies
23+
run: yarn
24+
25+
- name: Lint
26+
run: yarn lint
27+
28+
- name: Build
29+
run: yarn build
30+
31+
- name: Test
32+
run: yarn test

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@master
15+
with:
16+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17+
fetch-depth: 0
18+
19+
20+
- name: Setup Node.js 12.x
21+
uses: actions/setup-node@master
22+
with:
23+
node-version: 12.x
24+
25+
- name: Install Dependencies
26+
run: yarn
27+
28+
- name: Create Release Pull Request or Publish to npm
29+
uses: changesets/action@master
30+
with:
31+
# this expects you to have a script called release which does a build for your packages and calls changeset publish
32+
publish: yarn release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/coverage/
2+
**/dist/
3+
**/node_modules/
4+
.vscode/
5+
*.tgz
6+
**/tsconfig.tsbuildinfo

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
testEnvironment: "node",
3+
moduleFileExtensions: ["ts", "js", "json"],
4+
testMatch: ["**/tests/**/*.ts", "**/*.test.ts"],
5+
transform: { "\\.ts$": "ts-jest" },
6+
}

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "relay-graphql-js",
3+
"version": "0.1.0",
4+
"description": "shared relay utilities for graphql-js compatible parsers",
5+
"main": "index.js",
6+
"repository": "[email protected]:relay-tools/relay-graphql-js.git",
7+
"author": "Rikki <[email protected]>",
8+
"license": "MIT",
9+
"private": true,
10+
"workspaces": [
11+
"packages/**"
12+
],
13+
"scripts": {
14+
"build": "tsc --build",
15+
"build:watch": "tsc --build --watch",
16+
"test": "jest",
17+
"test:watch": "jest --watch",
18+
"release": "yarn build && changeset publish",
19+
"lint": "tslint --project .",
20+
"format": "prettier --write packages/*/{src,tests}/*"
21+
},
22+
"devDependencies": {
23+
"@changesets/cli": "^2.11.0",
24+
"@types/jest": "^26.0.14",
25+
"@types/node": "^12.7.4",
26+
"@types/relay-compiler": "^8.0.0",
27+
"@types/relay-config": "^6.0.0",
28+
"graphql": "^15.3.0",
29+
"jest": "26.4.2",
30+
"prettier": "^2.1.2",
31+
"relay-compiler": "^10.0.1",
32+
"relay-compiler-language-typescript": "^13.0.1",
33+
"relay-config": "^10.0.1",
34+
"standard-version": "^9.0.0",
35+
"ts-jest": "26.3.0",
36+
"tslint": "^6.1.3",
37+
"tslint-plugin-prettier": "^2.3.0",
38+
"typescript": "^4.0.3"
39+
}
40+
}

packages/generate-config/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@relay-graphql-js/generate-config`
2+
3+
Generate config values and provide custom directives to a common format from relay config

0 commit comments

Comments
 (0)