Skip to content

Commit af08a04

Browse files
authored
Merge branch 'master' into renovate/fork-ts-checker-webpack-plugin-4.x
2 parents 86d7c44 + d272784 commit af08a04

File tree

14 files changed

+313
-290
lines changed

14 files changed

+313
-290
lines changed

.github/workflows/cd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ jobs:
3636
token: ${{ github.token }}
3737
secrets: ${{ toJSON(secrets) }}
3838
version: ${{ github.sha }}
39+
values: |
40+
gitSha: ${{ github.sha }}
3941
env:
4042
KUBECONFIG_FILE: ${{ secrets.KUBECONFIG }}

dev-quickstart.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ cd graphql_django_apollo_starter
99
cp client/.env.example client/.env
1010
cp .env.example .env
1111
docker-compose down -v; docker-compose build; docker-compose up -d
12+
cd client
1213
npm install

{{ cookiecutter.project_slug }}/client/package-lock.json

Lines changed: 248 additions & 276 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

{{ cookiecutter.project_slug }}/client/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"@types/react-redux": "7.1.7",
3333
"@types/styled-components": "5.0.1",
3434
"@types/use-persisted-state": "0.3.0",
35-
"@typescript-eslint/eslint-plugin": "2.24.0",
36-
"@typescript-eslint/parser": "2.24.0",
35+
"@typescript-eslint/eslint-plugin": "2.25.0",
36+
"@typescript-eslint/parser": "2.25.0",
3737
"css-loader": "3.4.2",
3838
"dotenv": "8.2.0",
3939
"eslint": "6.8.0",
@@ -45,7 +45,7 @@
4545
"eslint-plugin-react-hooks": "2.5.1",
4646
"fork-ts-checker-notifier-webpack-plugin": "2.0.0",
4747
"fork-ts-checker-webpack-plugin": "4.1.1",
48-
"html-webpack-plugin": "3.2.0",
48+
"html-webpack-plugin": "4.0.1",
4949
"jest": "25.1.0",
5050
"npm-check": "5.9.2",
5151
"redux-devtools": "3.5.0",
@@ -55,15 +55,15 @@
5555
"ts-jest": "25.2.1",
5656
"ts-loader": "6.2.1",
5757
"typescript": "3.8.3",
58-
"webpack": "4.42.0",
58+
"webpack": "4.42.1",
5959
"webpack-cli": "3.3.11",
6060
"webpack-dev-server": "3.10.3"
6161
},
6262
"dependencies": {
6363
"@apollo/react-hooks": "3.1.3",
6464
"@reach/router": "1.3.3",
6565
"@sentry/browser": "5.15.0",
66-
"antd": "4.0.3",
66+
"antd": "4.0.4",
6767
"apollo-cache": "1.3.4",
6868
"apollo-cache-inmemory": "1.6.5",
6969
"apollo-client": "2.6.8",

{{ cookiecutter.project_slug }}/client/src/components/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Form, Input, Button } from 'antd';
2-
import { FormComponentProps } from 'antd/es/form';
2+
import { FormProps } from 'antd/es/form';
33
import React, { useState } from 'react';
44
import { RouteComponentProps } from '@reach/router';
55

66
import { useIsLoggedIn } from '@src/hooks/useIsLoggedIn';
77
import { useTokenAuthMutation } from '@src/generated/graphql';
88
import { useRedirectIfLoggedIn } from '@src/hooks/useRedirectIfLoggedIn';
99

10-
interface LoginFormProps extends FormComponentProps {
10+
interface LoginFormProps extends FormProps {
1111
password: string;
1212
email: string;
1313
}

{{ cookiecutter.project_slug }}/client/src/components/Signup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Form, Input, Button } from 'antd';
2-
import { FormComponentProps } from 'antd/es/form';
2+
import { FormProps } from 'antd/es/form';
33
import React, { useState } from 'react';
44
import { RouteComponentProps } from '@reach/router';
55

@@ -9,7 +9,7 @@ import {
99
} from '@src/generated/graphql';
1010
import { useRedirectIfLoggedIn } from '@src/hooks/useRedirectIfLoggedIn';
1111

12-
interface SignupFormProps extends FormComponentProps {
12+
interface SignupFormProps extends FormProps {
1313
username: string;
1414
password: string;
1515
email: string;

{{ cookiecutter.project_slug }}/dev-kube-quickstart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ helm repo add stable https://kubernetes-charts.storage.googleapis.com/
1717
helm repo update
1818
helm dependency update ./kubernetes/{{ cookiecutter.kubernetes_project }}
1919
helm install stable/nfs-server-provisioner --generate-name --version 0.4.0
20-
helm install {{ cookiecutter.kubernetes_project }} ./kubernetes/{{ cookiecutter.kubernetes_project }} --namespace={{ cookiecutter.kubernetes_project }}
20+
helm install {{ cookiecutter.kubernetes_project }} ./kubernetes/{{ cookiecutter.kubernetes_project }} --namespace={{ cookiecutter.kubernetes_project }} --set gitSha="$(git rev-parse HEAD)"

{{ cookiecutter.project_slug }}/docker-compose.test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ services:
1010
volumes:
1111
- ./client:/app
1212
- /app/node_modules
13-
- ./server/schema:/app/schema # Need to keep schema up to date based off of server
1413
- /app/build
1514
- /app/public
15+
- schema-test:/app/schema # Need to keep schema up to date based off of server
1616
- /app/src/generated/ # Don't want to overwrite what's generated via
1717
# the non-test environment.
1818
depends_on:
@@ -41,8 +41,7 @@ services:
4141
- redis
4242
volumes:
4343
- ./server:/app
44-
- /app/schema/ # Don't want to overwrite what's generated via
45-
# the non-test environment.
44+
- schema-test:/app/schema # Need to keep schema up to date based off of server
4645
env_file:
4746
- ./server/.env
4847
environment:
@@ -51,6 +50,7 @@ services:
5150
DJANGO_CORS_ORIGIN_WHITELIST: http://localhost:8081,http://client-test:8080
5251
DJANGO_TRUSTED_ORIGINS: http://localhost:8081,http://client-test:8080
5352
DJANGO_DISABLE_CSRF: 'True'
53+
GIT_SHA: '0123456789'
5454
tty: true
5555
stdin_open: true
5656
ports:
@@ -67,3 +67,6 @@ services:
6767
working_dir: /e2e
6868
volumes:
6969
- ./e2e:/e2e
70+
71+
volumes:
72+
schema-test:

{{ cookiecutter.project_slug }}/docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ services:
1212
volumes:
1313
- ./client:/app
1414
- /app/node_modules
15-
- ./server/schema:/app/schema # Need to keep schema up to date based off of server
1615
- /app/build
1716
- /app/public
17+
- schema:/app/schema # Need to keep schema up to date based off of server
1818
tty: true
1919
stdin_open: true
2020
ports:
@@ -36,10 +36,12 @@ services:
3636
- redis
3737
volumes:
3838
- ./server:/app
39+
- schema:/app/schema
3940
env_file:
4041
- ./server/.env
4142
environment:
4243
- SENTRY_DSN=${SENTRY_DSN}
44+
- GIT_SHA='0123456789'
4345
tty: true
4446
stdin_open: true
4547
ports:
@@ -91,3 +93,4 @@ services:
9193
volumes:
9294
postgres: ~
9395
redisdata: ~
96+
schema:

{{ cookiecutter.project_slug }}/kubernetes/{{ cookiecutter.kubernetes_project }}/templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ env:
7474
value: {{ "{{" }} .Values.sentryDsn {{ "}}" }}
7575
- name: REDIS_URL
7676
value: redis://:{{ "{{" }} .Values.redis.password {{ "}}" }}@{{ cookiecutter.kubernetes_project }}-redis-master:6379/0
77+
- name: GIT_SHA
78+
value: {{ "{{" }} .Values.gitSha {{ "}}" }}
7779
- name: DATABASE_URL
7880
valueFrom:
7981
secretKeyRef:

0 commit comments

Comments
 (0)