-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Preemptively update the README * Setup eslint deps * Update to node 15.4 * Configure ignore files * Use prettier plugin * Reformat Actions * Specify react version * Add postinstall script * Also lint tsx * Add initial devspace yaml * 'Fix' eslint erors * ESLint fix after generating types * Don't dockerignore generated code * Don't eslintignore generated code * Don't gitignore generated code * Track generated graphql types * Reorg scripts * Remove postinstall * Remove graphql schema path arg * Remove schema path passing * Add generate script docs * Update ts * Add auto-generated warning in header * Don't lint generated code * Add NEXT_PUBLIC_GRAPHQL_URL var * Get prod deploy ready to use devspace * Add reverse forward to graph service * Add dep on graph * Update dependencies * Remove need to supply graphql api url
- Loading branch information
1 parent
912c8b6
commit bc605ab
Showing
19 changed files
with
1,974 additions
and
2,257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ lerna-debug.log* | |
|
||
# Testing | ||
/coverage | ||
|
||
# Devspace config | ||
devspace.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
/.next | ||
/out | ||
/build | ||
|
||
# Generated Code | ||
generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
eslint: | ||
name: ESLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: 15.x | ||
|
||
- name: Run ESLint Script | ||
run: | | ||
npm ci | ||
npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Semantic Analysis | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
schema: ${GRAPHQL_SCHEMA_PATH} | ||
overwrite: true | ||
documents: src/**/*.graphql | ||
|
||
generates: | ||
src/generated/graphql.ts: | ||
plugins: | ||
- add: | ||
content: | | ||
/** | ||
* This file was generated by GraphQL Code Generator | ||
* Do not make changes to this file directly | ||
*/ | ||
- typescript | ||
- typescript-operations | ||
- typescript-urql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
version: v1beta9 | ||
|
||
images: | ||
web: | ||
image: registry.digitalocean.com/pokernook/web | ||
tags: | ||
- sha-${DEVSPACE_GIT_COMMIT}-${DEVSPACE_RANDOM} | ||
cmd: ["npm", "run", "dev"] | ||
preferSyncOverRebuild: true | ||
build: | ||
docker: | ||
useBuildKit: true | ||
|
||
deployments: | ||
- name: pokernook-web | ||
helm: | ||
componentChart: true | ||
values: | ||
containers: | ||
- image: registry.digitalocean.com/pokernook/web | ||
env: | ||
- name: NEXT_PUBLIC_GRAPHQL_URL | ||
value: http://pokernook-graph:4000 | ||
- name: GRAPHQL_SCHEMA_PATH | ||
value: http://pokernook-graph:4000 | ||
service: | ||
ports: | ||
- port: 3000 | ||
|
||
dependencies: | ||
- source: | ||
git: https://github.com/pokernook/graph | ||
branch: main | ||
|
||
profiles: | ||
- name: production | ||
patches: | ||
- op: remove | ||
path: images.web.cmd | ||
- op: remove | ||
path: dependencies | ||
- op: remove | ||
path: deployments.name=pokernook-web.helm.values.containers[0].env.name=GRAPHQL_SCHEMA_PATH | ||
|
||
dev: | ||
ports: | ||
- imageName: web | ||
forward: | ||
- port: 3000 | ||
open: | ||
- url: http://localhost:3000 | ||
sync: | ||
- imageName: web | ||
excludePaths: | ||
- .git/ | ||
uploadExcludePaths: | ||
- /.next/ | ||
- node_modules | ||
- generated | ||
- "**/*.graphql" | ||
- logs | ||
- "**/*.log" | ||
- npm-debug.log* | ||
- yarn-debug.log* | ||
- yarn-error.log* | ||
- lerna-debug.log* | ||
- /coverage | ||
- devspace.yaml |
Oops, something went wrong.