Skip to content

Commit

Permalink
getting started but need to change context
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-rose committed Mar 24, 2020
1 parent 930d6d7 commit 86b5863
Show file tree
Hide file tree
Showing 13 changed files with 1,724 additions and 119 deletions.
42 changes: 4 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,10 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
Github Issues to excel
===

### `yarn build`
[![Netlify Status](https://api.netlify.com/api/v1/badges/6c020ac7-0ac3-4c9a-a2b6-7928880178c4/deploy-status)](https://app.netlify.com/sites/github-issues-to-excel/deploys)

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

To learn React, check out the [React documentation](https://reactjs.org/).
11 changes: 11 additions & 0 deletions codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
overwrite: true
schema: "https://api.github.com/graphl/"
documents: "./src/components/**/*.{ts,tsx}"
generates:
src/generated/graphql.tsx:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
config:
withHooks: true
Empty file added notes.md
Empty file.
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
"@types/node": "^12.0.0",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"apollo-boost": "^0.4.7",
"graphql": "^14.6.0",
"graphql-tag": "^2.10.3",
"react": "^16.13.1",
"react-apollo": "^3.1.3",
"react-apollo-hooks": "^0.5.0",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1",
"typescript": "~3.7.2"
Expand All @@ -19,7 +24,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"codegen": "graphql-codegen --config codegen.yml"
},
"eslintConfig": {
"extends": "react-app"
Expand All @@ -35,5 +41,11 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@graphql-codegen/cli": "^1.13.1",
"@graphql-codegen/typescript": "1.13.1",
"@graphql-codegen/typescript-operations": "1.13.1",
"@graphql-codegen/typescript-react-apollo": "1.13.1"
}
}
}
Empty file.
Empty file added src/components/Repos/Repos.tsx
Empty file.
Empty file added src/components/Repos/index.tsx
Empty file.
Empty file added src/components/Repos/query.ts
Empty file.
Empty file.
Empty file.
Empty file added src/components/issues/index.tsx
Empty file.
33 changes: 33 additions & 0 deletions src/components/issues/query.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import gql from 'graphql-tag';

export const QUERY_ISSUES = gql`
{
viewer {
login
}
repository(name: "JobApplications", owner: "jrgiant") {
issues(first: 100, orderBy: {field: CREATED_AT, direction: ASC}) {
nodes {
id
number
updatedAt
url
title
labels(first: 100) {
nodes {
description
name
}
}
createdAt
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
}
totalCount
}
}
}
`
Loading

0 comments on commit 86b5863

Please sign in to comment.