Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to v2 #14

Merged
merged 4 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
dist
.DS_Store

.vercel
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ query {

```sh
yarn
yarn run build
yarn run build-app
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here as well

yarn start
```

Expand All @@ -64,6 +64,10 @@ yarn start
```sh
yarn
yarn run watch # Using nodemon for auto-reloading

or

vercel dev # npm i -g @now/cli
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vercel dev # npm i -g @now/cli
vercel dev # npm i -g vercel

```

## Disclaimer
Expand Down
3 changes: 3 additions & 0 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import app from "../src/app";

export default app;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"repository": "https://github.com/lucasbento/graphql-pokemon",
"scripts": {
"eslint": "eslint src/*",
"build": "rm -rf dist/* && babel src --out-dir dist --copy-files",
"build-app": "rm -rf dist/* && babel src --out-dir dist --copy-files",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is not very clear

"build-schema": "babel-node ./scripts/buildSchema.js",
"start": "node dist/index.js",
"watch": "nodemon src/index.js --exec babel-node --copy-files"
Expand Down
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"routes": [{ "src": "/", "dest": "api/index.js" }]
}