Skip to content

Commit 130def6

Browse files
author
Jaroslaw
committed
Initial commit
0 parents  commit 130def6

23 files changed

+7246
-0
lines changed

.babelrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"presets": ["next/babel"],
3+
"plugins": [
4+
"inline-react-svg",
5+
["styled-components",
6+
{ "ssr": true }
7+
],
8+
[
9+
"module-resolver",
10+
{
11+
"alias": {
12+
"@": "./src"
13+
}
14+
}
15+
]
16+
]
17+
}

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.development.local
29+
.env.test.local
30+
.env.production.local

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM node:alpine
2+
3+
WORKDIR /usr/src
4+
5+
COPY ./package.json ./
6+
7+
8+
#install client
9+
RUN npm install
10+
11+
RUN npm run-script build
12+
13+
COPY . .
14+
15+
CMD ["npm", "run", "start"]
16+
17+
EXPOSE 3000

README.MD

Whitespace-only changes.

all.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module "next-apollo";

codegen.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
overwrite: true
2+
schema: "http://localhost:4000/graphql"
3+
documents: "src/graphql/**/*.graphql"
4+
generates:
5+
src/generated/graphql.tsx:
6+
plugins:
7+
- "typescript"
8+
- "typescript-operations"
9+
- "typescript-react-apollo"

env.local

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_API_URL=http://localhost:4000/graphql

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
testPathIgnorePatterns: ["<rootDir>/.next/", "<rootDir>/node_modules/"],
3+
setupFilesAfterEnv: ["<rootDir>/setupTests.js"],
4+
transform: {
5+
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest"
6+
}
7+
};

next-env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/types/global" />

0 commit comments

Comments
 (0)